malcolm.modules.ADCore.infos¶
-
class
malcolm.modules.ADCore.infos.FilePathTranslatorInfo(windows_drive_letter, path_prefix, network_prefix)[source]¶ Translate linux filepath to windows equivalent
Parameters: - windows_drive_letter – The drive letter assigned to the windows mount
- path_prefix – The location of the mount in linux (i.e. /dls or /dls_sw)
- network_drive – The network drive prefix on Windows (e.g. //dc). If the
- drive letter is an empty string, the network drive is prepended. (windows) –
-
class
malcolm.modules.ADCore.infos.NDArrayDatasetInfo(rank: int)[source]¶ Declare the NDArray data this produces as being a useful dataset to store to file
Parameters: rank – The rank of the dataset, e.g. 2 for a 2D detector
-
class
malcolm.modules.ADCore.infos.CalculatedNDAttributeDatasetInfo(name: str, attr: str)[source]¶ Declare that we have calculated some statistics from the main dataset and these will be available
Parameters: - name – Dataset name that should be written to
- attr – NDAttribute name to get data from
-
class
malcolm.modules.ADCore.infos.NDAttributeDatasetInfo(name: str, type: malcolm.modules.scanning.infos.DatasetType, attr: str)[source]¶ Declare an NDAttribute attached to this NDArray to produce a useful dataset to store to file
Parameters: - name – Dataset name that should be written to, e.g. “I0.value”
- type – What NeXuS dataset type it produces, e.g. DatasetType.PRIMARY
- attr – NDAttribute name to get data from, e.g. “COUNTER1.Diff”
-
classmethod
from_attribute_type(name: str, type: malcolm.modules.ADCore.util.AttributeDatasetType, attr: str) → malcolm.modules.ADCore.infos.NDAttributeDatasetInfo[source]¶ Make an Info from the AttributeDatasetType
Parameters: - name – Dataset name without dots, e.g. “I0”
- type – What type it is, e.g. AttributeDatasetType.DETECTOR
- attr – NDAttribute name to get data from, e.g. “COUNTER1.Diff