sxs 2024.0.38__py3-none-any.whl → 2024.0.39__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.38"
1
+ __version__ = "2024.0.39"
sxs/metadata/metadata.py CHANGED
@@ -622,11 +622,16 @@ class Metadata(collections.OrderedDict):
622
622
  def setdefault(self, key, default=None):
623
623
  return super(Metadata, self).setdefault(_valid_identifier(key), default)
624
624
 
625
- def update(self, mapping_or_iterable=None, **kwargs):
626
- if isinstance(mapping_or_iterable, collections.abc.Mapping):
627
- mapping_or_iterable = collections.OrderedDict(
628
- [(_valid_identifier(key), mapping_or_iterable[key]) for key in mapping_or_iterable]
629
- )
630
- elif isinstance(mapping_or_iterable, collections.abc.Iterable):
631
- mapping_or_iterable = [(_valid_identifier(k), v) for k, v in mapping_or_iterable]
632
- return super(Metadata, self).update(mapping_or_iterable)
625
+ def update(self, mapping_or_iterable=None, /, **kwargs):
626
+ # This should be just the same as the collections.OrderedDict.update
627
+ # method, except that identifiers passed in via mapping_or_iterable
628
+ # have to be converted to valid identifiers first.
629
+ if mapping_or_iterable is not None:
630
+ if hasattr(mapping_or_iterable, "keys") and callable(mapping_or_iterable.keys):
631
+ for k in mapping_or_iterable:
632
+ self[_valid_identifier(k)] = mapping_or_iterable[k]
633
+ else:
634
+ for k, v in mapping_or_iterable:
635
+ self[_valid_identifier(k)] = v
636
+ for k in kwargs:
637
+ self[k] = kwargs[k]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sxs
3
- Version: 2024.0.38
3
+ Version: 2024.0.39
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=CXIMYVYYWnQwUuXrShUC1je5GnAjkVSnqjCPf5JKxVE,26
2
+ sxs/__version__.py,sha256=Rs1Nu9gD8E5jXXISGX-itaNLb3w3CPy__-j-TR_1_Ck,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,7 +16,7 @@ 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=kXTQzlGpIkd_-1xtBosVhN3FWfBdev9jO_Tg73zXHTQ,28344
19
+ sxs/metadata/metadata.py,sha256=xB4Cz2V_7qwabK_x0L5rPuWS1XOOWXQKx4EPXtlbZLo,28515
20
20
  sxs/metadata/metric.py,sha256=zWyM23SQUMXwpDvQNnp2USJrwxiC3SoobFXm0h_sMMs,6615
21
21
  sxs/simulations/__init__.py,sha256=GrZym0PHTULDg_hyFmISNzDfqVLz_hQo-djbgecZs54,134
22
22
  sxs/simulations/local.py,sha256=nh1coOPunVD0hB6pp2WTm31rFdakNEoP5niMbV4s04o,7992
@@ -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.38.dist-info/METADATA,sha256=cESCGq9mEmoSqbG19488rofGZADcVYJLReS0-Rc1Lww,9253
86
- sxs-2024.0.38.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
87
- sxs-2024.0.38.dist-info/licenses/LICENSE,sha256=ptVOd5m7LDM5ZF0x32cxb8c2Nd5NDmAhy6DX7xt_7VA,1080
88
- sxs-2024.0.38.dist-info/RECORD,,
85
+ sxs-2024.0.39.dist-info/METADATA,sha256=-1NFIatATttOwACp4pnhS4EDOb3lW42z5Z3Y9IwDv9Y,9253
86
+ sxs-2024.0.39.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
87
+ sxs-2024.0.39.dist-info/licenses/LICENSE,sha256=ptVOd5m7LDM5ZF0x32cxb8c2Nd5NDmAhy6DX7xt_7VA,1080
88
+ sxs-2024.0.39.dist-info/RECORD,,