SciFiReaders.readers.microscopy.spm.afm.mdt.MDTReader

SciFiReaders.readers.microscopy.spm.afm.mdt.MDTReader#

class SciFiReaders.readers.microscopy.spm.afm.mdt.MDTReader(file_path, *args, **kwargs)[source]#

Bases: Reader

Extracts data and metadata from NT-MDT (.mdt) binary files containing images or curves.

Parameters:

file_path (str) – Path to the file that needs to be read

self._input_file_path#

Path to the file that will be read

Type:

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_read

read

Reads the file given in file_path into a list of sidpy dataset

to_point_cloud

Convert a dictionary of spectra into a point cloud.

read(verbose=False)[source]#

Reads the file given in file_path into a list of sidpy dataset

Returns:

sidpy.Dataset – Multi-channel inputs are separated into individual dataset objects

Return type:

List of sidpy.Dataset objects.

to_point_cloud(spectrum_dict)[source]#

Convert a dictionary of spectra into a point cloud.

If the number of points differs between spectra, interpolate them to a common size before conversion.