sxs 2024.0.18__py3-none-any.whl → 2024.0.20__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.18"
1
+ __version__ = "2024.0.20"
@@ -1,7 +1,7 @@
1
1
  """Container interface to the catalog of SXS simulations"""
2
2
 
3
- import functools
4
3
  import collections
4
+ import numpy as np
5
5
  import pandas as pd
6
6
 
7
7
  class SimulationsDataFrame(pd.DataFrame):
@@ -26,12 +26,12 @@ class SimulationsDataFrame(pd.DataFrame):
26
26
  @property
27
27
  def noneccentric(self):
28
28
  """Restrict dataframe to just non-eccentric systems (e<1e-3)"""
29
- return type(self)(self[self["reference_eccentricity"] < 1e-3])
29
+ return type(self)(self[self["reference_eccentricity_bound"] < 1e-3])
30
30
 
31
31
  @property
32
32
  def eccentric(self):
33
33
  """Restrict dataframe to just eccentric systems (e>=1e-3)"""
34
- return type(self)(self[self["reference_eccentricity"] >= 1e-3])
34
+ return type(self)(self[self["reference_eccentricity_bound"] >= 1e-3])
35
35
 
36
36
  @property
37
37
  def nonprecessing(self):
@@ -54,6 +54,21 @@ class SimulationsDataFrame(pd.DataFrame):
54
54
  return type(self)(self[
55
55
  (self["reference_chi1_perp"] + self["reference_chi2_perp"]) >= 1e-3
56
56
  ])
57
+
58
+ @property
59
+ def IMR(self):
60
+ """Restrict dataframe to just BBH systems with inspiral, merger, and ringdown
61
+
62
+ The criteria used here are just that the reference
63
+ eccentricity and remnant mass are actual (finite)
64
+ numbers. Currently, at least, the existence of a
65
+ measured eccentricity means that the system is not
66
+ hyperbolic or head-on.
67
+ """
68
+ return type(self)(self[
69
+ np.isfinite(self["reference_eccentricity"])
70
+ & np.isfinite(self["remnant_mass"])
71
+ ])
57
72
 
58
73
 
59
74
  class Simulations(collections.OrderedDict):
@@ -70,6 +85,20 @@ class Simulations(collections.OrderedDict):
70
85
 
71
86
  simulations = sxs.load("simulations")
72
87
  ```
88
+
89
+ Note SXS members may also wish to read a local copy of the
90
+ simulation annex, which can be done with
91
+ ```python
92
+ simulations = sxs.load("simulations", annex_dir="/path/to/SimulationAnnex.git")
93
+ ```
94
+ which will re-read the annex (which may take about a minute), or
95
+ ```python
96
+ simulations = sxs.load("simulations", local=True)
97
+ ```
98
+ if the annex has not been updated since the last time you
99
+ used the `annex_dir` argument. Once you have done this,
100
+ calls to `sxs.load` will automatically use this local copy
101
+ of the simulations.
73
102
  """
74
103
  last_modified_url = "https://api.github.com/repos/sxs-collaboration/sxs/contents/simulations.json?ref=simulations"
75
104
  url = "https://github.com/sxs-collaboration/sxs/raw/simulations/simulations.json"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: sxs
3
- Version: 2024.0.18
3
+ Version: 2024.0.20
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=azdCDT3ktM4BaKnUzpwFNRXrkMHbYmM9S-ljaxcAThw,26
2
+ sxs/__version__.py,sha256=g3GeSoqvlteY_p0wwNiA8baVXYkyWB0EKHrtp1fFYHc,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=8R3EVfq0OLT2wAE5vjLbx4gCte79M7depb-SB6PLSRU,21971
23
+ sxs/simulations/simulations.py,sha256=Y8wNfumdhQyX0SmdXdE8dGRNUawyxwyNTN5WS_2JsXw,23112
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.18.dist-info/METADATA,sha256=bV11FyEjtxKa73tyv_uYgPYs7vTxc6GkDmzBKU-EpWU,9245
83
- sxs-2024.0.18.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
84
- sxs-2024.0.18.dist-info/licenses/LICENSE,sha256=ptVOd5m7LDM5ZF0x32cxb8c2Nd5NDmAhy6DX7xt_7VA,1080
85
- sxs-2024.0.18.dist-info/RECORD,,
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,,