empix 0.0.8__tar.gz → 0.0.10__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.
- {empix-0.0.8 → empix-0.0.10}/PKG-INFO +6 -5
- {empix-0.0.8 → empix-0.0.10}/README.md +4 -4
- {empix-0.0.8 → empix-0.0.10}/docs/INSTALL.rst +2 -2
- {empix-0.0.8 → empix-0.0.10}/docs/build_docs.py +18 -6
- {empix-0.0.8 → empix-0.0.10}/docs/conf.py +33 -12
- {empix-0.0.8 → empix-0.0.10}/docs/index.rst +5 -0
- {empix-0.0.8 → empix-0.0.10}/empix/version.py +3 -3
- {empix-0.0.8 → empix-0.0.10}/empix.egg-info/PKG-INFO +6 -5
- {empix-0.0.8 → empix-0.0.10}/empix.egg-info/requires.txt +1 -0
- empix-0.0.10/examples/basic_usage.ipynb +1842 -0
- {empix-0.0.8 → empix-0.0.10}/examples/helpers_for_basic_usage.py +1 -1
- {empix-0.0.8 → empix-0.0.10}/pyproject.toml +2 -1
- empix-0.0.8/examples/basic_usage.ipynb +0 -1141
- {empix-0.0.8 → empix-0.0.10}/.coveragerc +0 -0
- {empix-0.0.8 → empix-0.0.10}/.github/workflows/measure_code_coverage.yml +0 -0
- {empix-0.0.8 → empix-0.0.10}/.github/workflows/publish_documentation_website.yml +0 -0
- {empix-0.0.8 → empix-0.0.10}/.github/workflows/publish_release_to_pypi.yml +0 -0
- {empix-0.0.8 → empix-0.0.10}/.github/workflows/test_library.yml +0 -0
- {empix-0.0.8 → empix-0.0.10}/.gitignore +0 -0
- {empix-0.0.8 → empix-0.0.10}/LICENSE +0 -0
- {empix-0.0.8 → empix-0.0.10}/docs/Makefile +0 -0
- {empix-0.0.8 → empix-0.0.10}/docs/_static/readthedocs_custom.css +0 -0
- {empix-0.0.8 → empix-0.0.10}/docs/_templates/custom_class_template.rst +0 -0
- {empix-0.0.8 → empix-0.0.10}/docs/_templates/custom_module_template.rst +0 -0
- {empix-0.0.8 → empix-0.0.10}/docs/_templates/versions.html +0 -0
- {empix-0.0.8 → empix-0.0.10}/docs/api.rst +0 -0
- {empix-0.0.8 → empix-0.0.10}/docs/examples.rst +0 -0
- {empix-0.0.8 → empix-0.0.10}/docs/license.rst +0 -0
- {empix-0.0.8 → empix-0.0.10}/docs/make.bat +0 -0
- {empix-0.0.8 → empix-0.0.10}/docs/private_members_to_publish_to_docs.rst +0 -0
- {empix-0.0.8 → empix-0.0.10}/empix/__init__.py +0 -0
- {empix-0.0.8 → empix-0.0.10}/empix.egg-info/SOURCES.txt +0 -0
- {empix-0.0.8 → empix-0.0.10}/empix.egg-info/dependency_links.txt +0 -0
- {empix-0.0.8 → empix-0.0.10}/empix.egg-info/top_level.txt +0 -0
- {empix-0.0.8 → empix-0.0.10}/run_tests.sh +0 -0
- {empix-0.0.8 → empix-0.0.10}/setup.cfg +0 -0
- {empix-0.0.8 → empix-0.0.10}/setup.py +0 -0
- {empix-0.0.8 → empix-0.0.10}/tests/test_root.py +0 -0
- {empix-0.0.8 → empix-0.0.10}/tox.ini +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: empix
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.10
|
|
4
4
|
Summary: Contains tools for analyzing electron microscopy data that are not available in ``hyperspy``.
|
|
5
5
|
Author-email: Matthew Fitzpatrick <matthew.rc.fitzpatrick@gmail.com>
|
|
6
6
|
Project-URL: Homepage, https://mrfitzpa.github.io/empix
|
|
@@ -26,6 +26,7 @@ Requires-Dist: fancytypes>=1.0.0
|
|
|
26
26
|
Requires-Dist: hyperspy
|
|
27
27
|
Requires-Dist: pyFAI
|
|
28
28
|
Requires-Dist: numba
|
|
29
|
+
Requires-Dist: scikit-image
|
|
29
30
|
Provides-Extra: tests
|
|
30
31
|
Requires-Dist: pytest-cov; extra == "tests"
|
|
31
32
|
Provides-Extra: examples
|
|
@@ -91,8 +92,8 @@ systems you could open e.g. an Anaconda Prompt as an administrator.
|
|
|
91
92
|
#### Installing `empix` using `pip`
|
|
92
93
|
|
|
93
94
|
Before installing `empix`, make sure that you have activated the (virtual)
|
|
94
|
-
environment in which you intend to install said package. After which, simply
|
|
95
|
-
|
|
95
|
+
environment in which you intend to install said package. After which, simply run
|
|
96
|
+
the following command:
|
|
96
97
|
|
|
97
98
|
pip install empix
|
|
98
99
|
|
|
@@ -149,12 +150,12 @@ The above command will install the latest stable version of `empix`.
|
|
|
149
150
|
### Uninstalling `empix`
|
|
150
151
|
|
|
151
152
|
If `empix` was installed using `pip`, then to uninstall, run the following
|
|
152
|
-
command
|
|
153
|
+
command:
|
|
153
154
|
|
|
154
155
|
pip uninstall empix
|
|
155
156
|
|
|
156
157
|
If `empix` was installed using `conda`, then to uninstall, run the
|
|
157
|
-
following command
|
|
158
|
+
following command:
|
|
158
159
|
|
|
159
160
|
conda remove empix
|
|
160
161
|
|
|
@@ -48,8 +48,8 @@ systems you could open e.g. an Anaconda Prompt as an administrator.
|
|
|
48
48
|
#### Installing `empix` using `pip`
|
|
49
49
|
|
|
50
50
|
Before installing `empix`, make sure that you have activated the (virtual)
|
|
51
|
-
environment in which you intend to install said package. After which, simply
|
|
52
|
-
|
|
51
|
+
environment in which you intend to install said package. After which, simply run
|
|
52
|
+
the following command:
|
|
53
53
|
|
|
54
54
|
pip install empix
|
|
55
55
|
|
|
@@ -106,12 +106,12 @@ The above command will install the latest stable version of `empix`.
|
|
|
106
106
|
### Uninstalling `empix`
|
|
107
107
|
|
|
108
108
|
If `empix` was installed using `pip`, then to uninstall, run the following
|
|
109
|
-
command
|
|
109
|
+
command:
|
|
110
110
|
|
|
111
111
|
pip uninstall empix
|
|
112
112
|
|
|
113
113
|
If `empix` was installed using `conda`, then to uninstall, run the
|
|
114
|
-
following command
|
|
114
|
+
following command:
|
|
115
115
|
|
|
116
116
|
conda remove empix
|
|
117
117
|
|
|
@@ -82,11 +82,11 @@ Uninstalling ``empix``
|
|
|
82
82
|
----------------------
|
|
83
83
|
|
|
84
84
|
If ``empix`` was installed using ``pip``, then to uninstall, run the
|
|
85
|
-
following command
|
|
85
|
+
following command::
|
|
86
86
|
|
|
87
87
|
pip uninstall empix
|
|
88
88
|
|
|
89
89
|
If ``empix`` was installed using ``conda``, then to uninstall, run the
|
|
90
|
-
following command
|
|
90
|
+
following command::
|
|
91
91
|
|
|
92
92
|
conda remove empix
|
|
@@ -98,16 +98,28 @@ _mvdir("./_build/html/", "./pages/")
|
|
|
98
98
|
|
|
99
99
|
cmd_output_as_bytes = subprocess.check_output("git tag", shell=True)
|
|
100
100
|
cmd_output = cmd_output_as_bytes.decode("utf-8")
|
|
101
|
-
|
|
101
|
+
tag_set = cmd_output.rstrip("\n").split("\n")
|
|
102
102
|
|
|
103
103
|
pattern = r"v[0-9]+\.[0-9]+\.[0-9]+"
|
|
104
|
-
|
|
104
|
+
release_tag_set = tuple(tag for tag in tag_set if re.fullmatch(pattern, tag))
|
|
105
105
|
|
|
106
|
-
|
|
106
|
+
version_subset = dict()
|
|
107
|
+
for tag in release_tag_set:
|
|
107
108
|
version = tag[1:]
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
major, minor, patch = [int(int_as_str) for int_as_str in version.split(".")]
|
|
110
|
+
version_subset.setdefault(major, dict())
|
|
111
|
+
version_subset[major].setdefault(minor, 0)
|
|
112
|
+
version_subset[major][minor] = max(version_subset[major][minor], patch)
|
|
113
|
+
|
|
114
|
+
for major in sorted(version_subset.keys()):
|
|
115
|
+
for minor in sorted(version_subset[major].keys()):
|
|
116
|
+
patch = version_subset[major][minor]
|
|
117
|
+
version = "{}.{}.{}".format(major, minor, patch)
|
|
118
|
+
tag = "v"+version
|
|
119
|
+
major_minor = "{}.{}".format(major, minor)
|
|
120
|
+
language = "en"
|
|
121
|
+
_build_doc(version, language, tag)
|
|
122
|
+
_mvdir("./_build/html/", "./pages/"+major_minor+"/"+language+"/")
|
|
111
123
|
|
|
112
124
|
subprocess.run("cd ..; pip install .; cd docs", shell=True)
|
|
113
125
|
_mvdir("./pages/", "../pages/")
|
|
@@ -163,33 +163,54 @@ build_all_docs = os.environ.get("build_all_docs", None)
|
|
|
163
163
|
pages_root = os.environ.get("pages_root", "")
|
|
164
164
|
|
|
165
165
|
if build_all_docs is not None:
|
|
166
|
-
current_language = os.environ.get("current_language")
|
|
166
|
+
current_language = os.environ.get("current_language")
|
|
167
167
|
current_version = os.environ.get("current_version")
|
|
168
168
|
|
|
169
|
+
major, minor, patch = ((None, None, None)
|
|
170
|
+
if (current_version == "latest")
|
|
171
|
+
else current_version.split("."))
|
|
172
|
+
current_major_minor = ("latest"
|
|
173
|
+
if (major is None)
|
|
174
|
+
else "{}.{}".format(major, minor))
|
|
175
|
+
|
|
169
176
|
html_context = {"current_language" : current_language,
|
|
170
177
|
"languages" : [],
|
|
171
|
-
"current_version" :
|
|
178
|
+
"current_version" : current_major_minor,
|
|
172
179
|
"versions" : []}
|
|
173
180
|
|
|
174
|
-
if
|
|
181
|
+
if current_version == "latest":
|
|
175
182
|
html_context["languages"].append(["en", pages_root])
|
|
176
183
|
|
|
177
|
-
if
|
|
184
|
+
if current_language == "en":
|
|
178
185
|
html_context["versions"].append(["latest", pages_root])
|
|
179
186
|
|
|
180
187
|
cmd_output_as_bytes = subprocess.check_output("git tag", shell=True)
|
|
181
188
|
cmd_output = cmd_output_as_bytes.decode("utf-8")
|
|
182
|
-
|
|
189
|
+
tag_set = cmd_output.rstrip("\n").split("\n")
|
|
183
190
|
|
|
184
191
|
pattern = r"v[0-9]+\.[0-9]+\.[0-9]+"
|
|
185
|
-
|
|
192
|
+
release_tag_set = tuple(tag
|
|
193
|
+
for tag
|
|
194
|
+
in tag_set
|
|
195
|
+
if re.fullmatch(pattern, tag))
|
|
186
196
|
|
|
187
|
-
|
|
197
|
+
version_subset = dict()
|
|
198
|
+
for tag in release_tag_set:
|
|
199
|
+
version = tag[1:]
|
|
200
|
+
major, minor, patch = [int(int_as_str)
|
|
201
|
+
for int_as_str
|
|
202
|
+
in version.split(".")]
|
|
203
|
+
version_subset.setdefault(major, dict())
|
|
204
|
+
version_subset[major].setdefault(minor, 0)
|
|
205
|
+
version_subset[major][minor] = max(version_subset[major][minor], patch)
|
|
206
|
+
|
|
207
|
+
if current_version != "latest":
|
|
188
208
|
language = "en"
|
|
189
|
-
path = pages_root+"/"+
|
|
209
|
+
path = pages_root+"/"+current_major_minor+"/"+language
|
|
190
210
|
html_context["languages"].append([language, path])
|
|
191
211
|
|
|
192
|
-
for
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
212
|
+
for major in sorted(version_subset.keys()):
|
|
213
|
+
for minor in sorted(version_subset[major].keys()):
|
|
214
|
+
major_minor = "{}.{}".format(major, minor)
|
|
215
|
+
path = pages_root+"/"+major_minor+"/"+current_language
|
|
216
|
+
html_context["versions"].append([major_minor, path])
|
|
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
|
|
|
28
28
|
commit_id: COMMIT_ID
|
|
29
29
|
__commit_id__: COMMIT_ID
|
|
30
30
|
|
|
31
|
-
__version__ = version = '0.0.
|
|
32
|
-
__version_tuple__ = version_tuple = (0, 0,
|
|
31
|
+
__version__ = version = '0.0.10'
|
|
32
|
+
__version_tuple__ = version_tuple = (0, 0, 10)
|
|
33
33
|
|
|
34
|
-
__commit_id__ = commit_id = '
|
|
34
|
+
__commit_id__ = commit_id = 'gdc5580860'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: empix
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.10
|
|
4
4
|
Summary: Contains tools for analyzing electron microscopy data that are not available in ``hyperspy``.
|
|
5
5
|
Author-email: Matthew Fitzpatrick <matthew.rc.fitzpatrick@gmail.com>
|
|
6
6
|
Project-URL: Homepage, https://mrfitzpa.github.io/empix
|
|
@@ -26,6 +26,7 @@ Requires-Dist: fancytypes>=1.0.0
|
|
|
26
26
|
Requires-Dist: hyperspy
|
|
27
27
|
Requires-Dist: pyFAI
|
|
28
28
|
Requires-Dist: numba
|
|
29
|
+
Requires-Dist: scikit-image
|
|
29
30
|
Provides-Extra: tests
|
|
30
31
|
Requires-Dist: pytest-cov; extra == "tests"
|
|
31
32
|
Provides-Extra: examples
|
|
@@ -91,8 +92,8 @@ systems you could open e.g. an Anaconda Prompt as an administrator.
|
|
|
91
92
|
#### Installing `empix` using `pip`
|
|
92
93
|
|
|
93
94
|
Before installing `empix`, make sure that you have activated the (virtual)
|
|
94
|
-
environment in which you intend to install said package. After which, simply
|
|
95
|
-
|
|
95
|
+
environment in which you intend to install said package. After which, simply run
|
|
96
|
+
the following command:
|
|
96
97
|
|
|
97
98
|
pip install empix
|
|
98
99
|
|
|
@@ -149,12 +150,12 @@ The above command will install the latest stable version of `empix`.
|
|
|
149
150
|
### Uninstalling `empix`
|
|
150
151
|
|
|
151
152
|
If `empix` was installed using `pip`, then to uninstall, run the following
|
|
152
|
-
command
|
|
153
|
+
command:
|
|
153
154
|
|
|
154
155
|
pip uninstall empix
|
|
155
156
|
|
|
156
157
|
If `empix` was installed using `conda`, then to uninstall, run the
|
|
157
|
-
following command
|
|
158
|
+
following command:
|
|
158
159
|
|
|
159
160
|
conda remove empix
|
|
160
161
|
|