sdf-xarray 0.2.4__cp313-cp313-macosx_11_0_arm64.whl → 0.2.5__cp313-cp313-macosx_11_0_arm64.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.
lib/SDFC_14.4.7/libsdfc.a CHANGED
Binary file
sdf_xarray/__init__.py CHANGED
@@ -253,9 +253,18 @@ class SDFDataStore(AbstractDataStore):
253
253
  def load(self): # noqa: PLR0912, PLR0915
254
254
  # Drop any requested variables
255
255
  if self.drop_variables:
256
+ # Build a mapping from underscored names to real variable names
257
+ name_map = {_rename_with_underscore(var): var for var in self.ds.variables}
258
+
256
259
  for variable in self.drop_variables:
257
- # TODO: nicer error handling
258
- self.ds.variables.pop(variable)
260
+ key = _rename_with_underscore(variable)
261
+ original_name = name_map.get(key)
262
+
263
+ if original_name is None:
264
+ raise KeyError(
265
+ f"Variable '{variable}' not found (interpreted as '{key}')."
266
+ )
267
+ self.ds.variables.pop(original_name)
259
268
 
260
269
  # These two dicts are global metadata about the run or file
261
270
  attrs = {**self.ds.header, **self.ds.run_info}
@@ -434,7 +443,7 @@ class SDFEntrypoint(BackendEntrypoint):
434
443
 
435
444
  description = "Use .sdf files in Xarray"
436
445
 
437
- url = "https://epochpic.github.io/documentation/visualising_output/python.html"
446
+ url = "https://epochpic.github.io/documentation/visualising_output/python_beam.html"
438
447
 
439
448
 
440
449
  class SDFPreprocess:
sdf_xarray/_version.py CHANGED
@@ -17,5 +17,5 @@ __version__: str
17
17
  __version_tuple__: VERSION_TUPLE
18
18
  version_tuple: VERSION_TUPLE
19
19
 
20
- __version__ = version = '0.2.4'
21
- __version_tuple__ = version_tuple = (0, 2, 4)
20
+ __version__ = version = '0.2.5'
21
+ __version_tuple__ = version_tuple = (0, 2, 5)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: sdf-xarray
3
- Version: 0.2.4
3
+ Version: 0.2.5
4
4
  Summary: Provides a backend for xarray to read SDF files as created by the EPOCH plasma PIC code.
5
5
  Author-Email: Peter Hill <peter.hill@york.ac.uk>, Joel Adams <joel.adams@york.ac.uk>, Shaun Doherty <shaun.doherty@york.ac.uk>
6
6
  License: Copyright 2024, Peter Hill, Joel Adams, epochpic team
@@ -1,8 +1,3 @@
1
- sdf_xarray-0.2.4.dist-info/RECORD,,
2
- sdf_xarray-0.2.4.dist-info/WHEEL,sha256=yzv-J-0GhTeRwkaN4gTfSmvu-oLqNrxO_JmdmKfUbgA,114
3
- sdf_xarray-0.2.4.dist-info/entry_points.txt,sha256=gP7BIQpXNg6vIf7S7p-Rw_EJZTC1X50BsVTkK7dA7g0,57
4
- sdf_xarray-0.2.4.dist-info/METADATA,sha256=l0Gwyl2O5oSNQJ8yLOCcABSSd5VlCz9MAwo4GgHxcuQ,9129
5
- sdf_xarray-0.2.4.dist-info/licenses/LICENCE,sha256=0FfLVWQRQERtj0vUKjJk7-UrDp-t70Et9izWejGe4Os,1487
6
1
  include/SDFC_14.4.7/sdf_derived.h,sha256=VqRsCmjmSRIOGqZSiPMsvmNaFBoNzXhrlKeyWGYIzm8,636
7
2
  include/SDFC_14.4.7/sdf_helper.h,sha256=UD291Xf8ZUeh34iv-qLN-u8f5vPQz0joTFxIQWUIVYA,1020
8
3
  include/SDFC_14.4.7/sdf_vector_type.h,sha256=5tcQcF7zDm7kTkLCzm12G5Z3ARVXvw7-XpKQ6WWej6U,1527
@@ -11,14 +6,19 @@ include/SDFC_14.4.7/sdf_extension.h,sha256=my_ze10hSGfWEQEaUWh8TxFuVsiAl-g6aDn6q
11
6
  include/SDFC_14.4.7/uthash.h,sha256=BN_4JfPHloW0kI3VRhvCqP8D2VcvD0HpSLgo4MBz6Sk,62067
12
7
  include/SDFC_14.4.7/sdf.h,sha256=8RWP2yH8xn_sCcbqZPT443LBaPy_3SHjOxA6IL4xLzE,24996
13
8
  include/SDFC_14.4.7/sdf_list_type.h,sha256=WEq5Qmtv00-A7lmLadxC7RbFy46yLYRgg0LynCGk4PE,1350
14
- lib/SDFC_14.4.7/libsdfc.a,sha256=6WS08PgvyC6aJIT_DZzw7ss6nBbajX7qmJOsXfHc9fs,564248
9
+ sdf_xarray-0.2.5.dist-info/RECORD,,
10
+ sdf_xarray-0.2.5.dist-info/WHEEL,sha256=yzv-J-0GhTeRwkaN4gTfSmvu-oLqNrxO_JmdmKfUbgA,114
11
+ sdf_xarray-0.2.5.dist-info/entry_points.txt,sha256=gP7BIQpXNg6vIf7S7p-Rw_EJZTC1X50BsVTkK7dA7g0,57
12
+ sdf_xarray-0.2.5.dist-info/METADATA,sha256=ybk80dZjGpoDSonOcmjyIO5HdCP4zUJRbqWjuxBn68c,9129
13
+ sdf_xarray-0.2.5.dist-info/licenses/LICENCE,sha256=0FfLVWQRQERtj0vUKjJk7-UrDp-t70Et9izWejGe4Os,1487
14
+ lib/SDFC_14.4.7/libsdfc.a,sha256=T3AI4th-xlV-cBEEg4rHHn2c0nZFf62Q-QF-R67q_ao,564248
15
15
  lib/SDFC_14.4.7/SDFCTargets-release.cmake,sha256=Xq-QJnH563tMRWlM5o2wdMSm9EiSKXru4U4hlR-eXlo,811
16
16
  lib/SDFC_14.4.7/SDFCTargets.cmake,sha256=deEq1SSWHOfneFC4Tfj6O315PrDwpKa73ZSrXOt_Isc,4047
17
17
  lib/SDFC_14.4.7/SDFCConfig.cmake,sha256=QQOXXHTYSEzXXckN8CCi9vuhMmirf2MrOA8b3tY4m2A,784
18
18
  lib/SDFC_14.4.7/SDFCConfigVersion.cmake,sha256=2dR0eWIHiMKSdOwWBD9kI6EA-1mvVZsn61d50hSazkE,2765
19
- sdf_xarray/_version.py,sha256=1LUN_sRKOiFInoB6AlW6TYoQMCh1Z4KutwcHNvHcfB0,511
19
+ sdf_xarray/_version.py,sha256=N3oBwJUFmS-AwCjqOcSlRW4GvSq-uJJMaBvoGfv1-hM,511
20
20
  sdf_xarray/plotting.py,sha256=Xd8CO7kXxtDILj6sld6ErTnuQ200ZRaQYhCeq6wJFiM,6802
21
21
  sdf_xarray/sdf_interface.pyx,sha256=tYvVkp7PVrzhF4iFxUvDy4EoTSZzJmXOJ0OM_DDXG98,11635
22
- sdf_xarray/__init__.py,sha256=VAV1g025T7w5EEUOt4dY4FeXOLXm7BJhdx5jUv8PCT0,17174
23
- sdf_xarray/sdf_interface.cpython-313-darwin.so,sha256=L4tTrgYl7Mwy8BoOlkfxbc6gOeAHe3ZFvVgZQQxG91k,401328
22
+ sdf_xarray/__init__.py,sha256=NYVGHAG648vmEUTQ-vAZ783Ra16B0aU1zdYcLb54uFI,17596
23
+ sdf_xarray/sdf_interface.cpython-313-darwin.so,sha256=uj0IR0QwIkzsm5ZfkpOCbQrTyC4qKOcqJPiNgpq61lc,401328
24
24
  sdf_xarray/csdf.pxd,sha256=6VCmPTbvKOQt3O-r1R1Gj-GvQJ2pOUeSRnkxgMLBvy0,4078