Skip to content

Commit

Permalink
fixed order of replaces and a test
Browse files Browse the repository at this point in the history
  • Loading branch information
kthyng committed Feb 6, 2025
1 parent ee8c9c6 commit 82b1809
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion particle_tracking_manager/the_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def __init__(

# want output_file to not include any suffix
output_file = (
output_file.replace(".nc", "").replace(".parq", "").replace(".parquet", "")
output_file.replace(".nc", "").replace(".parquet", "").replace(".parq", "")
)

## set up log for this simulation
Expand Down
2 changes: 1 addition & 1 deletion tests/test_opendrift.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def test_output_file():
"""make sure output file is parquet if output_format is parquet"""

m = OpenDriftModel(output_format="parquet")
assert m.output_file.endswith(".parq")
assert m.output_file.endswith(".parquet")

m = OpenDriftModel(output_format="netcdf")
assert m.output_file.endswith(".nc")
Expand Down

0 comments on commit 82b1809

Please sign in to comment.