sxs 2024.0.40__py3-none-any.whl → 2024.0.41__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.40"
1
+ __version__ = "2024.0.41"
sxs/metadata/metadata.py CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  import re
4
4
  import collections
5
+ import numpy as np
5
6
 
6
7
 
7
8
  _valid_identifier_pattern = re.compile(r'\W|^(?=\d)')
@@ -29,8 +30,11 @@ def _backwards_compatibility(metadata):
29
30
  # it's probably a good idea to duplicate whatever is included here
30
31
  # in that function, just to make sure nothing slips through the
31
32
  # cracks.
32
- if "number_of_orbits" not in metadata and "number_of_orbits_from_start" in metadata:
33
- metadata["number_of_orbits"] = metadata["number_of_orbits_from_start"]
33
+ if "number_of_orbits" not in metadata:
34
+ if "number_of_orbits_from_start" in metadata:
35
+ metadata["number_of_orbits"] = metadata["number_of_orbits_from_start"]
36
+ else:
37
+ metadata["number_of_orbits"] = np.nan
34
38
  return metadata
35
39
 
36
40
 
sxs/simulations/local.py CHANGED
@@ -153,7 +153,14 @@ def local_simulations(annex_dir, compute_md5=False, show_progress=False):
153
153
  files = files_to_upload(dirpath, annex_dir)
154
154
 
155
155
  metadata["mtime"] = datetime.fromtimestamp(
156
- max(file.resolve().stat().st_mtime for file in files),
156
+ max(
157
+ (
158
+ file.resolve().stat().st_mtime
159
+ for file in files
160
+ if file.exists()
161
+ ),
162
+ default=0.0,
163
+ ),
157
164
  tz=timezone.utc,
158
165
  ).isoformat()
159
166
 
@@ -164,6 +171,7 @@ def local_simulations(annex_dir, compute_md5=False, show_progress=False):
164
171
  "checksum": md5checksum(file) if compute_md5 else "",
165
172
  }
166
173
  for file in files
174
+ if file.exists()
167
175
  }
168
176
  except KeyboardInterrupt:
169
177
  raise
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sxs
3
- Version: 2024.0.40
3
+ Version: 2024.0.41
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=EGvErJKyfOAcfUYNKwYjEPAOmSCXucQ-3166Z0QMqHw,26
2
+ sxs/__version__.py,sha256=o95yq2nvQ6FsIUfCHrH8nIWlGM_edEB29js8ZcW9LWw,26
3
3
  sxs/handlers.py,sha256=Nc1_aDKm_wDHg2cITI_ljbqU4VRWpwQ7fdgy3c1XcE8,17531
4
4
  sxs/juliapkg.json,sha256=-baaa3Za_KBmmiGjlh2YYLWmvUvZl6GaKKXwNI4S7qU,178
5
5
  sxs/time_series.py,sha256=OKaLg8tFyrtKcef7900ri-a0C6A8wKxA68KovZXvH6I,41081
@@ -16,10 +16,10 @@ sxs/horizons/xor_multishuffle_bzip2.py,sha256=y4AKuxmLuj8K1pkdhIoSzENGyMu4uhpiPr
16
16
  sxs/julia/GWFrames.py,sha256=47H9Ugff7ldGBujiUTcADT3b4MSxUtqmajvSApI91WA,2892
17
17
  sxs/julia/__init__.py,sha256=uSLP_xfU-GZG7IO5vs0TEkCR4LH8aBYMF-852wDY3kI,3490
18
18
  sxs/metadata/__init__.py,sha256=jz0A3sBYQoNVZ5sdHv6LgI6y4kP2051-esCR62xt6bM,184
19
- sxs/metadata/metadata.py,sha256=xB4Cz2V_7qwabK_x0L5rPuWS1XOOWXQKx4EPXtlbZLo,28515
19
+ sxs/metadata/metadata.py,sha256=vqzNufg46BrbFAuvDF55JvrQc0ZIBxSG4eH2awv5PDs,28610
20
20
  sxs/metadata/metric.py,sha256=zWyM23SQUMXwpDvQNnp2USJrwxiC3SoobFXm0h_sMMs,6615
21
21
  sxs/simulations/__init__.py,sha256=GrZym0PHTULDg_hyFmISNzDfqVLz_hQo-djbgecZs54,134
22
- sxs/simulations/local.py,sha256=nh1coOPunVD0hB6pp2WTm31rFdakNEoP5niMbV4s04o,7992
22
+ sxs/simulations/local.py,sha256=kyFvlw9CywlyBy0H2GiSgOp4M7Uq31Db5LIdd2do43M,8242
23
23
  sxs/simulations/simulation.py,sha256=HRm6vaVGjRziQZ1VPOG1ESxaITgLAJCp4lhGZ4fpez8,36232
24
24
  sxs/simulations/simulations.py,sha256=xP1ljseDSkfs6_u25-DnSNlFQtQexiP25Kwtm7nWdsE,23910
25
25
  sxs/utilities/__init__.py,sha256=WSStlqljfgQheMxHGfuofSc5LdmASGvO3FNO3f_zaT0,4806
@@ -82,7 +82,7 @@ sxs/zenodo/api/__init__.py,sha256=EM_eh4Q8R5E0vIfMhyIR1IYFfOBu6vA0UTasgX9gHys,21
82
82
  sxs/zenodo/api/deposit.py,sha256=J4RGvGjh0cEOrN4bBZWEDcPAhNscqB2fzLlvRZ5HTHM,36948
83
83
  sxs/zenodo/api/login.py,sha256=Yz0ytgi81_5BpDzhrS0WPMXlvU2qUaCK8yn8zxfEbko,18007
84
84
  sxs/zenodo/api/records.py,sha256=nKkhoHZ95CTztHF9Zzaug5p7IiUCJG4Em1i-l-WqH6U,3689
85
- sxs-2024.0.40.dist-info/METADATA,sha256=574RUXvZj-1zsevIFQ2to3JPHtKL_Wf6vHiflSeYKN0,9253
86
- sxs-2024.0.40.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
87
- sxs-2024.0.40.dist-info/licenses/LICENSE,sha256=ptVOd5m7LDM5ZF0x32cxb8c2Nd5NDmAhy6DX7xt_7VA,1080
88
- sxs-2024.0.40.dist-info/RECORD,,
85
+ sxs-2024.0.41.dist-info/METADATA,sha256=IUvgoHcgUjDEQ3GRq__ZTr7Dn5n9kYi8EFtr-tOpRKM,9253
86
+ sxs-2024.0.41.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
87
+ sxs-2024.0.41.dist-info/licenses/LICENSE,sha256=ptVOd5m7LDM5ZF0x32cxb8c2Nd5NDmAhy6DX7xt_7VA,1080
88
+ sxs-2024.0.41.dist-info/RECORD,,