DataFiles
full name: tenpy.simulations.post_processing.DataFiles
parent module:
tenpy.simulations.post_processing
type: class
Inheritance Diagram
Methods
|
|
Close all files held open by self. |
|
|
|
Return paths of the files opened. |
|
|
Load all data files from a given folder. |
Return iterator over the |
- class tenpy.simulations.post_processing.DataFiles(files=None, folder=None)[source]
Bases:
object
Hold multiple DataLoader instances open, indexed by the filename.
Acts like a dictionary mapping filenames to
DataLoader
. Item access implicitly opens files that are not yet loaded.Examples
>>> data_files = DataFiles(['results/output_1.h5', ... 'results_other/output_3.h5']) >>> data_files['results/output_1.h5'] DataLoader(filename='results/output_1.h5') >>> data_files['results/output_2.h5'] loading results/output_2.h5 ... successful
- values()[source]
Return iterator over the
DataLoader
instances.