sxs 2024.0.20__py3-none-any.whl → 2024.0.21__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.20"
1
+ __version__ = "2024.0.21"
@@ -6,10 +6,10 @@ import pandas as pd
6
6
 
7
7
  class SimulationsDataFrame(pd.DataFrame):
8
8
  @property
9
- def BHBH(self):
9
+ def BBH(self):
10
10
  """Restrict dataframe to just binary black hole systems"""
11
11
  return type(self)(self[self["object_types"] == "BHBH"])
12
- BBH = BHBH
12
+ BHBH = BBH
13
13
 
14
14
  @property
15
15
  def BHNS(self):
@@ -65,9 +65,23 @@ class SimulationsDataFrame(pd.DataFrame):
65
65
  measured eccentricity means that the system is not
66
66
  hyperbolic or head-on.
67
67
  """
68
+ df = self.BBH
69
+ return type(df)(df[
70
+ np.isfinite(df["reference_eccentricity"])
71
+ & np.isfinite(df["remnant_mass"])
72
+ ])
73
+
74
+ @property
75
+ def hyperbolic(self):
76
+ """Restrict dataframe to just hyperbolic systems
77
+
78
+ The criterion used here is that the (normalized) ADM mass is
79
+ greater than 1.
80
+ """
81
+ total_mass = self["initial_mass1"] + self["initial_mass2"]
82
+ normalized_ADM = self["initial_ADM_energy"] / total_mass
68
83
  return type(self)(self[
69
- np.isfinite(self["reference_eccentricity"])
70
- & np.isfinite(self["remnant_mass"])
84
+ np.isfinite(total_mass) & (total_mass > 0) & (normalized_ADM > 1)
71
85
  ])
72
86
 
73
87
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: sxs
3
- Version: 2024.0.20
3
+ Version: 2024.0.21
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=g3GeSoqvlteY_p0wwNiA8baVXYkyWB0EKHrtp1fFYHc,26
2
+ sxs/__version__.py,sha256=JaJcB2EZkVMA4Cz4TKkfaalWOehMYQZLw2qec2Ihc6k,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
@@ -20,7 +20,7 @@ sxs/metadata/metadata.py,sha256=y6X7LcsJKiZFjBPTwRHGtsT2uHf2s0r0OG_EGjD27pE,2766
20
20
  sxs/simulations/__init__.py,sha256=GrZym0PHTULDg_hyFmISNzDfqVLz_hQo-djbgecZs54,134
21
21
  sxs/simulations/local.py,sha256=CEu8PzumNB1-JA05M4tYSW_UZVrldKzOB5T_I3pFWls,5789
22
22
  sxs/simulations/simulation.py,sha256=R2Nf3z3XEu92-oiHLeynGMpjqQu5iYV25L8K9lFrOcY,34204
23
- sxs/simulations/simulations.py,sha256=Y8wNfumdhQyX0SmdXdE8dGRNUawyxwyNTN5WS_2JsXw,23112
23
+ sxs/simulations/simulations.py,sha256=qnYHKd6wz5auYweOZeDDMm4ZzG3s-lqOltQCxEZBrmU,23594
24
24
  sxs/utilities/__init__.py,sha256=WSStlqljfgQheMxHGfuofSc5LdmASGvO3FNO3f_zaT0,4806
25
25
  sxs/utilities/bitwise.py,sha256=G9ZNYgwDQRhq5wbDf-p2HcUqkEP_IRDiQoXW4KyU17k,13205
26
26
  sxs/utilities/dicts.py,sha256=CCpm3upG_9SRj9gjawukSUfaJ5asF-XRG2ausEXhYyg,695
@@ -79,7 +79,7 @@ sxs/zenodo/api/__init__.py,sha256=EM_eh4Q8R5E0vIfMhyIR1IYFfOBu6vA0UTasgX9gHys,21
79
79
  sxs/zenodo/api/deposit.py,sha256=J4RGvGjh0cEOrN4bBZWEDcPAhNscqB2fzLlvRZ5HTHM,36948
80
80
  sxs/zenodo/api/login.py,sha256=Yz0ytgi81_5BpDzhrS0WPMXlvU2qUaCK8yn8zxfEbko,18007
81
81
  sxs/zenodo/api/records.py,sha256=nKkhoHZ95CTztHF9Zzaug5p7IiUCJG4Em1i-l-WqH6U,3689
82
- sxs-2024.0.20.dist-info/METADATA,sha256=hjlCnxbPf6VDHKdDbv63C_v1J0nqsR3VgSpes_GVROM,9245
83
- sxs-2024.0.20.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
84
- sxs-2024.0.20.dist-info/licenses/LICENSE,sha256=ptVOd5m7LDM5ZF0x32cxb8c2Nd5NDmAhy6DX7xt_7VA,1080
85
- sxs-2024.0.20.dist-info/RECORD,,
82
+ sxs-2024.0.21.dist-info/METADATA,sha256=0m01ddP9Px6y6nHEtBwSWZ0XEI3SmCAjbBYRT28ocM4,9245
83
+ sxs-2024.0.21.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
84
+ sxs-2024.0.21.dist-info/licenses/LICENSE,sha256=ptVOd5m7LDM5ZF0x32cxb8c2Nd5NDmAhy6DX7xt_7VA,1080
85
+ sxs-2024.0.21.dist-info/RECORD,,