SciFiReaders.readers.microscopy.em.tem.dm_reader.DM3Reader#
- class SciFiReaders.readers.microscopy.em.tem.dm_reader.DM3Reader(file_path, verbose=False)[source]#
Bases:
DMReaderDM3 file reader class.
- Parameters:
file_path (str) – Path to the file that needs to be read
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:
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
- close()#
Close the DM file.
- extract_crucial_metadata(dataset_key)#
Extracts crucial metadata from the original_metadata dictionary.
- property filename#
Gets the filename of the DM file.
- get_dataset(image_dict) Dataset#
Reads dictionary of imageList into sidpy.Dataset
- get_filename()#
Gets the filename of the DM file.
- get_raw(image_dict)#
Extracts data as np array
- get_tags()#
Gets the tags from the DM file.
- read()#
Read the DM file and extract metadata.
- set_data_type(dataset)#
Sets the data type of the dataset based on its shape and metadata.
- set_dimensions(dataset)#
Sets the dimensions of the dataset.
- property tags#
Gets the tags from the DM file.