fwl-aragog 0.2.8a4__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.
Files changed (61) hide show
  1. fwl_aragog-0.2.8a4/.github/workflows/publish.yaml +30 -0
  2. fwl_aragog-0.2.8a4/.github/workflows/python-package.yml +48 -0
  3. fwl_aragog-0.2.8a4/.gitignore +163 -0
  4. fwl_aragog-0.2.8a4/.readthedocs.yaml +21 -0
  5. fwl_aragog-0.2.8a4/.vscode/settings.json +29 -0
  6. fwl_aragog-0.2.8a4/LICENSE +674 -0
  7. fwl_aragog-0.2.8a4/PKG-INFO +98 -0
  8. fwl_aragog-0.2.8a4/README.md +66 -0
  9. fwl_aragog-0.2.8a4/aragog/__init__.py +111 -0
  10. fwl_aragog-0.2.8a4/aragog/cfg/__init__.py +0 -0
  11. fwl_aragog-0.2.8a4/aragog/cfg/abe_liquid.cfg +133 -0
  12. fwl_aragog-0.2.8a4/aragog/cfg/abe_mixed.cfg +133 -0
  13. fwl_aragog-0.2.8a4/aragog/cfg/abe_mixed_init.cfg +130 -0
  14. fwl_aragog-0.2.8a4/aragog/cfg/abe_mixed_lookup.cfg +134 -0
  15. fwl_aragog-0.2.8a4/aragog/cfg/abe_solid.cfg +133 -0
  16. fwl_aragog-0.2.8a4/aragog/cli.py +36 -0
  17. fwl_aragog-0.2.8a4/aragog/core.py +297 -0
  18. fwl_aragog-0.2.8a4/aragog/data.py +159 -0
  19. fwl_aragog-0.2.8a4/aragog/interfaces.py +155 -0
  20. fwl_aragog-0.2.8a4/aragog/mesh.py +803 -0
  21. fwl_aragog-0.2.8a4/aragog/output.py +535 -0
  22. fwl_aragog-0.2.8a4/aragog/parser.py +509 -0
  23. fwl_aragog-0.2.8a4/aragog/phase.py +786 -0
  24. fwl_aragog-0.2.8a4/aragog/solver.py +662 -0
  25. fwl_aragog-0.2.8a4/aragog/utilities.py +117 -0
  26. fwl_aragog-0.2.8a4/data/README.md +9 -0
  27. fwl_aragog-0.2.8a4/data/test/density_2d_lookup.dat +9 -0
  28. fwl_aragog-0.2.8a4/data/test/eos_test.dat +99 -0
  29. fwl_aragog-0.2.8a4/data/test/liquidus_1d_lookup.dat +3 -0
  30. fwl_aragog-0.2.8a4/data/test/solidus_1d_lookup.dat +3 -0
  31. fwl_aragog-0.2.8a4/docs/Makefile +20 -0
  32. fwl_aragog-0.2.8a4/docs/about.rst +19 -0
  33. fwl_aragog-0.2.8a4/docs/bibliography.rst +16 -0
  34. fwl_aragog-0.2.8a4/docs/conf.py +92 -0
  35. fwl_aragog-0.2.8a4/docs/index.rst +35 -0
  36. fwl_aragog-0.2.8a4/docs/installation.rst +66 -0
  37. fwl_aragog-0.2.8a4/docs/make.bat +35 -0
  38. fwl_aragog-0.2.8a4/docs/notes/main.tex +437 -0
  39. fwl_aragog-0.2.8a4/docs/notes/refs.bib +87 -0
  40. fwl_aragog-0.2.8a4/docs/output.rst +2 -0
  41. fwl_aragog-0.2.8a4/docs/publications.rst +10 -0
  42. fwl_aragog-0.2.8a4/docs/refs.bib +136 -0
  43. fwl_aragog-0.2.8a4/docs/source/aragog.rst +77 -0
  44. fwl_aragog-0.2.8a4/docs/source/modules.rst +7 -0
  45. fwl_aragog-0.2.8a4/docs/troubleshooting.rst +4 -0
  46. fwl_aragog-0.2.8a4/docs/tutorial.rst +20 -0
  47. fwl_aragog-0.2.8a4/notebooks/__init__.py +0 -0
  48. fwl_aragog-0.2.8a4/pylintrc +399 -0
  49. fwl_aragog-0.2.8a4/pyproject.toml +54 -0
  50. fwl_aragog-0.2.8a4/pyproject_old.toml +47 -0
  51. fwl_aragog-0.2.8a4/scripts/convert_datatables.py +541 -0
  52. fwl_aragog-0.2.8a4/tests/__init__.py +0 -0
  53. fwl_aragog-0.2.8a4/tests/conftest.py +57 -0
  54. fwl_aragog-0.2.8a4/tests/reference/__init__.py +0 -0
  55. fwl_aragog-0.2.8a4/tests/reference/abe_liquid_no_heating.dat +100 -0
  56. fwl_aragog-0.2.8a4/tests/reference/abe_mixed.dat +50 -0
  57. fwl_aragog-0.2.8a4/tests/reference/abe_mixed_init.dat +49 -0
  58. fwl_aragog-0.2.8a4/tests/reference/abe_solid_no_heating.dat +100 -0
  59. fwl_aragog-0.2.8a4/tests/reference/abe_solid_with_heating.dat +100 -0
  60. fwl_aragog-0.2.8a4/tests/test_abe.py +140 -0
  61. fwl_aragog-0.2.8a4/tests/test_phase.py +196 -0
@@ -0,0 +1,30 @@
1
+ name: Publish on PyPI
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+ workflow_dispatch:
7
+
8
+ jobs:
9
+ deploy:
10
+ runs-on: ubuntu-latest
11
+ environment: release
12
+ permissions:
13
+ # IMPORTANT: this permission is mandatory for trusted publishing
14
+ id-token: write
15
+
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+ - uses: actions/setup-python@v4
19
+ with:
20
+ python-version: "3.12"
21
+
22
+ - name: Install Poetry
23
+ uses: snok/install-poetry@v1
24
+
25
+ - name: Install dependencies
26
+ run: poetry build
27
+
28
+ - name: Publish package
29
+ uses: pypa/gh-action-pypi-publish@release/v1
30
+
@@ -0,0 +1,48 @@
1
+ # This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2
+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3
+
4
+ name: Python package
5
+
6
+ on:
7
+ push:
8
+ branches:
9
+ - main
10
+ pull_request:
11
+ branches:
12
+ - main
13
+ types:
14
+ - opened
15
+ - reopened
16
+ - synchronize
17
+ - ready_for_review
18
+ workflow_dispatch:
19
+
20
+ jobs:
21
+ build:
22
+
23
+ runs-on: ubuntu-latest
24
+ strategy:
25
+ fail-fast: false
26
+ matrix:
27
+ python-version: ["3.10", "3.11", "3.12","3.13"]
28
+
29
+ steps:
30
+ - uses: actions/checkout@v3
31
+ - name: Set up Python ${{ matrix.python-version }}
32
+ uses: actions/setup-python@v3
33
+ with:
34
+ python-version: ${{ matrix.python-version }}
35
+ - name: Install dependencies
36
+ run: |
37
+ python -m pip install --upgrade pip
38
+ python -m pip install flake8 pytest
39
+ if [ -f pyproject.toml ]; then pip install .; fi
40
+ - name: Lint with flake8
41
+ run: |
42
+ # stop the build if there are Python syntax errors or undefined names
43
+ flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
44
+ # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
45
+ flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
46
+ - name: Test with pytest
47
+ run: |
48
+ pytest
@@ -0,0 +1,163 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py,cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ #Pipfile.lock
96
+
97
+ # poetry
98
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
102
+ #poetry.lock
103
+
104
+ # pdm
105
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
106
+ #pdm.lock
107
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
108
+ # in version control.
109
+ # https://pdm.fming.dev/#use-with-ide
110
+ .pdm.toml
111
+
112
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
113
+ __pypackages__/
114
+
115
+ # Celery stuff
116
+ celerybeat-schedule
117
+ celerybeat.pid
118
+
119
+ # SageMath parsed files
120
+ *.sage.py
121
+
122
+ # Environments
123
+ .env
124
+ .venv
125
+ env/
126
+ venv/
127
+ ENV/
128
+ env.bak/
129
+ venv.bak/
130
+
131
+ # Spyder project settings
132
+ .spyderproject
133
+ .spyproject
134
+
135
+ # Rope project settings
136
+ .ropeproject
137
+
138
+ # mkdocs documentation
139
+ /site
140
+
141
+ # mypy
142
+ .mypy_cache/
143
+ .dmypy.json
144
+ dmypy.json
145
+
146
+ # Pyre type checker
147
+ .pyre/
148
+
149
+ # pytype static type analyzer
150
+ .pytype/
151
+
152
+ # Cython debug symbols
153
+ cython_debug/
154
+
155
+ # PyCharm
156
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
157
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
158
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
159
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
160
+ #.idea/
161
+
162
+ .DS_Store
163
+ poetry.lock
@@ -0,0 +1,21 @@
1
+ version: 2
2
+
3
+ build:
4
+ os: "ubuntu-22.04"
5
+ tools:
6
+ python: "3.10"
7
+
8
+ # Build from the docs/ directory with Sphinx
9
+ sphinx:
10
+ configuration: docs/conf.py
11
+
12
+ # Explicitly set the version of Python and its requirements
13
+ python:
14
+ install:
15
+ - method: pip
16
+ path: .
17
+ extra_requirements:
18
+ - docs
19
+
20
+ formats:
21
+ - pdf
@@ -0,0 +1,29 @@
1
+ {
2
+ "cSpell.diagnosticLevel": "Hint",
3
+ "python.analysis.diagnosticMode": "workspace",
4
+ "python.analysis.typeCheckingMode": "basic",
5
+ "editor.formatOnSave": true,
6
+ "[python]": {
7
+ "editor.defaultFormatter": "ms-python.black-formatter",
8
+ "editor.formatOnSave": true,
9
+ "editor.codeActionsOnSave": {
10
+ "source.organizeImports": "explicit"
11
+ }
12
+ },
13
+ "isort.args": [
14
+ "--profile",
15
+ "black"
16
+ ],
17
+ "editor.rulers": [
18
+ 99
19
+ ],
20
+ "black-formatter.args": [
21
+ "--line-length",
22
+ "99"
23
+ ],
24
+ "python.testing.pytestArgs": [
25
+ "tests"
26
+ ],
27
+ "python.testing.unittestEnabled": false,
28
+ "python.testing.pytestEnabled": true,
29
+ }