pypsbuilder 2.5.1__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.
- AUTHORS.md +9 -0
- CHANGELOG.md +215 -0
- CONTRIBUTING.md +73 -0
- pypsbuilder/__init__.py +29 -0
- pypsbuilder/images/__init__.py +0 -0
- pypsbuilder/images/ptbuilder.png +0 -0
- pypsbuilder/images/pxbuilder.png +0 -0
- pypsbuilder/images/pypsbuilder.png +0 -0
- pypsbuilder/images/txbuilder.png +0 -0
- pypsbuilder/psbuilders.py +5289 -0
- pypsbuilder/psclasses.py +1093 -0
- pypsbuilder/psexplorer.py +3494 -0
- pypsbuilder/tcapi.py +1681 -0
- pypsbuilder/tcinit.py +992 -0
- pypsbuilder/tests/__init__.py +0 -0
- pypsbuilder/tests/test_pclasses.py +279 -0
- pypsbuilder/ui/addinv.ui +113 -0
- pypsbuilder/ui/adduni.ui +119 -0
- pypsbuilder/ui/compile_ui.sh +9 -0
- pypsbuilder/ui/ptbuilder.ui +1265 -0
- pypsbuilder/ui/pxbuilder.ui +1245 -0
- pypsbuilder/ui/txbuilder.ui +1251 -0
- pypsbuilder/ui/uniguess.ui +85 -0
- pypsbuilder/ui_addinv.py +67 -0
- pypsbuilder/ui_adduni.py +67 -0
- pypsbuilder/ui_ptbuilder.py +934 -0
- pypsbuilder/ui_pxbuilder.py +920 -0
- pypsbuilder/ui_txbuilder.py +922 -0
- pypsbuilder/ui_uniguess.py +52 -0
- pypsbuilder-2.5.1.dist-info/AUTHORS.md +9 -0
- pypsbuilder-2.5.1.dist-info/LICENSE +22 -0
- pypsbuilder-2.5.1.dist-info/METADATA +95 -0
- pypsbuilder-2.5.1.dist-info/RECORD +35 -0
- pypsbuilder-2.5.1.dist-info/WHEEL +4 -0
- pypsbuilder-2.5.1.dist-info/entry_points.txt +10 -0
AUTHORS.md
ADDED
CHANGELOG.md
ADDED
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
All notable pypsbuilder changes.
|
|
3
|
+
|
|
4
|
+
## [2.5.0] - 2024-12-13
|
|
5
|
+
Fully refactored tp pyproject.toml
|
|
6
|
+
|
|
7
|
+
## [2.5.0] - 2024-12-13
|
|
8
|
+
### Fixed
|
|
9
|
+
- fix for coe-q
|
|
10
|
+
|
|
11
|
+
## [2.4.2] - 2024-04-23
|
|
12
|
+
### Fixed
|
|
13
|
+
- another fix of and-ky-sill triple point linking
|
|
14
|
+
|
|
15
|
+
## [2.4.1] - 2024-03-07
|
|
16
|
+
### Fixed
|
|
17
|
+
- fixed and-ky-sill triple point uniline suggestions
|
|
18
|
+
- filled_over labeling fixed
|
|
19
|
+
- cdf isoplths bug fixed
|
|
20
|
+
### Added
|
|
21
|
+
- overlap_isopleths method added
|
|
22
|
+
|
|
23
|
+
## [2.4.0] - 2023-12-21
|
|
24
|
+
### Fixed
|
|
25
|
+
- important collect_grid_data bug causing isopleths twisting fixed.
|
|
26
|
+
### Added
|
|
27
|
+
- collect_ptpath missing field check added
|
|
28
|
+
- remove_grid_data method added
|
|
29
|
+
- isopleths bivariate spline method added
|
|
30
|
+
|
|
31
|
+
## [2.3.6] - 2023-12-13
|
|
32
|
+
### Added
|
|
33
|
+
- search_composition method added to PTPS to find best estimate for isopleths intersection
|
|
34
|
+
|
|
35
|
+
## [2.3.5] - 2023-12-09
|
|
36
|
+
### Fixed
|
|
37
|
+
- accept var check
|
|
38
|
+
|
|
39
|
+
## [2.3.4] - 2023-03-10
|
|
40
|
+
### Added
|
|
41
|
+
- tristate labeling of uni and inv
|
|
42
|
+
### Fixed
|
|
43
|
+
- TC34API bug fixed
|
|
44
|
+
|
|
45
|
+
## [2.3.3] - 2023-02-08
|
|
46
|
+
### Fixed
|
|
47
|
+
- gendrawpd bug fixed
|
|
48
|
+
- missing omit or inexcess fix
|
|
49
|
+
|
|
50
|
+
## [2.3.2] - 2023-01-31
|
|
51
|
+
### Added
|
|
52
|
+
- tcinit script added to initialize project directory
|
|
53
|
+
- bulk table bug fixed
|
|
54
|
+
- pointcalc method to run TC for given pT added to explorer
|
|
55
|
+
- fixed some issues with creating areas
|
|
56
|
+
- experimental vector isoplets for easy editing added (needs scikit-image)
|
|
57
|
+
|
|
58
|
+
## [2.3.1] - 2022-10-06
|
|
59
|
+
### Fixed
|
|
60
|
+
- Fixed support for both TC34x and TC350beta
|
|
61
|
+
- added tool to parse TC calculations (executed out of builder)
|
|
62
|
+
- fixed ShapelyDeprecationWarning
|
|
63
|
+
- fixed collect_ptpath() along 2-point path
|
|
64
|
+
|
|
65
|
+
## [2.3.0] 2021-05-04
|
|
66
|
+
### Fixed
|
|
67
|
+
- latest THERMOCALC 3.50 compatibility
|
|
68
|
+
|
|
69
|
+
### Added
|
|
70
|
+
- isopleths quadratic surface fit method added
|
|
71
|
+
- isopleths figure and savefig options added
|
|
72
|
+
|
|
73
|
+
## [2.2.2] - 2021-01-25
|
|
74
|
+
### Fixed
|
|
75
|
+
- gendrawpd fixed
|
|
76
|
+
- fix to partially support TC347
|
|
77
|
+
|
|
78
|
+
## [2.2.1] - 2020-06-16
|
|
79
|
+
### Added
|
|
80
|
+
- bugfix release
|
|
81
|
+
- option to to move invpoint and keep results
|
|
82
|
+
(useful to fine-tune topology)
|
|
83
|
+
- tool to cleanup storage (trim metastable calculations)
|
|
84
|
+
- option to hide labels of connected lines and points
|
|
85
|
+
|
|
86
|
+
## [2.2.0] - 2020-04-11
|
|
87
|
+
### Added
|
|
88
|
+
- ptbuilder, txbuilder and pxbuilder pseudosection builders
|
|
89
|
+
- topology graph window added
|
|
90
|
+
- dogmin implemented (results stored in projects)
|
|
91
|
+
- autoconnect implemented
|
|
92
|
+
- invariant point search implemented
|
|
93
|
+
- merge of partially calculated univariant lines implemented
|
|
94
|
+
- possibility to remove parts of univariant lines implemented
|
|
95
|
+
- zoom to uni added to context menu
|
|
96
|
+
- option to extend calculation range to extend univariant lines gently out of defined region
|
|
97
|
+
- PTPS, TXPS and PXPS psexplorers implemented
|
|
98
|
+
- possibility to merge several parts of pseudosection. Invariant points and
|
|
99
|
+
univariant lines must be unique in single project.
|
|
100
|
+
- calc along PT path implemented (now only for PT sections)
|
|
101
|
+
|
|
102
|
+
## [2.1.5] - 2019-03-25
|
|
103
|
+
### Removed
|
|
104
|
+
- autocorrection of liquid model named as liq but starting guesses using L removed.
|
|
105
|
+
User must check if liq model is coded properly. In case of tc-6xmn.txt it should be:
|
|
106
|
+
|
|
107
|
+
```
|
|
108
|
+
% =================================================
|
|
109
|
+
liq 8 1
|
|
110
|
+
|
|
111
|
+
q(liq) 0.1814
|
|
112
|
+
fsp(liq) 0.3490
|
|
113
|
+
na(liq) 0.5840
|
|
114
|
+
an(liq) 0.01104
|
|
115
|
+
ol(liq) 0.01373
|
|
116
|
+
x(liq) 0.7333
|
|
117
|
+
h2o(liq) 0.4276
|
|
118
|
+
|
|
119
|
+
% --------------------------------------------------
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
## [2.1.4] - 2017-12-04
|
|
123
|
+
### Fixed
|
|
124
|
+
- clabel positioning
|
|
125
|
+
- minimum contour level
|
|
126
|
+
- silently ignore critical possible topology errors
|
|
127
|
+
|
|
128
|
+
## [2.1.2] - 2017-04-03
|
|
129
|
+
### Added
|
|
130
|
+
- Option to show bulk composition on psexplorer figures
|
|
131
|
+
- dio-o and gl-act-hb added to polymorphs
|
|
132
|
+
|
|
133
|
+
### Fixed
|
|
134
|
+
- psshow changed default color map to be darker for higher variance
|
|
135
|
+
- manual or imported invariant points bub in psiso fixed
|
|
136
|
+
|
|
137
|
+
## [2.1.1] - 2017-03-28
|
|
138
|
+
### Added
|
|
139
|
+
- colors and cmap args added to cli version of psiso
|
|
140
|
+
- clabel arg psiso to place contour labels
|
|
141
|
+
|
|
142
|
+
## [2.1.0] - 2017-03-23
|
|
143
|
+
### Added
|
|
144
|
+
- Write starting guesses from existing calculations
|
|
145
|
+
(note that commented tags are needed in scriptfile)
|
|
146
|
+
- Updated parsing include rbi data
|
|
147
|
+
- Initial version of psexplorer to draw final pseudosections and isopleths
|
|
148
|
+
(cli scrips provided)
|
|
149
|
+
- Manual unilines and invpoints shown in bold in lists
|
|
150
|
+
|
|
151
|
+
## [2.0.7] - 2017-02-13
|
|
152
|
+
### Added
|
|
153
|
+
- double-click on phaselist highlight all unilines with zero mode phase
|
|
154
|
+
- option to export partial areas
|
|
155
|
+
- Keyboard shortcuts added Ctrl-T and Ctrl-P for CalcTatP and CalcPatT,
|
|
156
|
+
Ctrl-H Zoom home
|
|
157
|
+
|
|
158
|
+
### Fixes
|
|
159
|
+
- excess phases stored in unilines and invpoints
|
|
160
|
+
- labeling phases sorted alphabeltically, same as phaselist
|
|
161
|
+
- auto bug fixed
|
|
162
|
+
|
|
163
|
+
## [2.0.6] - 2017-02-03
|
|
164
|
+
### Fixed
|
|
165
|
+
- path to executables stored in project
|
|
166
|
+
- scriptfile parsing improved
|
|
167
|
+
|
|
168
|
+
## [2.0.5] 2017-01-19
|
|
169
|
+
### Fixes
|
|
170
|
+
- output parsing fixed (hopefully...)
|
|
171
|
+
- Rightclick invariant points menu fixed
|
|
172
|
+
- area construction for drawpd export fixed
|
|
173
|
+
- networkx dependecy removed
|
|
174
|
+
|
|
175
|
+
## [2.0.4] - 2017-01-13
|
|
176
|
+
### Added
|
|
177
|
+
- saveas project added
|
|
178
|
+
- working directory written to Log window
|
|
179
|
+
- Log window catch output of both thermocalc and drawpd
|
|
180
|
+
|
|
181
|
+
## [2.0.3] - 2017-01-13
|
|
182
|
+
### Added
|
|
183
|
+
- invview right click to select not yet calculated uni lines implemented
|
|
184
|
+
|
|
185
|
+
### Fixes
|
|
186
|
+
- Zoom uni button persistent
|
|
187
|
+
- export list of phases in areas for TC-Investigator
|
|
188
|
+
- drawpd areas construction fixed
|
|
189
|
+
|
|
190
|
+
## [2.0.2] - 2016-12-10
|
|
191
|
+
### Fixed
|
|
192
|
+
- Areas export fixed
|
|
193
|
+
- inv filtering fixed
|
|
194
|
+
|
|
195
|
+
## [2.0.1] - 2016-12-10
|
|
196
|
+
### Added
|
|
197
|
+
- Recent files implemented
|
|
198
|
+
- Adding manual uni and inv must be constrained by phases and out selection
|
|
199
|
+
- Export areas to drawpd
|
|
200
|
+
- Auto calculation around inv point
|
|
201
|
+
|
|
202
|
+
### Fixed
|
|
203
|
+
- scriptfile encoding fix
|
|
204
|
+
- unilabels placement fixed
|
|
205
|
+
- refresh instead plot during zoom
|
|
206
|
+
- new unicutting algorithm
|
|
207
|
+
- THERMOCALC mac-roman encoding used
|
|
208
|
+
|
|
209
|
+
## [2.0.0] 2016-11-19
|
|
210
|
+
### Added
|
|
211
|
+
- Initial release of new generation of PSBuilder
|
|
212
|
+
|
|
213
|
+
[2.3.0dev]: https://github.com/ondrolexa/pypsbuilder/compare/v2.2.2...HEAD
|
|
214
|
+
[2.2.2]: https://github.com/ondrolexa/pypsbuilder/compare/v2.2.1...v2.2.2
|
|
215
|
+
[2.2.1]: https://github.com/ondrolexa/pypsbuilder/compare/v2.1.5...v2.2.1
|
CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
Contributions are welcome, and they are greatly appreciated! Every
|
|
4
|
+
little bit helps, and credit will always be given.
|
|
5
|
+
|
|
6
|
+
You can contribute in many ways:
|
|
7
|
+
|
|
8
|
+
## Types of Contributions
|
|
9
|
+
|
|
10
|
+
### Report Bugs
|
|
11
|
+
|
|
12
|
+
Report bugs at [https://github.com/ondrolexa/pypsbuilder/issues](https://github.com/ondrolexa/pypsbuilder/issues).
|
|
13
|
+
|
|
14
|
+
If you are reporting a bug, please include:
|
|
15
|
+
|
|
16
|
+
* Your operating system name and version.
|
|
17
|
+
* Any details about your local setup that might be helpful in troubleshooting.
|
|
18
|
+
* Detailed steps to reproduce the bug.
|
|
19
|
+
|
|
20
|
+
### Fix Bugs
|
|
21
|
+
|
|
22
|
+
Look through the GitHub issues for bugs. Anything tagged with "bug"
|
|
23
|
+
is open to whoever wants to implement it.
|
|
24
|
+
|
|
25
|
+
### Implement Features
|
|
26
|
+
|
|
27
|
+
Look through the GitHub issues for features. Anything tagged with "feature"
|
|
28
|
+
is open to whoever wants to implement it.
|
|
29
|
+
|
|
30
|
+
### Write Documentation
|
|
31
|
+
|
|
32
|
+
pypsbuilder could always use more documentation, whether as part of the
|
|
33
|
+
official pypsbuilder docs, in docstrings, or even on the web in blog posts,
|
|
34
|
+
articles, and such.
|
|
35
|
+
|
|
36
|
+
### Submit Feedback
|
|
37
|
+
|
|
38
|
+
The best way to send feedback is to file an issue at [https://github.com/ondrolexa/pypsbuilder/issues](https://github.com/ondrolexa/pypsbuilder/issues).
|
|
39
|
+
|
|
40
|
+
If you are proposing a feature:
|
|
41
|
+
|
|
42
|
+
* Explain in detail how it would work.
|
|
43
|
+
* Keep the scope as narrow as possible, to make it easier to implement.
|
|
44
|
+
* Remember that this is a volunteer-driven project, and that contributions
|
|
45
|
+
are welcome :)
|
|
46
|
+
|
|
47
|
+
## Get Started!
|
|
48
|
+
|
|
49
|
+
Ready to contribute? Here's how to set up `pypsbuilder` for local development.
|
|
50
|
+
|
|
51
|
+
1. Just head over to the [GitHub page](https://github.com/ondrolexa/pypsbuilder) and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo.
|
|
52
|
+
|
|
53
|
+
2. Create a branch for local development
|
|
54
|
+
```
|
|
55
|
+
$ git checkout -b name-of-your-bugfix-or-feature
|
|
56
|
+
```
|
|
57
|
+
Now you can make your changes locally.
|
|
58
|
+
|
|
59
|
+
3. Commit your changes and push your branch to GitHub
|
|
60
|
+
```
|
|
61
|
+
$ git add .
|
|
62
|
+
$ git commit -m "Your detailed description of your changes."
|
|
63
|
+
$ git push origin name-of-your-bugfix-or-feature
|
|
64
|
+
```
|
|
65
|
+
4. Submit a pull request through the GitHub website
|
|
66
|
+
|
|
67
|
+
## Pull Request Guidelines
|
|
68
|
+
|
|
69
|
+
Before you submit a pull request, check that it meets these guidelines.
|
|
70
|
+
|
|
71
|
+
1. If the pull request adds functionality, the docs should be updated. Put
|
|
72
|
+
your new functionality into a function with a docstring, and add the
|
|
73
|
+
feature to the list in README.rst.
|
pypsbuilder/__init__.py
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
|
|
3
|
+
import importlib.metadata
|
|
4
|
+
from pypsbuilder.psexplorer import PTPS, TXPS, PXPS
|
|
5
|
+
from pypsbuilder.psclasses import (
|
|
6
|
+
InvPoint,
|
|
7
|
+
UniLine,
|
|
8
|
+
PTsection,
|
|
9
|
+
TXsection,
|
|
10
|
+
PXsection,
|
|
11
|
+
)
|
|
12
|
+
from pypsbuilder.tcapi import get_tcapi
|
|
13
|
+
|
|
14
|
+
__all__ = (
|
|
15
|
+
"InvPoint",
|
|
16
|
+
"UniLine",
|
|
17
|
+
"PTsection",
|
|
18
|
+
"TXsection",
|
|
19
|
+
"PXsection",
|
|
20
|
+
"PTPS",
|
|
21
|
+
"TXPS",
|
|
22
|
+
"PXPS",
|
|
23
|
+
"get_tcapi",
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
__version__ = importlib.metadata.version("pypsbuilder")
|
|
27
|
+
__author__ = "Ondrej Lexa"
|
|
28
|
+
__copyright__ = "© Ondrej Lexa 2016-2024"
|
|
29
|
+
__email__ = "lexa.ondrej@gmail.com"
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|