Functions#
Version Functions#
The version of the package can be returned as a single string or a dict.
When a string, it comes from the package __version__. When a dict, it also has __version__, as well as versions of other depdency packages.
Utility Functions#
- dls_bxflow_epsic.utilities.is_done_filename_2_data_label(is_done_filename)[source]#
Given a full “is_done” filename path, derive a data label from it.
- Rules:
the data_filename must have /Merlin/ somwhere in the path.
the final directory in the path is ignored.
whatever is between /Merlin/ and that final directory, is the data_label.
this works for is_done files whose name differ from their mib files by suffix only.
- dls_bxflow_epsic.utilities.mib_filename_2_data_label(mib_filename)[source]#
Given a full mib filename path, derive a data label from it.
- Rules:
the data_filename must have /Merlin/ somwhere in the path.
the final directory in the path is ignored.
whatever is between /Merlin/ and that final directory, is the data_label.
this works for is_done files whose name differ from their mib files by suffix only.
- dls_bxflow_epsic.utilities.data_label_2_mib_filename(data_label)[source]#
Given a data label, compose a full filename path to the mib file.
- dls_bxflow_epsic.utilities.data_label_2_processing(data_label, nickname=None)[source]#
Return processing directory where data_label stuff is saved. This area is outside any task’s specific instance directory. That is, all tasks of all jobs ever run share reading and writing into this directory.
If nickname is provided, it is used to customize the actual filename produced for the data label.
- dls_bxflow_epsic.utilities.configuration_2_byv()[source]#
Returns the beamline, year and visit indicated by the configuration.
- dls_bxflow_epsic.utilities.data_filename_2_byv(data_filename)[source]#
Returns the beamline, year and visit indicated by the filename.
- dls_bxflow_epsic.utilities.mib_filename_2_filestore_directory(mib_filename)[source]#
From the mib_filename, derive the associated directory name where execution results can be written.