nxsblisswriter package¶
Submodules¶
nxsblisswriter.NXSFile module¶
Provides the access to a database with NDTS configuration files
- class nxsblisswriter.NXSFile.NXSFile(scan, fpath, streams, default_nexus_path='/scan{serialno}:NXentry/instrument:NXinstrument/collection', max_write_interval=1)[source]¶
Bases:
objectconstructor
- Parameters:
scan (
blissdata.redis_engine.scan.Scan) – blissdata scanfpath (
pathlib.Path) – nexus file pathstreams (
StreamSetortango.LatestDeviceImpl) – tango-like steamset classdefault_nexus_path (
str) – default nexus pathmax_write_interval (
int) – max write interval
- property channels¶
returns a list of channels with description
- Returns:
list of channels descriptions
- Return type:
list<:obj: dict >
- generate_vmaps(shape, frame_per_acquisition, file_offset, file_format, file_pattern, data_path, frame_per_file)[source]¶
generate virtual map list
- Parameters:
- Returns:
virtual map list
- Return type:
- property labels¶
returns a list of channels with description
- Returns:
list of channel labels
- Return type:
list<:obj: str >
- nxsblisswriter.NXSFile.create_nexus_file(scan, streams, default_nexus_path='/scan{serialno}:NXentry/instrument:NXinstrument/collection')[source]¶
open nexus file
- Parameters:
scan (
blissdata.redis_engine.scan.Scan) – blissdata scanstreams (
StreamSetortango.LatestDeviceImpl) – tango-like steamset classdefault_nexus_path (
str) – default nexus path
- Returns:
nexus file object
- Return type:
nxsblisswriter.Release module¶
release version module
nxsblisswriter.NXSBlissWriter module¶
NeXus Bliss Writer
NeXus Bliss Writer stores (meta)data from blissdata provided by NXSDataWriter
- class nxsblisswriter.NXSBlissWriter.NXSBlissWriter(cl, name)[source]¶
Bases:
DeviceNeXus Bliss Writer stores (meta)data from blissdata provided by NXSDataWriter
Properties:
- Device Property
- RedisUrl
Dlissdata redis url
Type:’str’
- Session
session to be recorder
Type:’str’
- NextScanTimeout
timeout for next scan writing
Type:’int’
- DefaultNeXusPath
default NeXus path
Type:’str’
- PointSleepTime
sleep time between write_point command calls
Type:’float’
- DefaultNeXusPath¶
default NeXus path
- Errors¶
list of errors
- NextScanTimeout¶
timeout for next scan writing
- PointSleepTime¶
sleep time between write_point command calls
- RedisUrl¶
Blissdata redis url
- Session¶
session to be recorder
- Start()[source]¶
‘Start’ TANGO command
- Parameters:
arg (DevVoid) – (not documented)
- Returns:
(not documented)
- Return type:
DevVoid
- Stop()[source]¶
‘Stop’ TANGO command
- Parameters:
arg (DevVoid) – (not documented)
- Returns:
(not documented)
- Return type:
DevVoid
- TangoClassClass¶
alias of
NXSBlissWriterClass
- TangoClassName = 'NXSBlissWriter'¶
- dev_status(self) str[source]¶
Get device status.
Default method to get device status. It returns the contents of the device dev_status field. If the device state is ALARM, alarm messages are added to the device status. This method can be redefined in sub-classes in case of the default behaviour does not fullfill the needs.
- Returns:
the device status
- Return type:
- Raises:
DevFailed – If it is necessary to read attribute(s) and a problem occurs during the reading
nxsblisswriter.NXSWriterService module¶
Provides the access to a database with NDTS configuration files
- class nxsblisswriter.NXSWriterService.NXSWriterService(redis_url, session, next_scan_timeout, default_nexus_path='/scan{serialno}:NXentry/instrument:NXinstrument/collection', point_sleep_time=0.01, server=None)[source]¶
Bases:
objectconstructor
- Parameters:
redis_url (
str) – blissdata redis urlsession (
str) – blissdata session namenext_scan_timeout (
int) – timeout between the scans in secondsdefault_nexus_path (
str) – default nexus pathpoint_sleep_time (
float) – sleep time between write point callsserver (
tango.LatestDeviceImpl) – NXSConfigServer instance
- class nxsblisswriter.NXSWriterService.ScanWriter(scan, streams, next_scan_timeout, default_nexus_path='/scan{serialno}:NXentry/instrument:NXinstrument/collection', point_sleep_time=0.01)[source]¶
Bases:
Threadconstructor
- Parameters:
scan (
Scan) – blissdata redis urlstreams (
StreamSetortango.LatestDeviceImpl) – tango streamsnext_scan_timeout (
int) – timeout between the scans in secondsdefault_nexus_path (
str) – default nexus pathpoint_sleep_time (
float) – sleep time between write point calls
- error_lock¶
(
threading.Lock) threading lock
- errors¶
(
list`<:obj:`str>) error list
Module contents¶
Implementation of NexDaTaS Configuration Server