sxs 2024.0.34__py3-none-any.whl → 2024.0.35__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.34"
1
+ __version__ = "2024.0.35"
sxs/simulations/local.py CHANGED
@@ -135,27 +135,32 @@ def local_simulations(annex_dir, compute_md5=False, show_progress=False):
135
135
  if show_progress:
136
136
  progress_bar.update(1)
137
137
 
138
- key = extract_id_from_common_metadata(dirpath / "common-metadata.txt", annex_dir)
139
-
140
- # Find the highest Lev directory and extract the metadata
141
- highest_lev = sorted(
142
- [d for d in dirnames if d.startswith("Lev")]
143
- )[-1]
144
- metadata = Metadata.load(dirpath / highest_lev / "metadata")
145
- metadata = metadata.add_standard_parameters()
146
-
147
- metadata["directory"] = str(dirpath.relative_to(annex_dir))
148
-
149
- metadata["files"] = {
150
- path_to_invenio(file.relative_to(dirpath)): {
151
- "link": str(file),
152
- "size": file.stat().st_size,
153
- "checksum": md5checksum(file) if compute_md5 else "",
138
+ try:
139
+ key = extract_id_from_common_metadata(dirpath / "common-metadata.txt", annex_dir)
140
+
141
+ # Find the highest Lev directory and extract the metadata
142
+ highest_lev = sorted(
143
+ [d for d in dirnames if d.startswith("Lev")]
144
+ )[-1]
145
+ metadata = Metadata.load(dirpath / highest_lev / "metadata")
146
+ metadata = metadata.add_standard_parameters()
147
+
148
+ metadata["directory"] = str(dirpath.relative_to(annex_dir))
149
+
150
+ metadata["files"] = {
151
+ path_to_invenio(file.relative_to(dirpath)): {
152
+ "link": str(file),
153
+ "size": file.stat().st_size,
154
+ "checksum": md5checksum(file) if compute_md5 else "",
155
+ }
156
+ for file in files_to_upload(dirpath, annex_dir)
154
157
  }
155
- for file in files_to_upload(dirpath, annex_dir)
156
- }
157
158
 
158
- simulations[key] = metadata
159
+ simulations[key] = metadata
160
+ except KeyboardInterrupt:
161
+ raise
162
+ except Exception as e:
163
+ print(f"Error processing {dirpath}: {e}")
159
164
 
160
165
  dirnames[:] = [] # Don't keep looking for common-metadata.txt files under this directory
161
166
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sxs
3
- Version: 2024.0.34
3
+ Version: 2024.0.35
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=_cjLIU-5BZ9McQVaMqAHxQtb0C2QCB3z4_ZhWhK4Bzs,26
2
+ sxs/__version__.py,sha256=EllLyvaqy_ewNHGD4IRCW0Koomey3HParQ9NwzwM1EE,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
@@ -18,7 +18,7 @@ sxs/julia/__init__.py,sha256=uSLP_xfU-GZG7IO5vs0TEkCR4LH8aBYMF-852wDY3kI,3490
18
18
  sxs/metadata/__init__.py,sha256=KCvJ9Cf1WhIZp-z28UzarKcmUAzV2BOv2gqKiorILjo,149
19
19
  sxs/metadata/metadata.py,sha256=EEax1WTKL4G5U__wHefbBX0l4vtIHTcYFnHwziGkVhM,28348
20
20
  sxs/simulations/__init__.py,sha256=GrZym0PHTULDg_hyFmISNzDfqVLz_hQo-djbgecZs54,134
21
- sxs/simulations/local.py,sha256=A2r2tzD8ZMKfuKPlTuKYu60nRkxnnohfeFKNoZVfLHg,7480
21
+ sxs/simulations/local.py,sha256=gIkKtmSBVK_jGVYdGK_axby0USU992U5gAXugiUPJUk,7718
22
22
  sxs/simulations/simulation.py,sha256=OqQh6xq-s_JoQI6e2XA5j194L0DT3HGYIW8ZZiurZ2Y,34631
23
23
  sxs/simulations/simulations.py,sha256=ATxrcihvblGgRHdR7vIMg5eKghN5Jo6U0CafTro4wYA,24827
24
24
  sxs/utilities/__init__.py,sha256=WSStlqljfgQheMxHGfuofSc5LdmASGvO3FNO3f_zaT0,4806
@@ -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.34.dist-info/METADATA,sha256=6YToh2veoD4_MPLzTwoiXOy0xYueasdvjDGhjTRbHVc,9253
84
- sxs-2024.0.34.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
85
- sxs-2024.0.34.dist-info/licenses/LICENSE,sha256=ptVOd5m7LDM5ZF0x32cxb8c2Nd5NDmAhy6DX7xt_7VA,1080
86
- sxs-2024.0.34.dist-info/RECORD,,
83
+ sxs-2024.0.35.dist-info/METADATA,sha256=pNDJsKKS1zTnp0m_dAWi7fVxi6QRKFqGKu96TPpDdJ0,9253
84
+ sxs-2024.0.35.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
85
+ sxs-2024.0.35.dist-info/licenses/LICENSE,sha256=ptVOd5m7LDM5ZF0x32cxb8c2Nd5NDmAhy6DX7xt_7VA,1080
86
+ sxs-2024.0.35.dist-info/RECORD,,