Skip to content

Commit

Permalink
Detect data type correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
moble committed Nov 27, 2024
1 parent 39d8897 commit 8e2d1a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sxs/waveforms/format_handlers/grathena.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ def load(file, **kwargs):
radius = kwargs.pop("radius", "50.00")

if subfile.startswith("rPsi4"):
data_type = "psi4"
data_type = nrar.psi4
elif subfile.startswith("rh"):
data_type = "h"
data_type = nrar.h

with tarfile.open(file, "r") as tf:
tf_names = [tfi.name for tfi in tf]
Expand All @@ -89,7 +89,7 @@ def load(file, **kwargs):
w = nrar.load(
h5file,
h5_group=radius,
frame_type="inertial",
frame_type=nrar.Inertial,
data_type=data_type,
m_is_scaled_out=True,
r_is_scaled_out=True,
Expand Down

0 comments on commit 8e2d1a3

Please sign in to comment.