dgpost 2.1.2__tar.gz → 2.1.3__tar.gz

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.
Files changed (61) hide show
  1. {dgpost-2.1.2/src/dgpost.egg-info → dgpost-2.1.3}/PKG-INFO +3 -2
  2. {dgpost-2.1.2 → dgpost-2.1.3}/src/dgpost/_version.py +3 -3
  3. {dgpost-2.1.2 → dgpost-2.1.3}/src/dgpost/utils/extract.py +4 -0
  4. {dgpost-2.1.2 → dgpost-2.1.3/src/dgpost.egg-info}/PKG-INFO +3 -2
  5. {dgpost-2.1.2 → dgpost-2.1.3}/tests/test_extract.py +12 -0
  6. {dgpost-2.1.2 → dgpost-2.1.3}/LICENSE +0 -0
  7. {dgpost-2.1.2 → dgpost-2.1.3}/MANIFEST.in +0 -0
  8. {dgpost-2.1.2 → dgpost-2.1.3}/README.md +0 -0
  9. {dgpost-2.1.2 → dgpost-2.1.3}/setup.cfg +0 -0
  10. {dgpost-2.1.2 → dgpost-2.1.3}/setup.py +0 -0
  11. {dgpost-2.1.2 → dgpost-2.1.3}/src/dgpost/__init__.py +0 -0
  12. {dgpost-2.1.2 → dgpost-2.1.3}/src/dgpost/main.py +0 -0
  13. {dgpost-2.1.2 → dgpost-2.1.3}/src/dgpost/transform/__init__.py +0 -0
  14. {dgpost-2.1.2 → dgpost-2.1.3}/src/dgpost/transform/catalysis.py +0 -0
  15. {dgpost-2.1.2 → dgpost-2.1.3}/src/dgpost/transform/chromatography.py +0 -0
  16. {dgpost-2.1.2 → dgpost-2.1.3}/src/dgpost/transform/circuit_utils/__init__.py +0 -0
  17. {dgpost-2.1.2 → dgpost-2.1.3}/src/dgpost/transform/circuit_utils/circuit_components.py +0 -0
  18. {dgpost-2.1.2 → dgpost-2.1.3}/src/dgpost/transform/circuit_utils/circuit_parser.py +0 -0
  19. {dgpost-2.1.2 → dgpost-2.1.3}/src/dgpost/transform/electrochemistry.py +0 -0
  20. {dgpost-2.1.2 → dgpost-2.1.3}/src/dgpost/transform/impedance.py +0 -0
  21. {dgpost-2.1.2 → dgpost-2.1.3}/src/dgpost/transform/rates.py +0 -0
  22. {dgpost-2.1.2 → dgpost-2.1.3}/src/dgpost/transform/reflection.py +0 -0
  23. {dgpost-2.1.2 → dgpost-2.1.3}/src/dgpost/transform/table.py +0 -0
  24. {dgpost-2.1.2 → dgpost-2.1.3}/src/dgpost/utils/__init__.py +0 -0
  25. {dgpost-2.1.2 → dgpost-2.1.3}/src/dgpost/utils/helpers.py +0 -0
  26. {dgpost-2.1.2 → dgpost-2.1.3}/src/dgpost/utils/load.py +0 -0
  27. {dgpost-2.1.2 → dgpost-2.1.3}/src/dgpost/utils/parse.py +0 -0
  28. {dgpost-2.1.2 → dgpost-2.1.3}/src/dgpost/utils/pivot.py +0 -0
  29. {dgpost-2.1.2 → dgpost-2.1.3}/src/dgpost/utils/plot.py +0 -0
  30. {dgpost-2.1.2 → dgpost-2.1.3}/src/dgpost/utils/save.py +0 -0
  31. {dgpost-2.1.2 → dgpost-2.1.3}/src/dgpost/utils/transform.py +0 -0
  32. {dgpost-2.1.2 → dgpost-2.1.3}/src/dgpost.egg-info/SOURCES.txt +0 -0
  33. {dgpost-2.1.2 → dgpost-2.1.3}/src/dgpost.egg-info/dependency_links.txt +0 -0
  34. {dgpost-2.1.2 → dgpost-2.1.3}/src/dgpost.egg-info/entry_points.txt +0 -0
  35. {dgpost-2.1.2 → dgpost-2.1.3}/src/dgpost.egg-info/requires.txt +0 -0
  36. {dgpost-2.1.2 → dgpost-2.1.3}/src/dgpost.egg-info/top_level.txt +0 -0
  37. {dgpost-2.1.2 → dgpost-2.1.3}/tests/test_catalysis_atbal.py +0 -0
  38. {dgpost-2.1.2 → dgpost-2.1.3}/tests/test_catalysis_conversion.py +0 -0
  39. {dgpost-2.1.2 → dgpost-2.1.3}/tests/test_catalysis_selectivity.py +0 -0
  40. {dgpost-2.1.2 → dgpost-2.1.3}/tests/test_catalysis_yield.py +0 -0
  41. {dgpost-2.1.2 → dgpost-2.1.3}/tests/test_chromatography.py +0 -0
  42. {dgpost-2.1.2 → dgpost-2.1.3}/tests/test_electrochemistry_charge.py +0 -0
  43. {dgpost-2.1.2 → dgpost-2.1.3}/tests/test_electrochemistry_current.py +0 -0
  44. {dgpost-2.1.2 → dgpost-2.1.3}/tests/test_electrochemistry_fe.py +0 -0
  45. {dgpost-2.1.2 → dgpost-2.1.3}/tests/test_electrochemistry_nernst.py +0 -0
  46. {dgpost-2.1.2 → dgpost-2.1.3}/tests/test_impedance.py +0 -0
  47. {dgpost-2.1.2 → dgpost-2.1.3}/tests/test_load.py +0 -0
  48. {dgpost-2.1.2 → dgpost-2.1.3}/tests/test_main.py +0 -0
  49. {dgpost-2.1.2 → dgpost-2.1.3}/tests/test_parse.py +0 -0
  50. {dgpost-2.1.2 → dgpost-2.1.3}/tests/test_pivot.py +0 -0
  51. {dgpost-2.1.2 → dgpost-2.1.3}/tests/test_plot.py +0 -0
  52. {dgpost-2.1.2 → dgpost-2.1.3}/tests/test_rates_batchtomolar.py +0 -0
  53. {dgpost-2.1.2 → dgpost-2.1.3}/tests/test_rates_flowtomolar.py +0 -0
  54. {dgpost-2.1.2 → dgpost-2.1.3}/tests/test_realworld.py +0 -0
  55. {dgpost-2.1.2 → dgpost-2.1.3}/tests/test_reflection.py +0 -0
  56. {dgpost-2.1.2 → dgpost-2.1.3}/tests/test_roundtrip.py +0 -0
  57. {dgpost-2.1.2 → dgpost-2.1.3}/tests/test_save.py +0 -0
  58. {dgpost-2.1.2 → dgpost-2.1.3}/tests/test_table_combine_columns.py +0 -0
  59. {dgpost-2.1.2 → dgpost-2.1.3}/tests/test_table_combine_namespaces.py +0 -0
  60. {dgpost-2.1.2 → dgpost-2.1.3}/tests/test_table_set_uncertainty.py +0 -0
  61. {dgpost-2.1.2 → dgpost-2.1.3}/versioneer.py +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: dgpost
3
- Version: 2.1.2
3
+ Version: 2.1.3
4
4
  Summary: datagram post-processing toolkit
5
5
  Home-page: https://github.com/dgbowl/dgpost
6
6
  Author: Peter Kraus
@@ -46,6 +46,7 @@ Dynamic: classifier
46
46
  Dynamic: description
47
47
  Dynamic: description-content-type
48
48
  Dynamic: home-page
49
+ Dynamic: license-file
49
50
  Dynamic: project-url
50
51
  Dynamic: provides-extra
51
52
  Dynamic: requires-dist
@@ -8,11 +8,11 @@ import json
8
8
 
9
9
  version_json = '''
10
10
  {
11
- "date": "2025-01-24T19:54:50+0100",
11
+ "date": "2025-03-28T10:03:18+0100",
12
12
  "dirty": false,
13
13
  "error": null,
14
- "full-revisionid": "f6560d24f27e639d13aa29b146427041b6ded0d0",
15
- "version": "2.1.2"
14
+ "full-revisionid": "c21873caba97126519ba57fccaadeb46e2929b9d",
15
+ "version": "2.1.3"
16
16
  }
17
17
  ''' # END VERSION_JSON
18
18
 
@@ -259,6 +259,8 @@ def _(obj: datatree.DataTree, columns: list[dict]) -> list[pd.Series]:
259
259
  if vals.coords.dtypes[coord].kind in {"O", "U"}:
260
260
  splits = vals[coord].values
261
261
  break
262
+ else:
263
+ splits = [None]
262
264
  else:
263
265
  coord = None
264
266
  splits = [None]
@@ -276,6 +278,8 @@ def _(obj: datatree.DataTree, columns: list[dict]) -> list[pd.Series]:
276
278
  if sigs is None:
277
279
  if coord is None:
278
280
  data = vals
281
+ elif split is None:
282
+ data = vals.values
279
283
  else:
280
284
  data = vals.loc[{coord: split}]
281
285
  name.append(split)
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: dgpost
3
- Version: 2.1.2
3
+ Version: 2.1.3
4
4
  Summary: datagram post-processing toolkit
5
5
  Home-page: https://github.com/dgbowl/dgpost
6
6
  Author: Peter Kraus
@@ -46,6 +46,7 @@ Dynamic: classifier
46
46
  Dynamic: description
47
47
  Dynamic: description-content-type
48
48
  Dynamic: home-page
49
+ Dynamic: license-file
49
50
  Dynamic: project-url
50
51
  Dynamic: provides-extra
51
52
  Dynamic: requires-dist
@@ -238,6 +238,18 @@ from .utils import compare_dfs
238
238
  },
239
239
  "ref.ca+cv.pkl",
240
240
  ),
241
+ ( # ts23 - extract multidimensional data from netcdf
242
+ "extract.multidim.nc",
243
+ {
244
+ "at": {"steps": ["0"]},
245
+ "columns": [
246
+ {"key": "S11->magnitude", "as": "mag"},
247
+ {"key": "S11->phase_angle", "as": "ang"},
248
+ {"key": "S11->frequency", "as": "freq"},
249
+ ],
250
+ },
251
+ "ref.extract.multidim.nc.pkl",
252
+ ),
241
253
  ],
242
254
  )
243
255
  def test_extract_single(inpath, spec, outpath, datadir):
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes