SciFiReaders.readers.microscopy.em.tem.dm_reader.DMReader#
- class SciFiReaders.readers.microscopy.em.tem.dm_reader.DMReader(file_path, verbose=False)[source]#
Bases:
ReaderReader of Digital Micrograph image and spectroscopy data
This reader reads (attribute read) all the different data in the file and returns it as a dictionary of sidpy.Datasets
Parameter:#
- file_path: str
filepath to dm3 or dm4 file.
Return:#
- datasets: dict
dictionary of sidpy datasets
- param file_path:
Path to the file that needs to be read
- type file_path:
str
Notes
This method will check to make sure that the provided file_path is indeed a string and a valid file path.
Consider calling
can_read()within__init__()for validating the provided file
- raises FileNotFoundError:
Methods
can_readClose the DM file.
Extracts crucial metadata from the original_metadata dictionary.
Reads dictionary of imageList into sidpy.Dataset
Gets the filename of the DM file.
Extracts data as np array
Gets the tags from the DM file.
Read the DM file and extract metadata.
Sets the data type of the dataset based on its shape and metadata.
Sets the dimensions of the dataset.
Attributes
- extract_crucial_metadata(dataset_key)[source]#
Extracts crucial metadata from the original_metadata dictionary.
- property filename#
Gets the filename of the DM file.
- property tags#
Gets the tags from the DM file.