mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-09-02 05:40:44 +02:00
initial commit
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
S10-CPCL-VM1MGC:LOAD
|
||||
|
||||
ONE
|
||||
TWO
|
||||
THREE
|
||||
@@ -0,0 +1,35 @@
|
||||
import unittest
|
||||
from unittest import TestCase
|
||||
from cadump import cadump
|
||||
import logging
|
||||
|
||||
class TestDownloadData(TestCase):
|
||||
|
||||
def test_download_data(self):
|
||||
config = {
|
||||
'range': {
|
||||
'startPulseId': 7281433214,
|
||||
'endPulseId': 7281489688
|
||||
},
|
||||
|
||||
'parameters': {
|
||||
'general/created': 'test',
|
||||
'general/user': 'tester',
|
||||
'general/process': 'test_process',
|
||||
'general/instrument': 'mac',
|
||||
'output_file': 'test.h5'} # this is usually the full path
|
||||
}
|
||||
|
||||
cadump.download_data(config)
|
||||
# self.fail()
|
||||
|
||||
def test_read_channels(self):
|
||||
channels = cadump.read_channels("channels.txt")
|
||||
logging.info(channels)
|
||||
self.assertEqual(len(channels), 3)
|
||||
|
||||
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
Reference in New Issue
Block a user