hyperspy.io_plugins.hspy module

hyperspy.io_plugins.hspy.current_file_version = None
hyperspy.io_plugins.hspy.default_extension = 0
hyperspy.io_plugins.hspy.default_version = LooseVersion ('3.0')
hyperspy.io_plugins.hspy.description = 'The default file format for HyperSpy based on the HDF5 standard'
hyperspy.io_plugins.hspy.dict2hdfgroup(dictionary, group, **kwds)
hyperspy.io_plugins.hspy.file_extensions = ['hspy', 'hdf5']
hyperspy.io_plugins.hspy.file_reader(filename, backing_store=False, lazy=False, **kwds)
hyperspy.io_plugins.hspy.file_writer(filename, signal, *args, **kwds)
hyperspy.io_plugins.hspy.format_name = 'HSPY'
hyperspy.io_plugins.hspy.full_support = False
hyperspy.io_plugins.hspy.get_hspy_format_version(f)
hyperspy.io_plugins.hspy.get_signal_chunks(shape, dtype, signal_axes=None)

Function that claculates chunks for the signal, preferably at least one chunk per signal space.

Parameters
  • shape (tuple) – the shape of the dataset to be sored / chunked

  • dtype ({dtype, string}) – the numpy dtype of the data

  • signal_axes ({None, iterable of ints}) – the axes defining “signal space” of the dataset. If None, the default h5py chunking is performed.

hyperspy.io_plugins.hspy.hdfgroup2dict(group, dictionary=None, lazy=False)
hyperspy.io_plugins.hspy.hdfgroup2signaldict(group, lazy=False)
hyperspy.io_plugins.hspy.not_valid_format = 'The file is not a valid HyperSpy hdf5 file'
hyperspy.io_plugins.hspy.overwrite_dataset(group, data, key, signal_axes=None, chunks=None, **kwds)
hyperspy.io_plugins.hspy.version = '3.0'
hyperspy.io_plugins.hspy.write_signal(signal, group, **kwds)
hyperspy.io_plugins.hspy.writes = True