fioblisswriter package¶
Submodules¶
fioblisswriter.FIOFile module¶
Provides the access to a database with NDTS configuration files
- class fioblisswriter.FIOFile.FIOFile(scan, fpath, streams, skip_final_parameters=False, max_string_parameter_size=300, snapshot_blacklist=None, 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 classmax_write_interval (
int) – max write interval
- property channels¶
- property labels¶
- fioblisswriter.FIOFile.create_fio_file(scan, streams, skip_final_parameters=False, max_string_parameter_size=300, snapshot_blacklist=None)[source]¶
open fio file
- Parameters:
scan (
blissdata.redis_engine.scan.Scan) – blissdata scanstreams (
StreamSetortango.LatestDeviceImpl) – tango-like steamset class
- Returns:
nexus file object
- Return type:
fioblisswriter.Release module¶
release version module
fioblisswriter.FIOBlissWriter module¶
FIO Bliss Writer
FIO Bliss Writer stores (meta)data from blissdata provided by FIODataWriter
- class fioblisswriter.FIOBlissWriter.FIOBlissWriter(cl, name)[source]¶
Bases:
DeviceFIO Bliss Writer stores (meta)data from blissdata provided by FIODataWriter
Properties:
- Device Property
- RedisUrl
Dlissdata redis url
Type:’str’
- Session
session to be recorder
Type:’str’
- NextScanTimeout
timeout for next scan writing
Type:’int’
- SkipFinalParameters
do not store parameters with the FINAL strategy
Type:’bool’
- MaxStringParameterSize
maximal value size of string parameters
Type:’int’
- SnapshotBlacklist
a list of snapshot keys to skip
Type:’DevVarStringArray’
- PointSleepTime
sleep time between write_point command calls
Type:’float’
- Errors¶
list of errors
- MaxStringParameterSize¶
maximal value size of string parameters
- NextScanTimeout¶
timeout for next scan writing
- PointSleepTime¶
sleep time between write_point command calls
- RedisUrl¶
Blissdata redis url
- Session¶
session to be recorder
- SkipFinalParameters¶
do not store parameters with the FINAL strategy
- SnapshotBlacklist¶
a list of snapshot keys to skip
- 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
FIOBlissWriterClass
- TangoClassName = 'FIOBlissWriter'¶
- 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
fioblisswriter.FIOWriterService module¶
Provides the access to a database with NDTS configuration files
- class fioblisswriter.FIOWriterService.FIOWriterService(redis_url, session, next_scan_timeout, skip_final_parameters=False, max_string_parameter_size=300, snapshot_blacklist=None, 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 secondsskip_final_parameters (
bool) – skip final parametersmax_string_parameter_size (
int) – maximal string parameter sizepoint_sleep_time (
float) – sleep time between write point callsserver (
tango.LatestDeviceImpl) – NXSConfigServer instance
- class fioblisswriter.FIOWriterService.ScanWriter(scan, streams, next_scan_timeout, skip_final_parameters=False, max_string_parameter_size=300, snapshot_blacklist=None, 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 secondsskip_final_parameters (
bool) – skip final parametersmax_string_parameter_size (
int) – maximal string parameter sizepoint_sleep_time (
float) – sleep time between write point callsserver (
tango.LatestDeviceImpl) – NXSConfigServer instance
- error_lock¶
(
threading.Lock) threading lock
Module contents¶
Implementation of FIO Blissdata writer Server