util.OutputManager
- class jVMC.util.output_manager.OutputManager(dataFileName, group='/', append=False)
This class provides functionality for I/O and timing.
Upon initialization with
outp = OutputManager("filename.h5")an HDF5 file
filename.h5is created. If the file exists, append=True will prevent overwriting it. This HDF5 file is intended for numerical output and output can be written to it using thewrite_observables(),write_metadata(), andwrite_network_checkpoint()member functions.Furthermore, timings can be recorded using the
start_timing()andstop_timing()member functions. The recorded timings can be printed to screen using theprint_timings()function.Finally, the OutputManager provides a
print()function, that wraps python’s standardprint()to print only on the MPI process with rank 0.
- jVMC.util.output_manager.__init__(*args, **kwargs)
Initialize self. See help(type(self)) for accurate signature.