jupyter-analysis-tools 1.6.0__tar.gz → 1.6.1__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.
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/.copier-answers.yml +1 -1
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/CHANGELOG.md +10 -0
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/PKG-INFO +13 -3
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/README.md +2 -2
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/docs/conf.py +1 -1
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/src/jupyter_analysis_tools/__init__.py +1 -1
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/src/jupyter_analysis_tools/datastore.py +14 -10
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/src/jupyter_analysis_tools.egg-info/PKG-INFO +13 -3
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/.editorconfig +0 -0
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/.pre-commit-config.yaml +0 -0
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/AUTHORS.rst +0 -0
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/CONTRIBUTING.rst +0 -0
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/LICENSE +0 -0
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/MANIFEST.in +0 -0
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/ci/requirements.txt +0 -0
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/docs/_templates/class.rst +0 -0
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/docs/_templates/module.rst +0 -0
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/docs/authors.rst +0 -0
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/docs/changelog.rst +0 -0
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/docs/contributing.rst +0 -0
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/docs/index.rst +0 -0
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/docs/installation.rst +0 -0
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/docs/readme.rst +0 -0
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/docs/reference/index.rst +0 -0
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/docs/requirements.txt +0 -0
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/docs/spelling_wordlist.txt +0 -0
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/docs/usage.rst +0 -0
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/pyproject.toml +0 -0
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/setup.cfg +0 -0
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/src/jupyter_analysis_tools/analysis.py +0 -0
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/src/jupyter_analysis_tools/binning.py +0 -0
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/src/jupyter_analysis_tools/datalocations.py +0 -0
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/src/jupyter_analysis_tools/distrib.py +0 -0
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/src/jupyter_analysis_tools/git.py +0 -0
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/src/jupyter_analysis_tools/plotting.py +0 -0
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/src/jupyter_analysis_tools/readdata.py +0 -0
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/src/jupyter_analysis_tools/ssfz2json.py +0 -0
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/src/jupyter_analysis_tools/ssfz_compare.py +0 -0
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/src/jupyter_analysis_tools/utils.py +0 -0
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/src/jupyter_analysis_tools/widgets.py +0 -0
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/src/jupyter_analysis_tools.egg-info/SOURCES.txt +0 -0
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/src/jupyter_analysis_tools.egg-info/dependency_links.txt +0 -0
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/src/jupyter_analysis_tools.egg-info/entry_points.txt +0 -0
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/src/jupyter_analysis_tools.egg-info/requires.txt +0 -0
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/src/jupyter_analysis_tools.egg-info/top_level.txt +0 -0
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/templates/CHANGELOG.md.j2 +0 -0
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/testdata/2015-03-20-Silica.ssf.json +0 -0
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/testdata/2015-03-20-Silica.ssfz +0 -0
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/testdata/S2842 water.json +0 -0
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/testdata/S2842 water.pdh +0 -0
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/testdata/S2843[9].pdh +0 -0
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/tests/readdata.py +0 -0
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/tests/requirements.txt +0 -0
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/tests/utils.py +0 -0
- {jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/tox.ini +0 -0
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## v1.6.1 (2025-09-19)
|
|
4
|
+
|
|
5
|
+
### Bug fixes
|
|
6
|
+
|
|
7
|
+
* **DataStore**: regression of handling of existing objects ([`28bd44c`](https://github.com/BAMresearch/jupyter-analysis-tools/commit/28bd44cf019aea0203ad252fd434860f45a1e54a))
|
|
8
|
+
|
|
9
|
+
* **DataStore**: proper forwarding of spacePrefix for filtering relevant spaces ([`c4117f3`](https://github.com/BAMresearch/jupyter-analysis-tools/commit/c4117f3b04b9f6237f6d8471bef2d76c379e6f11))
|
|
10
|
+
|
|
11
|
+
* **DataStore**: use the URL provided by constructor ([`fcc46fb`](https://github.com/BAMresearch/jupyter-analysis-tools/commit/fcc46fb941006b489054dc492f433e62d77cb605))
|
|
12
|
+
|
|
3
13
|
## v1.6.0 (2025-09-19)
|
|
4
14
|
|
|
5
15
|
### Bug fixes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: jupyter-analysis-tools
|
|
3
|
-
Version: 1.6.
|
|
3
|
+
Version: 1.6.1
|
|
4
4
|
Summary: Yet another Python library with helpers and utilities for data analysis and processing.
|
|
5
5
|
Author-email: Ingo Breßler <ingo.bressler@bam.de>, "Brian R. Pauw" <brian.pauw@bam.de>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -35,10 +35,10 @@ Requires-Dist: matplotlib
|
|
|
35
35
|
Requires-Dist: ipywidgets
|
|
36
36
|
Dynamic: license-file
|
|
37
37
|
|
|
38
|
-
# Jupyter Analysis Tools (v1.6.
|
|
38
|
+
# Jupyter Analysis Tools (v1.6.1)
|
|
39
39
|
|
|
40
40
|
[](https://pypi.org/project/jupyter-analysis-tools)
|
|
41
|
-
[](https://github.com/BAMresearch/jupyter-analysis-tools/compare/v1.6.1...main)
|
|
42
42
|
[](https://en.wikipedia.org/wiki/MIT_license)
|
|
43
43
|
[](https://pypi.org/project/jupyter-analysis-tools)
|
|
44
44
|
[](https://pypi.org/project/jupyter-analysis-tools#files)
|
|
@@ -97,6 +97,16 @@ are installed:
|
|
|
97
97
|
|
|
98
98
|
# CHANGELOG
|
|
99
99
|
|
|
100
|
+
## v1.6.1 (2025-09-19)
|
|
101
|
+
|
|
102
|
+
### Bug fixes
|
|
103
|
+
|
|
104
|
+
* **DataStore**: regression of handling of existing objects ([`28bd44c`](https://github.com/BAMresearch/jupyter-analysis-tools/commit/28bd44cf019aea0203ad252fd434860f45a1e54a))
|
|
105
|
+
|
|
106
|
+
* **DataStore**: proper forwarding of spacePrefix for filtering relevant spaces ([`c4117f3`](https://github.com/BAMresearch/jupyter-analysis-tools/commit/c4117f3b04b9f6237f6d8471bef2d76c379e6f11))
|
|
107
|
+
|
|
108
|
+
* **DataStore**: use the URL provided by constructor ([`fcc46fb`](https://github.com/BAMresearch/jupyter-analysis-tools/commit/fcc46fb941006b489054dc492f433e62d77cb605))
|
|
109
|
+
|
|
100
110
|
## v1.6.0 (2025-09-19)
|
|
101
111
|
|
|
102
112
|
### Bug fixes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
# Jupyter Analysis Tools (v1.6.
|
|
1
|
+
# Jupyter Analysis Tools (v1.6.1)
|
|
2
2
|
|
|
3
3
|
[](https://pypi.org/project/jupyter-analysis-tools)
|
|
4
|
-
[](https://github.com/BAMresearch/jupyter-analysis-tools/compare/v1.6.1...main)
|
|
5
5
|
[](https://en.wikipedia.org/wiki/MIT_license)
|
|
6
6
|
[](https://pypi.org/project/jupyter-analysis-tools)
|
|
7
7
|
[](https://pypi.org/project/jupyter-analysis-tools#files)
|
|
@@ -16,6 +16,7 @@ class DataStore:
|
|
|
16
16
|
_userspace = None
|
|
17
17
|
|
|
18
18
|
def __init__(self, url, username=None):
|
|
19
|
+
self.url = url
|
|
19
20
|
self.username = username
|
|
20
21
|
if self.username is None:
|
|
21
22
|
self.username = getpass.getuser()
|
|
@@ -52,13 +53,15 @@ class DataStore:
|
|
|
52
53
|
def identifier(objects, code):
|
|
53
54
|
return objects[objects.code == code].identifier.tolist()[0]
|
|
54
55
|
|
|
55
|
-
def createProject(self, projectName, space,
|
|
56
|
-
"""Finds the requested project in the DataStore.
|
|
57
|
-
|
|
56
|
+
def createProject(self, projectName, space, spacePrefix=None):
|
|
57
|
+
"""Finds the requested project in the DataStore.
|
|
58
|
+
Matching project names can be limited to a given *spacePrefix*.
|
|
59
|
+
If the project is not found, a new project with the given code in the given space
|
|
60
|
+
is created."""
|
|
58
61
|
# get available projects, accessible by the current user
|
|
59
62
|
projectsAvail = self.ds.get_projects()
|
|
60
|
-
if
|
|
61
|
-
projectsAvail = [prj for prj in projectsAvail if f"/{
|
|
63
|
+
if spacePrefix:
|
|
64
|
+
projectsAvail = [prj for prj in projectsAvail if f"/{spacePrefix}_" in prj.identifier]
|
|
62
65
|
projects = [prj for prj in projectsAvail if prj.code == projectName]
|
|
63
66
|
assert len(projects) <= 1, f"Multiple projects found for '{projectName}'"
|
|
64
67
|
dsProject = None
|
|
@@ -108,23 +111,24 @@ class DataStore:
|
|
|
108
111
|
|
|
109
112
|
def createObject(
|
|
110
113
|
self,
|
|
111
|
-
projectName,
|
|
114
|
+
projectName: str,
|
|
112
115
|
collectionName: str = None,
|
|
113
|
-
space=None,
|
|
116
|
+
space: str = None,
|
|
117
|
+
spacePrefix: str = None,
|
|
114
118
|
objType: str = None,
|
|
115
119
|
props: dict = None,
|
|
116
120
|
):
|
|
117
|
-
dsProject = self.createProject(projectName, space)
|
|
121
|
+
dsProject = self.createProject(projectName, space, spacePrefix=spacePrefix)
|
|
118
122
|
dsColl = None
|
|
119
123
|
if collectionName is None: # collectionName is required
|
|
120
124
|
return None
|
|
121
125
|
dsColl = self.createCollection(collectionName, dsProject, defaultObjType=objType)
|
|
122
|
-
obj = None
|
|
123
126
|
obj = self.ds.get_objects(type=objType, where={"$name": props["$name"]}).objects
|
|
124
127
|
if len(obj):
|
|
128
|
+
obj = obj[0]
|
|
125
129
|
prefix = objType
|
|
126
130
|
msg = "'{}' exists already in {}! Updating ...".format(
|
|
127
|
-
obj
|
|
131
|
+
obj.props["$name"], obj.project.identifier
|
|
128
132
|
)
|
|
129
133
|
warnings.warn_explicit(msg, UserWarning, prefix, 0)
|
|
130
134
|
else: # does not exist yet
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: jupyter-analysis-tools
|
|
3
|
-
Version: 1.6.
|
|
3
|
+
Version: 1.6.1
|
|
4
4
|
Summary: Yet another Python library with helpers and utilities for data analysis and processing.
|
|
5
5
|
Author-email: Ingo Breßler <ingo.bressler@bam.de>, "Brian R. Pauw" <brian.pauw@bam.de>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -35,10 +35,10 @@ Requires-Dist: matplotlib
|
|
|
35
35
|
Requires-Dist: ipywidgets
|
|
36
36
|
Dynamic: license-file
|
|
37
37
|
|
|
38
|
-
# Jupyter Analysis Tools (v1.6.
|
|
38
|
+
# Jupyter Analysis Tools (v1.6.1)
|
|
39
39
|
|
|
40
40
|
[](https://pypi.org/project/jupyter-analysis-tools)
|
|
41
|
-
[](https://github.com/BAMresearch/jupyter-analysis-tools/compare/v1.6.1...main)
|
|
42
42
|
[](https://en.wikipedia.org/wiki/MIT_license)
|
|
43
43
|
[](https://pypi.org/project/jupyter-analysis-tools)
|
|
44
44
|
[](https://pypi.org/project/jupyter-analysis-tools#files)
|
|
@@ -97,6 +97,16 @@ are installed:
|
|
|
97
97
|
|
|
98
98
|
# CHANGELOG
|
|
99
99
|
|
|
100
|
+
## v1.6.1 (2025-09-19)
|
|
101
|
+
|
|
102
|
+
### Bug fixes
|
|
103
|
+
|
|
104
|
+
* **DataStore**: regression of handling of existing objects ([`28bd44c`](https://github.com/BAMresearch/jupyter-analysis-tools/commit/28bd44cf019aea0203ad252fd434860f45a1e54a))
|
|
105
|
+
|
|
106
|
+
* **DataStore**: proper forwarding of spacePrefix for filtering relevant spaces ([`c4117f3`](https://github.com/BAMresearch/jupyter-analysis-tools/commit/c4117f3b04b9f6237f6d8471bef2d76c379e6f11))
|
|
107
|
+
|
|
108
|
+
* **DataStore**: use the URL provided by constructor ([`fcc46fb`](https://github.com/BAMresearch/jupyter-analysis-tools/commit/fcc46fb941006b489054dc492f433e62d77cb605))
|
|
109
|
+
|
|
100
110
|
## v1.6.0 (2025-09-19)
|
|
101
111
|
|
|
102
112
|
### Bug fixes
|
|
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
|
{jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/src/jupyter_analysis_tools/analysis.py
RENAMED
|
File without changes
|
{jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/src/jupyter_analysis_tools/binning.py
RENAMED
|
File without changes
|
|
File without changes
|
{jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/src/jupyter_analysis_tools/distrib.py
RENAMED
|
File without changes
|
{jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/src/jupyter_analysis_tools/git.py
RENAMED
|
File without changes
|
{jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/src/jupyter_analysis_tools/plotting.py
RENAMED
|
File without changes
|
{jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/src/jupyter_analysis_tools/readdata.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/src/jupyter_analysis_tools/utils.py
RENAMED
|
File without changes
|
{jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/src/jupyter_analysis_tools/widgets.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/testdata/2015-03-20-Silica.ssf.json
RENAMED
|
File without changes
|
{jupyter_analysis_tools-1.6.0 → jupyter_analysis_tools-1.6.1}/testdata/2015-03-20-Silica.ssfz
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|