Skip to content

Commit 1fcdace

Browse files
committed
minor bugfix in cholla frontend
Previously, the ``domain_right_edge`` attribute of ``ChollaDataset`` was initialized by assigning it the values of the ``"domain"`` attribute stored in the hdf5 file. This patch adjusts the logic so that the ``domain_right_edge`` attribute is now the sum of that array and the array stored in the ``domain_left_edge`` attribute.
1 parent 395f74d commit 1fcdace

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

yt/frontends/cholla/data_structures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def _parse_parameter_file(self):
103103
attrs = h5f.attrs
104104
self.parameters = dict(attrs.items())
105105
self.domain_left_edge = attrs["bounds"][:].astype("=f8")
106-
self.domain_right_edge = attrs["domain"][:].astype("=f8")
106+
self.domain_right_edge = self.domain_left_edge + attrs["domain"][:].astype("=f8")
107107
self.dimensionality = len(attrs["dims"][:])
108108
self.domain_dimensions = attrs["dims"][:].astype("=f8")
109109
self.current_time = attrs["t"][:]

0 commit comments

Comments
 (0)