Skip to content

Commit

Permalink
Backport PR yt-project#4686: minor bugfix in cholla frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros authored and meeseeksmachine committed Oct 26, 2023
1 parent 534ea57 commit 2b94802
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion yt/frontends/cholla/data_structures.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ def _parse_parameter_file(self):
attrs = h5f.attrs
self.parameters = dict(attrs.items())
self.domain_left_edge = attrs["bounds"][:].astype("=f8")
self.domain_right_edge = attrs["domain"][:].astype("=f8")
self.domain_right_edge = self.domain_left_edge + attrs["domain"][:].astype(
"=f8"
)
self.dimensionality = len(attrs["dims"][:])
self.domain_dimensions = attrs["dims"][:].astype("=f8")
self.current_time = attrs["t"][:]
Expand Down

0 comments on commit 2b94802

Please sign in to comment.