BREAKING: Change output format and when step is changed #37
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This should help prevent over 1000 files from being in a directory, which can be an issue on some file systems.
Instead of storing snapshots in
"traj/snap<i>.zarr.zip"they are now in"traj/<i÷1000>/<i%1000 zero padded to 3 digits>.zip"so for example,"traj/0/000.zip","traj/0/001.zip"..."traj/42/999.zip".There is a function
step_path(step::Int)::Stringto convert, for example, from1to"0/001.zip"and a functionsteps_traj_dir(traj::String)::Vector{Int}thatreturns the snapshot steps from low to high found in the
trajdirectory.This PR also removes the deprecated
run_simfunction.Lastly, when the simulation is run, the step variable is now updated before the calling
loopinstead of after.This means the first call to
loopgetsstep = 1instead ofstep = 0