VolFe 0.2__tar.gz → 0.3__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.
- volfe-0.3/PKG-INFO +54 -0
- volfe-0.3/README.md +26 -0
- volfe-0.3/pyproject.toml +55 -0
- volfe-0.3/src/VolFe/__init__.py +23 -0
- volfe-0.3/src/VolFe/batch_calculations.py +1185 -0
- volfe-0.3/src/VolFe/calculations.py +1124 -0
- {VolFe-0.2 → volfe-0.3}/src/VolFe/equilibrium_equations.py +824 -940
- volfe-0.3/src/VolFe/isotopes.py +610 -0
- volfe-0.3/src/VolFe/melt_gas.py +936 -0
- volfe-0.3/src/VolFe/model_dependent_variables.py +3570 -0
- volfe-0.3/src/VolFe.egg-info/PKG-INFO +54 -0
- {VolFe-0.2 → volfe-0.3}/src/VolFe.egg-info/SOURCES.txt +9 -4
- volfe-0.3/src/VolFe.egg-info/requires.txt +19 -0
- volfe-0.3/tests/test_S2fO2_functions.py +158 -0
- volfe-0.3/tests/test_degassing_functions.py +452 -0
- volfe-0.3/tests/test_model_options.py +43 -0
- volfe-0.3/tests/test_other_functions.py +165 -0
- volfe-0.3/tests/test_pvsat_functions.py +391 -0
- volfe-0.3/tests/test_user_warnings.py +39 -0
- VolFe-0.2/PKG-INFO +0 -13
- VolFe-0.2/setup.py +0 -43
- VolFe-0.2/src/VolFe/__init__.py +0 -30
- VolFe-0.2/src/VolFe/_version.py +0 -8
- VolFe-0.2/src/VolFe/batch_calculations.py +0 -2033
- VolFe-0.2/src/VolFe/calculations.py +0 -954
- VolFe-0.2/src/VolFe/import_files.py +0 -10
- VolFe-0.2/src/VolFe/isotopes.py +0 -181
- VolFe-0.2/src/VolFe/melt_gas.py +0 -821
- VolFe-0.2/src/VolFe/model_dependent_variables.py +0 -1534
- VolFe-0.2/src/VolFe.egg-info/PKG-INFO +0 -13
- VolFe-0.2/src/VolFe.egg-info/requires.txt +0 -7
- {VolFe-0.2 → volfe-0.3}/setup.cfg +0 -0
- {VolFe-0.2 → volfe-0.3}/src/VolFe/differential_equations.py +0 -0
- {VolFe-0.2 → volfe-0.3}/src/VolFe.egg-info/dependency_links.txt +0 -0
- {VolFe-0.2 → volfe-0.3}/src/VolFe.egg-info/top_level.txt +0 -0
volfe-0.3/PKG-INFO
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: VolFe
|
|
3
|
+
Version: 0.3
|
|
4
|
+
Summary: VolFe
|
|
5
|
+
Author-email: Ery Hughes <ery.c.hughes@gmail.com>
|
|
6
|
+
Project-URL: Homepage, https://github.com/eryhughes/VolFe
|
|
7
|
+
Classifier: Operating System :: OS Independent
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Requires-Python: >=3.7
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
Requires-Dist: datetime
|
|
12
|
+
Requires-Dist: densityx
|
|
13
|
+
Requires-Dist: gmpy2
|
|
14
|
+
Requires-Dist: numpy<2
|
|
15
|
+
Requires-Dist: pandas
|
|
16
|
+
Requires-Dist: PySulfSat
|
|
17
|
+
Requires-Dist: scipy
|
|
18
|
+
Provides-Extra: dev
|
|
19
|
+
Requires-Dist: pytest; extra == "dev"
|
|
20
|
+
Requires-Dist: pytest-cov; extra == "dev"
|
|
21
|
+
Requires-Dist: sympy; extra == "dev"
|
|
22
|
+
Provides-Extra: docs
|
|
23
|
+
Requires-Dist: sphinx; extra == "docs"
|
|
24
|
+
Requires-Dist: sphinx_rtd_theme; extra == "docs"
|
|
25
|
+
Requires-Dist: sphinxcontrib-bibtex; extra == "docs"
|
|
26
|
+
Requires-Dist: nbsphinx; extra == "docs"
|
|
27
|
+
Requires-Dist: ipykernel; extra == "docs"
|
|
28
|
+
|
|
29
|
+
[](https://www.python.org/downloads/)
|
|
30
|
+
|
|
31
|
+
Welcome to VolFe! an open-source framework for calculating melt-vapour equilibria including silicate melt, carbon, hydrogen, sulfur and noble gases.
|
|
32
|
+
|
|
33
|
+
This work is currently in preparation for publication.
|
|
34
|
+
|
|
35
|
+
For more information, see the ReadTheDocs page (more content will be added soon)!
|
|
36
|
+
|
|
37
|
+
https://volfe.readthedocs.io/en/latest/
|
|
38
|
+
|
|
39
|
+
## Development
|
|
40
|
+
|
|
41
|
+
If you wish to edit VolFe on your own computer, you can install an editable version using
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
pip install -e ".[dev]"
|
|
45
|
+
```
|
|
46
|
+
from inside a virtual environment (use either venv or anaconda). This will import VolFe
|
|
47
|
+
in a format that allows you to run any edits you have made, and all it's requirements,
|
|
48
|
+
alongside useful packages for developing VolFe (pytest, sympy).
|
|
49
|
+
|
|
50
|
+
Check VolFe runs on your machine, and that any edits you make haven't broken existing code by running pytest:
|
|
51
|
+
```
|
|
52
|
+
python -m pytest tests
|
|
53
|
+
```
|
|
54
|
+
or you can use the testing frameworks that come with your IDE (e.g. [VSCode](https://code.visualstudio.com/docs/python/testing), [PyCharm](https://www.jetbrains.com/help/pycharm/testing-your-first-python-application.html)).
|
volfe-0.3/README.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
[](https://www.python.org/downloads/)
|
|
2
|
+
|
|
3
|
+
Welcome to VolFe! an open-source framework for calculating melt-vapour equilibria including silicate melt, carbon, hydrogen, sulfur and noble gases.
|
|
4
|
+
|
|
5
|
+
This work is currently in preparation for publication.
|
|
6
|
+
|
|
7
|
+
For more information, see the ReadTheDocs page (more content will be added soon)!
|
|
8
|
+
|
|
9
|
+
https://volfe.readthedocs.io/en/latest/
|
|
10
|
+
|
|
11
|
+
## Development
|
|
12
|
+
|
|
13
|
+
If you wish to edit VolFe on your own computer, you can install an editable version using
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
pip install -e ".[dev]"
|
|
17
|
+
```
|
|
18
|
+
from inside a virtual environment (use either venv or anaconda). This will import VolFe
|
|
19
|
+
in a format that allows you to run any edits you have made, and all it's requirements,
|
|
20
|
+
alongside useful packages for developing VolFe (pytest, sympy).
|
|
21
|
+
|
|
22
|
+
Check VolFe runs on your machine, and that any edits you make haven't broken existing code by running pytest:
|
|
23
|
+
```
|
|
24
|
+
python -m pytest tests
|
|
25
|
+
```
|
|
26
|
+
or you can use the testing frameworks that come with your IDE (e.g. [VSCode](https://code.visualstudio.com/docs/python/testing), [PyCharm](https://www.jetbrains.com/help/pycharm/testing-your-first-python-application.html)).
|
volfe-0.3/pyproject.toml
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ['setuptools>=40.8.0']
|
|
3
|
+
build-backend = 'setuptools.build_meta'
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "VolFe"
|
|
7
|
+
dynamic = ["version"]
|
|
8
|
+
description = "VolFe"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.7"
|
|
11
|
+
authors = [
|
|
12
|
+
{ name = "Ery Hughes", email = "ery.c.hughes@gmail.com" },
|
|
13
|
+
]
|
|
14
|
+
classifiers = [
|
|
15
|
+
"Operating System :: OS Independent",
|
|
16
|
+
"Programming Language :: Python :: 3",
|
|
17
|
+
]
|
|
18
|
+
dependencies = [
|
|
19
|
+
"datetime",
|
|
20
|
+
"densityx",
|
|
21
|
+
"gmpy2",
|
|
22
|
+
"numpy<2",
|
|
23
|
+
"pandas",
|
|
24
|
+
"PySulfSat",
|
|
25
|
+
"scipy",
|
|
26
|
+
]
|
|
27
|
+
|
|
28
|
+
[project.optional-dependencies]
|
|
29
|
+
dev = [
|
|
30
|
+
"pytest",
|
|
31
|
+
"pytest-cov",
|
|
32
|
+
"sympy",
|
|
33
|
+
]
|
|
34
|
+
docs = [
|
|
35
|
+
"sphinx",
|
|
36
|
+
"sphinx_rtd_theme",
|
|
37
|
+
"sphinxcontrib-bibtex",
|
|
38
|
+
"nbsphinx",
|
|
39
|
+
"ipykernel"
|
|
40
|
+
]
|
|
41
|
+
|
|
42
|
+
[project.urls]
|
|
43
|
+
Homepage = "https://github.com/eryhughes/VolFe"
|
|
44
|
+
|
|
45
|
+
[tool.setuptools.packages.find]
|
|
46
|
+
where = ["src"]
|
|
47
|
+
|
|
48
|
+
[tool.setuptools.dynamic]
|
|
49
|
+
version = {attr = "VolFe.__version__"}
|
|
50
|
+
|
|
51
|
+
[tool.black]
|
|
52
|
+
line-length = 88
|
|
53
|
+
|
|
54
|
+
[tool.pytest.ini_options]
|
|
55
|
+
pythonpath = "."
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
__author__ = "Ery Hughes"
|
|
2
|
+
__version__ = "0.3"
|
|
3
|
+
|
|
4
|
+
# functions for calculating properties of the melt and gas
|
|
5
|
+
from .melt_gas import *
|
|
6
|
+
|
|
7
|
+
# functions for variables that can be model depedent (e.g., solubility constants,
|
|
8
|
+
# fugacity coefficients)
|
|
9
|
+
from .model_dependent_variables import *
|
|
10
|
+
|
|
11
|
+
# functions for calculating equilibrium speciation and concentration between melt ± gas
|
|
12
|
+
# at given P and T
|
|
13
|
+
from .equilibrium_equations import *
|
|
14
|
+
from .differential_equations import *
|
|
15
|
+
|
|
16
|
+
# functions to calculate equilibrium isotope fractionation given melt ± gas composition
|
|
17
|
+
from .batch_calculations import *
|
|
18
|
+
|
|
19
|
+
# functions to run a calculations
|
|
20
|
+
from .calculations import *
|
|
21
|
+
|
|
22
|
+
# functions to run calculations in batch mode
|
|
23
|
+
from .batch_calculations import *
|