SciFiReaders.readers.microscopy.spm.afm.axz.AxzReader

SciFiReaders.readers.microscopy.spm.afm.axz.AxzReader#

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

Bases: Reader

Extracts data and metadata from Analysis Studio AFM-IR files (.axz) files containing images or spectra

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

decode_bs64

Returns base64 data decoded in a numpy array

read

Reads the file given in file_path into a sidpy dataset

static decode_bs64(data)[source]#

Returns base64 data decoded in a numpy array

read(verbose=False)[source]#

Reads the file given in file_path into a sidpy dataset

Parameters:

verbose (Boolean (Optional)) – Whether or not to show print statements for debugging

Returns:

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

Return type:

Dict with sidpy.Dataset objects.