jupyter-analysis-tools 1.2.1__py3-none-any.whl → 1.2.2__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.
- jupyter_analysis_tools/__init__.py +1 -1
- jupyter_analysis_tools/readdata.py +13 -10
- {jupyter_analysis_tools-1.2.1.dist-info → jupyter_analysis_tools-1.2.2.dist-info}/METADATA +17 -3
- {jupyter_analysis_tools-1.2.1.dist-info → jupyter_analysis_tools-1.2.2.dist-info}/RECORD +8 -8
- {jupyter_analysis_tools-1.2.1.dist-info → jupyter_analysis_tools-1.2.2.dist-info}/WHEEL +0 -0
- {jupyter_analysis_tools-1.2.1.dist-info → jupyter_analysis_tools-1.2.2.dist-info}/licenses/AUTHORS.rst +0 -0
- {jupyter_analysis_tools-1.2.1.dist-info → jupyter_analysis_tools-1.2.2.dist-info}/licenses/LICENSE +0 -0
- {jupyter_analysis_tools-1.2.1.dist-info → jupyter_analysis_tools-1.2.2.dist-info}/top_level.txt +0 -0
|
@@ -68,14 +68,18 @@ def xmlPDHToDict(root):
|
|
|
68
68
|
while stack:
|
|
69
69
|
elem, parentCont = stack.pop()
|
|
70
70
|
elemCont = {}
|
|
71
|
-
key = elem.attrib.pop("key", None)
|
|
72
71
|
idx = -1
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
not
|
|
76
|
-
|
|
72
|
+
key = elem.attrib.pop("key", None)
|
|
73
|
+
if ( # get a unique key, the key can occur in multiple groups in PDH
|
|
74
|
+
key is not None and elem.tag == "group" and elem.attrib.get("id", None) is not None
|
|
75
|
+
):
|
|
76
|
+
key = elem.attrib.pop("id")
|
|
77
|
+
if ( # skip empty elements with a key only early
|
|
78
|
+
not len(list(elem))
|
|
79
|
+
and not len(elem.attrib)
|
|
80
|
+
and not (elem.text and len(elem.text.strip()))
|
|
77
81
|
):
|
|
78
|
-
continue
|
|
82
|
+
continue
|
|
79
83
|
if elem.tag == "list":
|
|
80
84
|
elemCont = []
|
|
81
85
|
else: # add attributes & values to dict
|
|
@@ -115,9 +119,8 @@ def xmlPDHToDict(root):
|
|
|
115
119
|
else: # have a key
|
|
116
120
|
parentCont[parentKey] = {key: elemCont}
|
|
117
121
|
else: # parentKey exists already
|
|
118
|
-
if (
|
|
119
|
-
|
|
120
|
-
not isinstance(parentCont[parentKey], dict)
|
|
122
|
+
if not isinstance(parentCont[parentKey], list) and not isinstance(
|
|
123
|
+
parentCont[parentKey], dict
|
|
121
124
|
):
|
|
122
125
|
# if its a plain value before, make a list out of it and append in next step
|
|
123
126
|
parentCont[parentKey] = [parentCont[parentKey]]
|
|
@@ -135,7 +138,7 @@ def xmlPDHToDict(root):
|
|
|
135
138
|
try:
|
|
136
139
|
oldts = result["fileinfo"]["parameter"]["DateTime"]["value"]
|
|
137
140
|
# timestamp seems to be based on around 2009-01-01 (a day give or take)
|
|
138
|
-
delta = (
|
|
141
|
+
delta = (39 * 365 + 10) * 24 * 3600
|
|
139
142
|
# make it compatible to datetime.datetime routines
|
|
140
143
|
result["fileinfo"]["parameter"]["DateTime"]["value"] = oldts + delta
|
|
141
144
|
except KeyError:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: jupyter-analysis-tools
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.2
|
|
4
4
|
Summary: Yet another Python library with helpers and utilities for data analysis and processing.
|
|
5
5
|
Author-email: Ingo Breßler <dev@ingobressler.net>
|
|
6
6
|
License: MIT license
|
|
@@ -53,8 +53,8 @@ Yet another Python library with helpers and utilities for data analysis and proc
|
|
|
53
53
|
:target: https://pypi.org/project/jupyter-analysis-tools
|
|
54
54
|
:alt: PyPI Package latest release
|
|
55
55
|
|
|
56
|
-
.. |commits-since| image:: https://img.shields.io/github/commits-since/BAMresearch/jupyter-analysis-tools/v1.2.
|
|
57
|
-
:target: https://github.com/BAMresearch/jupyter-analysis-tools/compare/v1.2.
|
|
56
|
+
.. |commits-since| image:: https://img.shields.io/github/commits-since/BAMresearch/jupyter-analysis-tools/v1.2.2.svg
|
|
57
|
+
:target: https://github.com/BAMresearch/jupyter-analysis-tools/compare/v1.2.2...main
|
|
58
58
|
:alt: Commits since latest release
|
|
59
59
|
|
|
60
60
|
.. |license| image:: https://img.shields.io/pypi/l/jupyter-analysis-tools.svg
|
|
@@ -127,6 +127,20 @@ Note, to combine the coverage data from all the tox environments run:
|
|
|
127
127
|
|
|
128
128
|
# CHANGELOG
|
|
129
129
|
|
|
130
|
+
## v1.2.2 (2025-07-15)
|
|
131
|
+
|
|
132
|
+
### Bug fixes
|
|
133
|
+
|
|
134
|
+
* readPDHmeta: use unique dict keys, the xmk *key* can occur in multiple groups in PDH ([`ef41c81`](https://github.com/BAMresearch/jupyter-analysis-tools/commit/ef41c81d40d801b5baf86f56cf9012ca35d2ccde))
|
|
135
|
+
|
|
136
|
+
### Documentation
|
|
137
|
+
|
|
138
|
+
* pyproject: revert specify readme+changelog document types ([`1baa762`](https://github.com/BAMresearch/jupyter-analysis-tools/commit/1baa762d441fe0a1b7b663b9d0589de857277426))
|
|
139
|
+
|
|
140
|
+
* pyproject: specify readme+changelog document types to render overview on pypi correctly ([`6e4d1e5`](https://github.com/BAMresearch/jupyter-analysis-tools/commit/6e4d1e56640b604f971ddca8dabd8d1aff5c9bf1))
|
|
141
|
+
|
|
142
|
+
* ghpages: make sure .nojekyll exists after purging old html docs ([`4847845`](https://github.com/BAMresearch/jupyter-analysis-tools/commit/4847845cc06884b6e589b26897e83411d649ef4d))
|
|
143
|
+
|
|
130
144
|
## v1.2.1 (2025-07-11)
|
|
131
145
|
|
|
132
146
|
### Bug fixes
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
jupyter_analysis_tools/__init__.py,sha256=
|
|
1
|
+
jupyter_analysis_tools/__init__.py,sha256=97TJ2mR74urGEdLA3G-jQqcSh_w-HKzX3XYzBZfez6A,386
|
|
2
2
|
jupyter_analysis_tools/analysis.py,sha256=AiAvUO648f0PYXqLfal1kDH926neasE5c1RYFu9wtYg,1768
|
|
3
3
|
jupyter_analysis_tools/binning.py,sha256=d6eXRC3IOnnJIF25OfEASyWedT71EX2nF7jAgGJ9suQ,14536
|
|
4
4
|
jupyter_analysis_tools/datalocations.py,sha256=BakfiZOMcBwp-_DAn7l57lGWZmZGNnk0j73V75nLBUA,4322
|
|
5
5
|
jupyter_analysis_tools/distrib.py,sha256=uyh2jXDdXR6dfd36CAoE5_psoFF0bfA6l1wletPD7Xo,16515
|
|
6
6
|
jupyter_analysis_tools/git.py,sha256=mqSk5nnAFrmk1_2KFuKVrDWOkRbGbAQOq2N1DfxhNpg,2216
|
|
7
7
|
jupyter_analysis_tools/plotting.py,sha256=L2gwSjlBVK8OneAfSuna3vCJIg2rSEdvd9TfEbM2Als,1183
|
|
8
|
-
jupyter_analysis_tools/readdata.py,sha256=
|
|
8
|
+
jupyter_analysis_tools/readdata.py,sha256=6Tncwo3NSYAnyLQzAhDtiUyp1Xpw3CahqQ_5NeGhJqI,6030
|
|
9
9
|
jupyter_analysis_tools/utils.py,sha256=dFE34fYQS7ivCfNy0nwwNPyBdZhIzW9QrxwjvvIHlIQ,5319
|
|
10
10
|
jupyter_analysis_tools/widgets.py,sha256=rA8qPvY9nS1OtykZwXtCTG29K-N_MYFVb5Aj8yK40_s,2996
|
|
11
|
-
jupyter_analysis_tools-1.2.
|
|
12
|
-
jupyter_analysis_tools-1.2.
|
|
13
|
-
jupyter_analysis_tools-1.2.
|
|
14
|
-
jupyter_analysis_tools-1.2.
|
|
15
|
-
jupyter_analysis_tools-1.2.
|
|
16
|
-
jupyter_analysis_tools-1.2.
|
|
11
|
+
jupyter_analysis_tools-1.2.2.dist-info/licenses/AUTHORS.rst,sha256=SUxxgElDBm6WdCbBBFfcr0ZE3SolWL0T0aS5Fym1198,100
|
|
12
|
+
jupyter_analysis_tools-1.2.2.dist-info/licenses/LICENSE,sha256=SrbIwXA1ZLTO6uwZneJMpvdgiC-3fhNl0vwb3ALoY4g,1107
|
|
13
|
+
jupyter_analysis_tools-1.2.2.dist-info/METADATA,sha256=xNHzAqCaV-gPgp8HB96pEeekWAWWJDeIhmJHDk0vgOA,37932
|
|
14
|
+
jupyter_analysis_tools-1.2.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
15
|
+
jupyter_analysis_tools-1.2.2.dist-info/top_level.txt,sha256=ei_0x-BF85FLoJ_h67ySwDFowtqus_gI4_0GR466PEU,23
|
|
16
|
+
jupyter_analysis_tools-1.2.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
{jupyter_analysis_tools-1.2.1.dist-info → jupyter_analysis_tools-1.2.2.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{jupyter_analysis_tools-1.2.1.dist-info → jupyter_analysis_tools-1.2.2.dist-info}/top_level.txt
RENAMED
|
File without changes
|