Skip to content

Commit

Permalink
Fix for reading incomeplete deposition.out files
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeshingles committed Jun 8, 2024
1 parent ab36ccf commit a63c988
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion artistools/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ def get_deposition(modelpath: Path | str = ".") -> pl.DataFrame:

# no timesteps are given in the old format of deposition.out, so ensure that
# the times in days match up with the times of our assumed timesteps
if not np.allclose(depdata["tmid_days"].to_numpy(), ts_mids, rtol=0.01):
if not np.allclose(depdata["tmid_days"].to_numpy(), ts_mids[: len(depdata["tmid_days"])], rtol=0.01):
msg = "Deposition times do not match the timesteps"
raise AssertionError(msg)

Expand Down

0 comments on commit a63c988

Please sign in to comment.