sxs 2024.0.23__py3-none-any.whl → 2024.0.25__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
sxs/__version__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "2024.0.23"
1
+ __version__ = "2024.0.25"
@@ -1,6 +1,7 @@
1
1
  from ... import sxs_directory
2
2
  from . import nrar
3
3
 
4
+
4
5
  def load(file, **kwargs):
5
6
  """Load a waveform from a GR-Athena++ `tar` file.
6
7
 
@@ -13,11 +14,11 @@ def load(file, **kwargs):
13
14
  ================
14
15
  subfile : str
15
16
  The name of the subfile within the `tar` file to read.
16
- Default is "rh_Asymptotic_GeometricUnits.h5". Other
17
- potentially useful values replace "rh" with "rPsi4" and/or
18
- "Asymptotic" with "CCE" or "FiniteRadii".
17
+ Default is "rh_CCE_GeometricUnits.h5". Other potentially
18
+ useful values replace "rh" with "rPsi4" and/or "CCE" with
19
+ "Asymptotic" or "FiniteRadii".
19
20
  radius : str
20
- The extraction radius to use. Default is "100.00".
21
+ The extraction radius to use. Default is "50.00".
21
22
 
22
23
  Notes
23
24
  =====
@@ -59,19 +60,27 @@ def load(file, **kwargs):
59
60
  * "120.00"
60
61
  * "140.00"
61
62
 
62
- Note the two 0s after the decimal point. The `FiniteRadii` and
63
+ (Note the two 0s after the decimal point.) The `FiniteRadii` and
63
64
  `Asymptotic` data generally contain all of the above radii, while
64
65
  the `CCE` data generally contains only the "50.00" and "100.00"
65
- radius.
66
+ radius. The catalog paper uses "50.00" as the radius when
67
+ discussing properties of the waveforms, possibly because CCE only
68
+ "exhibits convergence behavior" for data from that radius. They
69
+ also use "100.00" for "extrapolated" waveforms some times. The
70
+ default used here is "50.00".
66
71
 
67
72
  """
68
-
69
73
  from pathlib import Path
70
74
  import tarfile
71
75
 
72
76
  resolution = Path(file).stem
73
- subfile = kwargs.pop("subfile", "rh_Asymptotic_GeometricUnits.h5")
74
- radius = kwargs.pop("radius", "100.00")
77
+ subfile = kwargs.pop("subfile", "rh_CCE_GeometricUnits.h5")
78
+ radius = kwargs.pop("radius", "50.00")
79
+
80
+ if subfile.startswith("rPsi4"):
81
+ data_type = nrar.psi4
82
+ elif subfile.startswith("rh"):
83
+ data_type = nrar.h
75
84
 
76
85
  with tarfile.open(file, "r") as tf:
77
86
  tf_names = [tfi.name for tfi in tf]
@@ -81,9 +90,15 @@ def load(file, **kwargs):
81
90
  h5file,
82
91
  h5_group=radius,
83
92
  frame_type=nrar.Inertial,
84
- data_type=nrar.h,
93
+ data_type=data_type,
85
94
  m_is_scaled_out=True,
86
95
  r_is_scaled_out=True,
87
96
  )
88
97
 
98
+ w._metadata["frame_type"] = "inertial"
99
+ if subfile.startswith("rPsi4"):
100
+ w._metadata["data_type"] = "psi4"
101
+ elif subfile.startswith("rh"):
102
+ w._metadata["data_type"] = "h"
103
+
89
104
  return w
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: sxs
3
- Version: 2024.0.23
3
+ Version: 2024.0.25
4
4
  Summary: Interface to data produced by the Simulating eXtreme Spacetimes collaboration
5
5
  Project-URL: Homepage, https://github.com/sxs-collaboration/sxs
6
6
  Project-URL: Documentation, https://sxs.readthedocs.io/
@@ -1,5 +1,5 @@
1
1
  sxs/__init__.py,sha256=hbydsXWR88sFiKExPJ1NHWGEvWRbbJBjSc1irSMYKgY,2623
2
- sxs/__version__.py,sha256=_n11wDyAxiN_O-s95KSBgSg0m8Bf6LqW-kePLQ7LPqY,26
2
+ sxs/__version__.py,sha256=wFnAFbLby385Dh-116_1KBAU9uaxIlFikcXmdzUfU-A,26
3
3
  sxs/handlers.py,sha256=Nc1_aDKm_wDHg2cITI_ljbqU4VRWpwQ7fdgy3c1XcE8,17531
4
4
  sxs/juliapkg.json,sha256=higH1UDu30K_PN6-o7lAz0j1xjgYEiCCYBAc-Iaw1Iw,178
5
5
  sxs/time_series.py,sha256=OKaLg8tFyrtKcef7900ri-a0C6A8wKxA68KovZXvH6I,41081
@@ -65,7 +65,7 @@ sxs/waveforms/waveform_mixin.py,sha256=S0RNe2HkwnqdCyGEarGYmoXD_DkTWGorsiGGIBWOa
65
65
  sxs/waveforms/waveform_modes.py,sha256=svvEHHyOez6MFcpVsIFsiLJqvGrb_saCgSHVBK1XErk,57100
66
66
  sxs/waveforms/waveform_signal.py,sha256=Ojrt6DSDdleB0qmu6UwjjPnYdaWsrjnpBA_8dhnM_q4,182
67
67
  sxs/waveforms/format_handlers/__init__.py,sha256=0wsnuBYCYsCkN19L2ipga7BtigvPyBcqiy_4qrzmLpE,50
68
- sxs/waveforms/format_handlers/grathena.py,sha256=hc0uDtlzlkuibNQtpozkeEoybn297_mGtlV_AMQsBs8,3016
68
+ sxs/waveforms/format_handlers/grathena.py,sha256=5NrHL3K0mRHApnFx5YsMUufDKUD1A_dZu8mGQqOdBeE,3622
69
69
  sxs/waveforms/format_handlers/lvc.py,sha256=gdXYqa8Bn8jCSIRIshMP399WO9ZMtkNtkAQiuzqhH_0,7817
70
70
  sxs/waveforms/format_handlers/nrar.py,sha256=3ycVoqQcWAAixV3mKp58_wUhYBHt6QeLv2YGSvy-EGM,21538
71
71
  sxs/waveforms/format_handlers/rotating_paired_diff_multishuffle_bzip2.py,sha256=C19-9VkQ5dt9I7GHkeFrF56k_BbFPHXIMX_xmmBj7ww,27477
@@ -80,7 +80,7 @@ sxs/zenodo/api/__init__.py,sha256=EM_eh4Q8R5E0vIfMhyIR1IYFfOBu6vA0UTasgX9gHys,21
80
80
  sxs/zenodo/api/deposit.py,sha256=J4RGvGjh0cEOrN4bBZWEDcPAhNscqB2fzLlvRZ5HTHM,36948
81
81
  sxs/zenodo/api/login.py,sha256=Yz0ytgi81_5BpDzhrS0WPMXlvU2qUaCK8yn8zxfEbko,18007
82
82
  sxs/zenodo/api/records.py,sha256=nKkhoHZ95CTztHF9Zzaug5p7IiUCJG4Em1i-l-WqH6U,3689
83
- sxs-2024.0.23.dist-info/METADATA,sha256=BUBQrGVfYPKDR6QK3DFD8OXiu612TeIqTzN-1LeoNnY,9223
84
- sxs-2024.0.23.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
85
- sxs-2024.0.23.dist-info/licenses/LICENSE,sha256=ptVOd5m7LDM5ZF0x32cxb8c2Nd5NDmAhy6DX7xt_7VA,1080
86
- sxs-2024.0.23.dist-info/RECORD,,
83
+ sxs-2024.0.25.dist-info/METADATA,sha256=w7m7WhEL59re0ZSEBMopnSJFrHuKLV2ZgUMhmuFgygA,9223
84
+ sxs-2024.0.25.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
85
+ sxs-2024.0.25.dist-info/licenses/LICENSE,sha256=ptVOd5m7LDM5ZF0x32cxb8c2Nd5NDmAhy6DX7xt_7VA,1080
86
+ sxs-2024.0.25.dist-info/RECORD,,