hyperspy.io_plugins.hspy module

hyperspy.io_plugins.hspy.dict2hdfgroup(dictionary, group, **kwds)
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.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.overwrite_dataset(group, data, key, signal_axes=None, chunks=None, **kwds)
hyperspy.io_plugins.hspy.write_signal(signal, group, **kwds)