sdf-xarray 0.2.4__cp310-cp310-win_amd64.whl → 0.2.5__cp310-cp310-win_amd64.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/sdfc.lib +0 -0
- sdf_xarray/__init__.py +12 -3
- sdf_xarray/_version.py +2 -2
- sdf_xarray/sdf_interface.cp310-win_amd64.pyd +0 -0
- {sdf_xarray-0.2.4.dist-info → sdf_xarray-0.2.5.dist-info}/METADATA +1 -1
- {sdf_xarray-0.2.4.dist-info → sdf_xarray-0.2.5.dist-info}/RECORD +9 -9
- {sdf_xarray-0.2.4.dist-info → sdf_xarray-0.2.5.dist-info}/WHEEL +0 -0
- {sdf_xarray-0.2.4.dist-info → sdf_xarray-0.2.5.dist-info}/entry_points.txt +0 -0
- {sdf_xarray-0.2.4.dist-info → sdf_xarray-0.2.5.dist-info}/licenses/LICENCE +0 -0
lib/SDFC_14.4.7/sdfc.lib
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
|
-
|
|
258
|
-
|
|
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/
|
|
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
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: sdf-xarray
|
|
3
|
-
Version: 0.2.
|
|
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
|
|
@@ -6,19 +6,19 @@ include/SDFC_14.4.7/sdf_list_type.h,sha256=Quu8v0-SEsQuJpGtEZnm09tAyXqWNitx0sXl5
|
|
|
6
6
|
include/SDFC_14.4.7/sdf_vector_type.h,sha256=dbKjhzRRsvhzrnTwVjtVlvnuisEnRMKY-vvdm94ok_Q,1595
|
|
7
7
|
include/SDFC_14.4.7/stack_allocator.h,sha256=L7U9vmGiVSw3VQLIv9EzTaVq7JbFxs9aNonKStTkUSg,1335
|
|
8
8
|
include/SDFC_14.4.7/uthash.h,sha256=rIyy_-ylY6S_7WaZCCC3VtvXaC9q37rFyA0f1U9xc4w,63030
|
|
9
|
-
lib/SDFC_14.4.7/sdfc.lib,sha256=
|
|
9
|
+
lib/SDFC_14.4.7/sdfc.lib,sha256=No_BVr7T1qROlbEiwg-jQL4JARLE-tW-C0uPc9wX-_A,350410
|
|
10
10
|
lib/SDFC_14.4.7/SDFCConfig.cmake,sha256=IOA1eusC-KvUK4LNTEiOAmEdaPH1ZvNvbYPgiG1oZio,802
|
|
11
11
|
lib/SDFC_14.4.7/SDFCConfigVersion.cmake,sha256=pN7Qqyf04s3izw7PYQ0XK6imvmhaVegSdR_nEl3Ok_o,2830
|
|
12
12
|
lib/SDFC_14.4.7/SDFCTargets-release.cmake,sha256=G4zdx5PyjePigeD_a6rmZAxbk7L8Nf0klUnV78Lm2fI,828
|
|
13
13
|
lib/SDFC_14.4.7/SDFCTargets.cmake,sha256=OVt1Gm8n7Ew4fiTmA9yHoef3vIIGwsXUZfqeG9p9Bys,4152
|
|
14
|
-
sdf_xarray/__init__.py,sha256=
|
|
15
|
-
sdf_xarray/_version.py,sha256=
|
|
14
|
+
sdf_xarray/__init__.py,sha256=MgATg9E6Jyo1fW3_li3lIEm-yxTHgJbNfZf5qeAvuyY,18073
|
|
15
|
+
sdf_xarray/_version.py,sha256=XjF4m8_cMkXrbRU7Rim3aBSkgXL9DCvwDPeFFTVyWd8,532
|
|
16
16
|
sdf_xarray/csdf.pxd,sha256=ADPjAuHsodAvdOz96Z_XlFF7VL3KmVaXcTifWDP3rK0,4205
|
|
17
17
|
sdf_xarray/plotting.py,sha256=ze1paC1Uw42WOWspdqkyNsUviDt-Z7AwQlPyO7JB90o,7007
|
|
18
|
-
sdf_xarray/sdf_interface.cp310-win_amd64.pyd,sha256=
|
|
18
|
+
sdf_xarray/sdf_interface.cp310-win_amd64.pyd,sha256=XnLyq22rQxnDiE8Qrw1FeCEHxS6gOoL7U_rpwScnwjU,351232
|
|
19
19
|
sdf_xarray/sdf_interface.pyx,sha256=PFC6upg14OZBqiGInLgBoxztIIKBk-HOh3WC9Ro4YUw,11975
|
|
20
|
-
sdf_xarray-0.2.
|
|
21
|
-
sdf_xarray-0.2.
|
|
22
|
-
sdf_xarray-0.2.
|
|
23
|
-
sdf_xarray-0.2.
|
|
24
|
-
sdf_xarray-0.2.
|
|
20
|
+
sdf_xarray-0.2.5.dist-info/METADATA,sha256=ybk80dZjGpoDSonOcmjyIO5HdCP4zUJRbqWjuxBn68c,9129
|
|
21
|
+
sdf_xarray-0.2.5.dist-info/WHEEL,sha256=lOk88j15txMfymgGB6f9CZllTiUmb3GEt--Zg_z5WJg,106
|
|
22
|
+
sdf_xarray-0.2.5.dist-info/entry_points.txt,sha256=gP7BIQpXNg6vIf7S7p-Rw_EJZTC1X50BsVTkK7dA7g0,57
|
|
23
|
+
sdf_xarray-0.2.5.dist-info/licenses/LICENCE,sha256=aHWuyELjtzIL1jTXFHTbI3tr9vyVyhnw3I9_QYPdEX8,1515
|
|
24
|
+
sdf_xarray-0.2.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|