sxs 2024.0.36__py3-none-any.whl → 2024.0.37__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.36"
1
+ __version__ = "2024.0.37"
@@ -1,4 +1,3 @@
1
- import copy
2
1
  import time
3
2
  import warnings
4
3
  import re
@@ -11,10 +10,6 @@ from .. import sxs_id, Metadata
11
10
  from ..utilities import sxs_identifier_regex, SimpleVersion
12
11
 
13
12
 
14
- # To do:
15
- # - Finish up the code to create a new version from an existing one
16
-
17
-
18
13
  def mtime(f):
19
14
  """Look for git or filesystem modification time
20
15
 
sxs/simulations/local.py CHANGED
@@ -1,4 +1,5 @@
1
1
  from pathlib import Path
2
+ from datetime import datetime, timezone
2
3
  from .. import sxs_id, Metadata, sxs_directory
3
4
  from ..utilities import sxs_identifier_re
4
5
  from ..zenodo import path_to_invenio
@@ -147,16 +148,23 @@ def local_simulations(annex_dir, compute_md5=False, show_progress=False):
147
148
 
148
149
  metadata["directory"] = str(dirpath.relative_to(annex_dir))
149
150
 
151
+ simulations[key] = metadata
152
+
153
+ files = files_to_upload(dirpath, annex_dir)
154
+
155
+ metadata["mtime"] = datetime.fromtimestamp(
156
+ max(file.resolve().stat().st_mtime for file in files),
157
+ tz=timezone.utc,
158
+ ).isoformat()
159
+
150
160
  metadata["files"] = {
151
161
  path_to_invenio(file.relative_to(dirpath)): {
152
162
  "link": str(file),
153
163
  "size": file.stat().st_size,
154
164
  "checksum": md5checksum(file) if compute_md5 else "",
155
165
  }
156
- for file in files_to_upload(dirpath, annex_dir)
166
+ for file in files
157
167
  }
158
-
159
- simulations[key] = metadata
160
168
  except KeyboardInterrupt:
161
169
  raise
162
170
  except Exception as e:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sxs
3
- Version: 2024.0.36
3
+ Version: 2024.0.37
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,9 +1,9 @@
1
1
  sxs/__init__.py,sha256=hbydsXWR88sFiKExPJ1NHWGEvWRbbJBjSc1irSMYKgY,2623
2
- sxs/__version__.py,sha256=o1VItzq1BIYjEzWGBakErQDgmqTvnd_48_7hpqjMLkc,26
2
+ sxs/__version__.py,sha256=oTJ6hbZsnl1xJD7N__Fd5hiNiaKRUpbrX7VoxxQIeOU,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
6
- sxs/caltechdata/__init__.py,sha256=s-RXyBiImKsQenqJIU6NAjlsjOX7f1MkIIW9rPtWYyg,14761
6
+ sxs/caltechdata/__init__.py,sha256=pvyc2Djch4DA6t06op-0NSTegrMSywzNi7Z3W_91-Cg,14670
7
7
  sxs/caltechdata/catalog.py,sha256=E2nystCaMZLKxTlLgfbfpGkckfkLyIzhn3YeEI3nQYc,4914
8
8
  sxs/caltechdata/login.py,sha256=JaNyawXLSq37R1qbGM0fuTbfXmbHHnixEzU7nhwAGeE,21546
9
9
  sxs/catalog/__init__.py,sha256=9-WTMTPDmqqkFyIHOtEbPA6etXm3_RSRrLWvHtLrjLg,205
@@ -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=kXTQzlGpIkd_-1xtBosVhN3FWfBdev9jO_Tg73zXHTQ,28344
20
20
  sxs/simulations/__init__.py,sha256=GrZym0PHTULDg_hyFmISNzDfqVLz_hQo-djbgecZs54,134
21
- sxs/simulations/local.py,sha256=gIkKtmSBVK_jGVYdGK_axby0USU992U5gAXugiUPJUk,7718
21
+ sxs/simulations/local.py,sha256=nh1coOPunVD0hB6pp2WTm31rFdakNEoP5niMbV4s04o,7992
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.36.dist-info/METADATA,sha256=Jqh0U_2KbrlfEbuDpsp3iywSQD5IUsH8EcwrNzsYN3o,9253
84
- sxs-2024.0.36.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
85
- sxs-2024.0.36.dist-info/licenses/LICENSE,sha256=ptVOd5m7LDM5ZF0x32cxb8c2Nd5NDmAhy6DX7xt_7VA,1080
86
- sxs-2024.0.36.dist-info/RECORD,,
83
+ sxs-2024.0.37.dist-info/METADATA,sha256=aLUDLKM4LSzMnkodIPxT3IWFwczeD_EUUTApe35xs7I,9253
84
+ sxs-2024.0.37.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
85
+ sxs-2024.0.37.dist-info/licenses/LICENSE,sha256=ptVOd5m7LDM5ZF0x32cxb8c2Nd5NDmAhy6DX7xt_7VA,1080
86
+ sxs-2024.0.37.dist-info/RECORD,,