From 8e2d1a31d793be5a1d0d1905c2ede10ff1c1e672 Mon Sep 17 00:00:00 2001 From: Mike Boyle Date: Wed, 27 Nov 2024 15:44:45 -0500 Subject: [PATCH] Detect data type correctly --- sxs/waveforms/format_handlers/grathena.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sxs/waveforms/format_handlers/grathena.py b/sxs/waveforms/format_handlers/grathena.py index 6a89822..8834dea 100644 --- a/sxs/waveforms/format_handlers/grathena.py +++ b/sxs/waveforms/format_handlers/grathena.py @@ -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] @@ -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,