Skip to content

Commit 5c66775

Browse files
authored
Merge pull request #101 from osyris-project/fix_sink_reader
Fix sink particles reader for legacy files after 2.9.0 release
2 parents bff42d8 + efca1f5 commit 5c66775

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = osyris
3-
version = 2.9.0
3+
version = 2.9.1
44
author = Neil Vaytet
55
author_email = [email protected]
66
description = A package to visualize AMR data from the RAMSES code

src/osyris/io/sink.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def initialize(self, meta, units, select):
5050
else:
5151
if all(x in u for x in ["[", "]"]):
5252
# Legacy sink format quantities are not in code units
53-
unit_list.append(ureg(u.replace("[", "").replace("]", "")))
53+
unit_list.append(1.0 * ureg(u.replace("[", "").replace("]", "")))
5454
else:
5555
unit_list.append(eval(u.replace(' ', '*')))
5656

0 commit comments

Comments
 (0)