Open cwalker7 opened 4 years ago
Interesting. I don't have an immediate thought, other than that we may not actually need to write ascii files much of the time, this part could perhaps be made optional?
Ok I think it makes sense to have the .dat file be optional for now. Currently we are only using that file for the physical validation, but it could just as easily be read in as a pickle or by numpy.save and load.
I've noticed that process_replica_exchange in rep_exch.py can be pretty slow - particularly this block of code which writes the .dat file:
It takes about 10 minutes to write .dat for 1 million frames, which is ~75% of the entire process_replica_exchange time (excluding writing pdb or dcd trajectories files). I suspect it is how we are writing each individual energy one at a time, but will have to check.