DataLoader

Inheritance Diagram

Inheritance diagram of tenpy.simulations.post_processing.DataLoader

Methods

DataLoader.__init__([filename, simulation, data])

DataLoader.close()

DataLoader.convert_list_to_ndarray(value, key)

DataLoader.get_all_keys_as_dict()

DataLoader.get_data(key[, prefix, ...])

DataLoader.get_data_m(key[, prefix, ...])

DataLoader.get_model()

Deprecated in favor of the simpler property access via DataLoader.model.

Class Attributes and Properties

DataLoader.BZ

DataLoader.lat

DataLoader.logger

DataLoader.measurements

DataLoader.model

DataLoader.psi

class tenpy.simulations.post_processing.DataLoader(filename=None, simulation=None, data=None)[source]

Bases: object

Post-processing class to handle IO and get Model and MPS from saved simulation data.

Parameters:
  • filename (str | Path, optional) – Path to a hdf5 file.

  • simulation – An instance of a Simulation

  • data (dict, optional) – dictionary of simulation results (to be used in e.g. Jupyter Notebooks)

filename

Path to the hdf5 file.

Type:

str | Path

sim_params

Simulation parameters loaded from the hdf5 file. This includes the model parameters and algorithm parameters

Type:

dict

.. todo ::

Include an Option for saving data into a .hdf5 file without overwriting any results.

get_model()[source]

Deprecated in favor of the simpler property access via DataLoader.model.