pyemaps 1.1.8__tar.gz → 2.1.0__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.
- {pyemaps-1.1.8 → pyemaps-2.1.0}/CifFile/src/CifFile_module.py +1 -1
- {pyemaps-1.1.8 → pyemaps-2.1.0}/PKG-INFO +24 -21
- {pyemaps-1.1.8 → pyemaps-2.1.0}/README.md +9 -17
- {pyemaps-1.1.8 → pyemaps-2.1.0}/__main__.py +3 -3
- pyemaps-2.1.0/__version__.py +1 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/crystals.py +370 -462
- {pyemaps-1.1.8 → pyemaps-2.1.0}/ddiffs.py +53 -27
- {pyemaps-1.1.8 → pyemaps-2.1.0}/diffract/bloch_dec.py +147 -249
- {pyemaps-1.1.8 → pyemaps-2.1.0}/diffract/csf_dec.py +48 -66
- {pyemaps-1.1.8 → pyemaps-2.1.0}/diffract/dif_dec.py +89 -113
- {pyemaps-1.1.8 → pyemaps-2.1.0}/diffract/dpgen_dec.py +33 -46
- {pyemaps-1.1.8 → pyemaps-2.1.0}/diffract/mxtal_dec.py +51 -57
- {pyemaps-1.1.8 → pyemaps-2.1.0}/diffract/powder_dec.py +27 -35
- {pyemaps-1.1.8 → pyemaps-2.1.0}/diffract/stereo_dec.py +16 -23
- {pyemaps-1.1.8 → pyemaps-2.1.0}/display.py +123 -104
- {pyemaps-1.1.8 → pyemaps-2.1.0}/emcontrols.py +182 -121
- {pyemaps-1.1.8 → pyemaps-2.1.0}/errors.py +84 -114
- {pyemaps-1.1.8 → pyemaps-2.1.0}/fileutils.py +88 -62
- {pyemaps-1.1.8 → pyemaps-2.1.0}/kdiffs.py +248 -275
- {pyemaps-1.1.8 → pyemaps-2.1.0}/pyemaps.egg-info/PKG-INFO +24 -21
- {pyemaps-1.1.8 → pyemaps-2.1.0}/pyemaps.egg-info/SOURCES.txt +22 -3
- pyemaps-2.1.0/pyemaps.egg-info/requires.txt +3 -0
- pyemaps-2.1.0/pyproject.toml +6 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/samples/powder.py +2 -1
- {pyemaps-1.1.8 → pyemaps-2.1.0}/samples/si_pyemaps.py +1 -1
- {pyemaps-1.1.8 → pyemaps-2.1.0}/setup.cfg +5 -4
- {pyemaps-1.1.8 → pyemaps-2.1.0}/setup.py +39 -45
- pyemaps-2.1.0/stackimg.py +1020 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/xtal.py +65 -52
- pyemaps-1.1.8/__version__.py +0 -1
- pyemaps-1.1.8/pyemaps.egg-info/requires.txt +0 -3
- pyemaps-1.1.8/pyproject.toml +0 -7
- pyemaps-1.1.8/stackimg.py +0 -1031
- {pyemaps-1.1.8 → pyemaps-2.1.0}/COPYING +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/CifFile/src/StarFile.py +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/CifFile/src/TypeContentsParser.py +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/CifFile/src/YappsStarParser_1_0.py +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/CifFile/src/YappsStarParser_1_1.py +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/CifFile/src/YappsStarParser_2_0.py +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/CifFile/src/YappsStarParser_STAR2.py +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/CifFile/src/__init__.py +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/CifFile/src/drel/__init__.py +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/CifFile/src/drel/drel_ast_yacc.py +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/CifFile/src/drel/drel_lex.py +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/CifFile/src/drel/drel_runtime.py +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/CifFile/src/drel/parsetab.py +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/CifFile/src/drel/py_from_ast.py +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/CifFile/src/parsetab.py +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/CifFile/src/yapps3_compiled_rt.py +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/MANIFEST.in +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/__config__.py +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/__init__.py +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/cdata/Aluminium.xtl +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/cdata/AluminiumOxide.xtl +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/cdata/Aluminium_FCC.xtl +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/cdata/BariumTitanate_180k.xtl +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/cdata/BariumTitanate_270k.xtl +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/cdata/BariumTitanate_Tetra.xtl +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/cdata/BiMnO3.xtl +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/cdata/Boron_Tetra.xtl +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/cdata/CadmiumSelenide_Hex.xtl +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/cdata/CadmiumSulfide_Cubic.xtl +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/cdata/CadmiumSulfide_Hex.xtl +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/cdata/Chromium_BCC.xtl +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/cdata/CoSb3_Skutterudite.xtl +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/cdata/CopperOxide.xtl +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/cdata/Copper_FCC.xtl +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/cdata/Cu2O_Cuprite.xtl +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/cdata/Diamond.xtl +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/cdata/ErbiumPyrogermanate.xtl +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/cdata/FePd_Tetra.xtl +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/cdata/FeS2_Pyrite.xtl +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/cdata/GalliumAntimonide.xtl +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/cdata/GalliumArsenide.xtl +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/cdata/GalliumNitride.xtl +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/cdata/Germanium.xtl +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/cdata/Gold_FCC.xtl +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/cdata/IndiumArsenide.xtl +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/cdata/LaMnO3.xtl +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/cdata/LeadZirconateTitanate.xtl +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/cdata/Li2MnO3.xtl +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/cdata/NaFeO2.xtl +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/cdata/Nb3Sn.xtl +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/cdata/Pentacene.xtl +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/cdata/SiAlONa.xtl +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/cdata/Silicon.xtl +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/cdata/StrontiumTitanate.xtl +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/cdata/TelluriumDioxide.xtl +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/cdata/TinDioxide_RT.xtl +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/cdata/TitaniumDioxide_Anatase.xtl +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/cdata/TitaniumDioxide_Rutile.xtl +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/cdata/TungstenDiselenide.xtl +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/cdata/VanadiumDioxide_RT.xtl +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/cdata/ZincOxide.xtl +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/cdata/Zinc_HCP.xtl +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/cdata/ZirconiumNitride.xtl +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/cdata/limno2.xtl +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/diffract/__init__.py +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/license.txt +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/pyemaps.egg-info/dependency_links.txt +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/pyemaps.egg-info/entry_points.txt +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/pyemaps.egg-info/top_level.txt +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/samples/adf.py +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/samples/al.img +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/samples/al_dpgen.py +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/samples/al_ediom.py +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/samples/convert_image.py +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/samples/dm_diff.py +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/samples/mask.im3 +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/samples/raw.img +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/samples/si_bloch.py +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/samples/si_constructor.py +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/samples/si_csf.py +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/samples/si_dif.py +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/samples/si_lacbed.py +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/samples/si_scm.py +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/samples/si_stereo.py +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/scattering/__init__.py +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/scattering/sct_dec.py +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/spg/__init__.py +0 -0
- {pyemaps-1.1.8 → pyemaps-2.1.0}/spg/spg_dec.py +0 -0
|
@@ -353,7 +353,7 @@ class CifDic(StarFile.StarFile):
|
|
|
353
353
|
self.DDL2_normalise() #iron out some DDL2 tricky bits
|
|
354
354
|
elif self.diclang == "DDLm":
|
|
355
355
|
self.scoping = 'dictionary' #expose all save frames
|
|
356
|
-
if do_imports
|
|
356
|
+
if do_imports != 'No':
|
|
357
357
|
self.obtain_imports(import_mode=do_imports,heavy=heavy)#recursively calls this routine
|
|
358
358
|
self.create_alias_table()
|
|
359
359
|
self.create_cat_obj_table()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: pyemaps
|
|
3
|
-
Version:
|
|
3
|
+
Version: 2.1.0
|
|
4
4
|
Summary: A Python Package for Transmission Electron Diffraction Simulations and Crystallographic Computing
|
|
5
5
|
Home-page: https://www.emlabsolutions.com
|
|
6
6
|
Author: EMLab Solutions, Inc.
|
|
@@ -8,14 +8,25 @@ Author-email: support@emlabsoftware.com
|
|
|
8
8
|
License: Free for base features. License activation required for extended 4dstem features
|
|
9
9
|
Keywords: Transmission,Electron,Diffraction,Simulation,Crystallography,Python
|
|
10
10
|
Classifier: Development Status :: 5 - Production/Stable
|
|
11
|
-
Classifier: Programming Language :: Python :: 3.
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
12
15
|
Classifier: Operating System :: Microsoft :: Windows
|
|
13
16
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
14
17
|
Classifier: Intended Audience :: Science/Research
|
|
15
|
-
Requires-Python: >=3.
|
|
18
|
+
Requires-Python: >=3.12
|
|
16
19
|
Description-Content-Type: text/markdown
|
|
17
20
|
License-File: license.txt
|
|
18
21
|
License-File: COPYING
|
|
22
|
+
Requires-Dist: emaps>=2.0.0
|
|
23
|
+
Requires-Dist: numpy>=2.0
|
|
24
|
+
Requires-Dist: matplotlib>=3.8.4
|
|
25
|
+
Dynamic: description
|
|
26
|
+
Dynamic: description-content-type
|
|
27
|
+
Dynamic: license-file
|
|
28
|
+
Dynamic: requires-dist
|
|
29
|
+
Dynamic: summary
|
|
19
30
|
|
|
20
31
|
<!-- # Open Source __pyEMAPS__ Development Guidelines -->
|
|
21
32
|
|
|
@@ -74,22 +85,18 @@ See instructions below for contributor:
|
|
|
74
85
|
## Build pyEMAPS [`↩`](#content) <a id="build"></a>
|
|
75
86
|
|
|
76
87
|
Requirements and recommendations:
|
|
77
|
-
* __Python__: Version
|
|
88
|
+
* __Python__: Version 3.12, 3.13, 3.14 or 3.15
|
|
78
89
|
* __Operating Systems__: Windows
|
|
79
90
|
* __VSCode__: code editing (recommended, for contributors only)
|
|
80
|
-
* __MSVC Community 2019__: with build tools (for contributors only)
|
|
81
91
|
|
|
82
|
-
|
|
92
|
+
Building __pyEMAPS__ itself needs no compiler, because it is pure Python. Its compiled backend, __emaps__, supports Windows with Python 3.12 to 3.15, so __pyEMAPS__ does too. pyEMAPS 1.1.x remains available for Python 3.7. We are also looking for contributors to extend it to other platforms.
|
|
83
93
|
|
|
84
94
|
Like many python development, a virtual python environment is recommended to isolate your pyEMAPS development environment from your other python development projects.
|
|
85
95
|
|
|
86
|
-
Below are steps to establish __pyEMAPS__ build environment with python 3.
|
|
96
|
+
Below are steps to establish __pyEMAPS__ build environment with python 3.12 as an example:
|
|
87
97
|
|
|
88
|
-
*
|
|
89
|
-
|
|
90
|
-
Invoke-WebRequest -Uri "https://www.python.org/ftp/python/3.7.9/python-3.7.9-amd64.exe" -OutFile "python-3.7.9-amd64.exe"
|
|
91
|
-
```
|
|
92
|
-
* Run the "python-3.7.9-amd64.exe", choose the following in installer GUI:
|
|
98
|
+
* Download the Python 3.12 Windows installer (64-bit) from [python.org](https://www.python.org/downloads/windows/).
|
|
99
|
+
* Run the installer, choose the following in installer GUI:
|
|
93
100
|
|
|
94
101
|
* Select Customize Installation
|
|
95
102
|
* Check and select pip
|
|
@@ -102,7 +109,7 @@ Below are steps to establish __pyEMAPS__ build environment with python 3.7.9 as
|
|
|
102
109
|
(or choose your own directory name)
|
|
103
110
|
* Create pyemaps_build virtual environemnt:
|
|
104
111
|
```
|
|
105
|
-
|
|
112
|
+
py -3.12 -m venv pyemaps_build
|
|
106
113
|
```
|
|
107
114
|
* Activate pyemaps_build vitual environment:
|
|
108
115
|
```
|
|
@@ -110,16 +117,12 @@ Below are steps to establish __pyEMAPS__ build environment with python 3.7.9 as
|
|
|
110
117
|
```
|
|
111
118
|
* Update pip:
|
|
112
119
|
```
|
|
113
|
-
|
|
120
|
+
python -m pip install pip --upgrade
|
|
114
121
|
```
|
|
115
122
|
* Install other python packages required for building pyemaps, using pip:
|
|
116
123
|
```
|
|
117
|
-
pip install
|
|
124
|
+
pip install setuptools wheel build
|
|
118
125
|
```
|
|
119
|
-
* Install Microsoft Visual Studio 2019 Community with build tools
|
|
120
|
-
https://visualstudio.microsoft.com/vs/older-downloads/
|
|
121
|
-
by selecting "Desktop development with C++" in the installer.
|
|
122
|
-
(You may need a microsoft account to be able to download)
|
|
123
126
|
* Build directory structure:
|
|
124
127
|
|
|
125
128
|
<pre>
|
|
@@ -160,7 +163,7 @@ where _docs_ for creation of documents requires Sphinx python package:
|
|
|
160
163
|
|
|
161
164
|
* Install the new pyEMAPS package:
|
|
162
165
|
```
|
|
163
|
-
pip .\dist\pyemaps-1.0.0-
|
|
166
|
+
pip install .\dist\pyemaps-1.0.0-py3-none-any.whl
|
|
164
167
|
```
|
|
165
168
|
This will install new pyEMAPS just built in current python virtual environment
|
|
166
169
|
along with all of its dependent packages.
|
|
@@ -55,22 +55,18 @@ See instructions below for contributor:
|
|
|
55
55
|
## Build pyEMAPS [`↩`](#content) <a id="build"></a>
|
|
56
56
|
|
|
57
57
|
Requirements and recommendations:
|
|
58
|
-
* __Python__: Version
|
|
58
|
+
* __Python__: Version 3.12, 3.13, 3.14 or 3.15
|
|
59
59
|
* __Operating Systems__: Windows
|
|
60
60
|
* __VSCode__: code editing (recommended, for contributors only)
|
|
61
|
-
* __MSVC Community 2019__: with build tools (for contributors only)
|
|
62
61
|
|
|
63
|
-
|
|
62
|
+
Building __pyEMAPS__ itself needs no compiler, because it is pure Python. Its compiled backend, __emaps__, supports Windows with Python 3.12 to 3.15, so __pyEMAPS__ does too. pyEMAPS 1.1.x remains available for Python 3.7. We are also looking for contributors to extend it to other platforms.
|
|
64
63
|
|
|
65
64
|
Like many python development, a virtual python environment is recommended to isolate your pyEMAPS development environment from your other python development projects.
|
|
66
65
|
|
|
67
|
-
Below are steps to establish __pyEMAPS__ build environment with python 3.
|
|
66
|
+
Below are steps to establish __pyEMAPS__ build environment with python 3.12 as an example:
|
|
68
67
|
|
|
69
|
-
*
|
|
70
|
-
|
|
71
|
-
Invoke-WebRequest -Uri "https://www.python.org/ftp/python/3.7.9/python-3.7.9-amd64.exe" -OutFile "python-3.7.9-amd64.exe"
|
|
72
|
-
```
|
|
73
|
-
* Run the "python-3.7.9-amd64.exe", choose the following in installer GUI:
|
|
68
|
+
* Download the Python 3.12 Windows installer (64-bit) from [python.org](https://www.python.org/downloads/windows/).
|
|
69
|
+
* Run the installer, choose the following in installer GUI:
|
|
74
70
|
|
|
75
71
|
* Select Customize Installation
|
|
76
72
|
* Check and select pip
|
|
@@ -83,7 +79,7 @@ Below are steps to establish __pyEMAPS__ build environment with python 3.7.9 as
|
|
|
83
79
|
(or choose your own directory name)
|
|
84
80
|
* Create pyemaps_build virtual environemnt:
|
|
85
81
|
```
|
|
86
|
-
|
|
82
|
+
py -3.12 -m venv pyemaps_build
|
|
87
83
|
```
|
|
88
84
|
* Activate pyemaps_build vitual environment:
|
|
89
85
|
```
|
|
@@ -91,16 +87,12 @@ Below are steps to establish __pyEMAPS__ build environment with python 3.7.9 as
|
|
|
91
87
|
```
|
|
92
88
|
* Update pip:
|
|
93
89
|
```
|
|
94
|
-
|
|
90
|
+
python -m pip install pip --upgrade
|
|
95
91
|
```
|
|
96
92
|
* Install other python packages required for building pyemaps, using pip:
|
|
97
93
|
```
|
|
98
|
-
pip install
|
|
94
|
+
pip install setuptools wheel build
|
|
99
95
|
```
|
|
100
|
-
* Install Microsoft Visual Studio 2019 Community with build tools
|
|
101
|
-
https://visualstudio.microsoft.com/vs/older-downloads/
|
|
102
|
-
by selecting "Desktop development with C++" in the installer.
|
|
103
|
-
(You may need a microsoft account to be able to download)
|
|
104
96
|
* Build directory structure:
|
|
105
97
|
|
|
106
98
|
<pre>
|
|
@@ -141,7 +133,7 @@ where _docs_ for creation of documents requires Sphinx python package:
|
|
|
141
133
|
|
|
142
134
|
* Install the new pyEMAPS package:
|
|
143
135
|
```
|
|
144
|
-
pip .\dist\pyemaps-1.0.0-
|
|
136
|
+
pip install .\dist\pyemaps-1.0.0-py3-none-any.whl
|
|
145
137
|
```
|
|
146
138
|
This will install new pyEMAPS just built in current python virtual environment
|
|
147
139
|
along with all of its dependent packages.
|
|
@@ -65,7 +65,7 @@ def copy_samples():
|
|
|
65
65
|
shutil.copy(source, destination)
|
|
66
66
|
print(f'Copied sample code: {file_name} in pyemaps package to {destination}')
|
|
67
67
|
|
|
68
|
-
print(f'Run sample code by typing: \"python pyemaps_samples
|
|
68
|
+
print(f'Run sample code by typing: \"python pyemaps_samples\\<sample>\"')
|
|
69
69
|
|
|
70
70
|
def is_alphanumeric_with_dash(s, slen):
|
|
71
71
|
"""
|
|
@@ -103,7 +103,7 @@ def main():
|
|
|
103
103
|
|
|
104
104
|
import argparse
|
|
105
105
|
import datetime
|
|
106
|
-
import
|
|
106
|
+
from importlib.metadata import version as dist_version
|
|
107
107
|
|
|
108
108
|
parser = argparse.ArgumentParser(description="pyEMAPS command line tool.",
|
|
109
109
|
formatter_class=argparse.RawTextHelpFormatter)
|
|
@@ -155,7 +155,7 @@ The token is obtained from EMLab Solutions, Inc. by writing to support@emlabsoft
|
|
|
155
155
|
parser.print_help()
|
|
156
156
|
exit(1)
|
|
157
157
|
|
|
158
|
-
ver =
|
|
158
|
+
ver = dist_version("pyemaps") + str(f" {rel_stage}").lower()
|
|
159
159
|
|
|
160
160
|
copyrit = ['PyEMAPS - Transmission Electron Diffraction Simulations In Python']
|
|
161
161
|
copy1 = '© 2021-' + datetime.date.today().strftime('%Y') + ' EMLab Solutions, Inc. All rights reserved.'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "2.1.0"
|