Skip to content

Commit

Permalink
Merge pull request #101 from osyris-project/fix_sink_reader
Browse files Browse the repository at this point in the history
Fix sink particles reader for legacy files after 2.9.0 release
  • Loading branch information
nvaytet authored May 31, 2022
2 parents bff42d8 + efca1f5 commit 5c66775
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = osyris
version = 2.9.0
version = 2.9.1
author = Neil Vaytet
author_email = [email protected]
description = A package to visualize AMR data from the RAMSES code
Expand Down
2 changes: 1 addition & 1 deletion src/osyris/io/sink.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def initialize(self, meta, units, select):
else:
if all(x in u for x in ["[", "]"]):
# Legacy sink format quantities are not in code units
unit_list.append(ureg(u.replace("[", "").replace("]", "")))
unit_list.append(1.0 * ureg(u.replace("[", "").replace("]", "")))
else:
unit_list.append(eval(u.replace(' ', '*')))

Expand Down

0 comments on commit 5c66775

Please sign in to comment.