yank
yank copied to clipboard
Optimize reading informations about thermodynamic states from the NetCDF file
There are a couple of further optimizations that can be done here.
- The temperature of the state is saved separately from the system in the dictionary
{system, temperature, pressure}
that represents theThermodynamicState
. If we save this dictionary usingReporter._write_dict(..., nested=True)
, we could add aReporter.read_temperatures()
method and read the temperature without reading the system. - We should add to
Reporter.read_thermodynamic_states()
two arguments (one for sampled and one for unsampled states) specifying the states to read to give more control. This would substituteReporter.read_end_thermodynamic_states()
.