sxs 2024.0.44__py3-none-any.whl → 2025.0.1__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/__init__.py CHANGED
@@ -28,7 +28,7 @@ from .waveforms import WaveformModes, WaveformModesDict, to_lvc_conventions #, W
28
28
  from .waveforms import rotating_paired_xor_multishuffle_bzip2 as rpxmb
29
29
  from .waveforms import rotating_paired_diff_multishuffle_bzip2 as rpdmb
30
30
  from .waveforms import spectre_cce_v1
31
- from . import catalog, metadata, horizons, waveforms, zenodo, caltechdata
31
+ from . import catalog, metadata, horizons, waveforms, zenodo
32
32
  from .simulations import Simulation, Simulations, write_local_simulations, local_simulations
33
33
  from .handlers import load, load_via_sxs_id, loadcontext, load_lvc
34
34
 
sxs/__version__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "2024.0.44"
1
+ __version__ = "2025.0.1"
sxs/handlers.py CHANGED
@@ -1,6 +1,7 @@
1
1
  """Functions to facilitate generic handling of SXS-format data files"""
2
2
 
3
3
  import contextlib
4
+ import sxscatalog
4
5
  from . import waveforms, doi_url
5
6
 
6
7
 
@@ -280,25 +281,8 @@ def load(location, download=None, cache=None, progress=None, truepath=None, **kw
280
281
  elif location == "catalog":
281
282
  return Catalog.load(download=download)
282
283
 
283
- elif location == "simulations":
284
- return Simulations.load(
285
- download=download,
286
- local=kwargs.get("local", False),
287
- annex_dir=kwargs.get("annex_dir", None),
288
- output_file=kwargs.get("output_file", None),
289
- compute_md5=kwargs.get("compute_md5", False),
290
- show_progress=kwargs.get("show_progress", False)
291
- )
292
-
293
- elif location == "dataframe":
294
- return Simulations.load(
295
- download=download,
296
- local=kwargs.get("local", False),
297
- annex_dir=kwargs.get("annex_dir", None),
298
- output_file=kwargs.get("output_file", None),
299
- compute_md5=kwargs.get("compute_md5", False),
300
- show_progress=kwargs.get("show_progress", False)
301
- ).dataframe
284
+ elif location in ["simulations", "dataframe"]:
285
+ return sxscatalog.load(location, download=download, **kwargs)
302
286
 
303
287
  elif sxs_id_version_lev_exact_re.match(location):
304
288
  return Simulation(location, download=download, cache=cache, progress=progress, **kwargs)
sxs/metadata/__init__.py CHANGED
@@ -1,10 +1,2 @@
1
1
  """Interface to SXS metadata files"""
2
-
3
- from .metadata import Metadata
4
- from .metric import MetadataMetric
5
-
6
- formats = {
7
- None: Metadata,
8
- "": Metadata,
9
- "metadata": Metadata,
10
- }
2
+ from sxscatalog.metadata import *