Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
893d64c
restore exception raised when 'b' mode production activity produces n…
May 19, 2022
54aa9c0
check activation calculation completes for all elements
May 19, 2022
a41fdf0
Nicer error message for trans-uranic xray sld failure. Refs #56
Apr 3, 2023
f348335
`scattering` already returns None if not self.has_sld
jfkcooper Jun 23, 2023
ac8fba0
Use older ubuntu to test python 2.7 and 3.6
Jul 6, 2023
8db5aa4
Drop tests for python below 3.8
Jul 6, 2023
db095a5
Allow wt%/vol% in addition to %wt/%vol
Jan 27, 2024
def6e4b
change %wt/%vol to wt%/vol% in docs
Jan 27, 2024
1fa4dea
fix markup warning in docs
Jan 29, 2024
e7704ae
convert fortran code for magnetic ff initialization to python
Feb 13, 2024
5be2a23
Update github tests to latest node.js versions
Feb 13, 2024
75b9c83
Allow fasta strings to be used in mixtures. Fixes #68
Feb 14, 2024
43cfad6
test fasta in mixture
Feb 14, 2024
bf73724
Add README to the end of the user guide. Fixes #29
Feb 14, 2024
e0c8c80
tweak fasta calculations: remove Na from dna/rna and add H+OH sequenc…
Feb 22, 2024
ff6dc7d
Merge branch 'R1.7' into 68-fasta-in-grammar
pkienzle Feb 22, 2024
8999270
Merge pull request #70 from pkienzle/68-fasta-in-grammar
pkienzle Feb 22, 2024
c3a290c
Merge pull request #69 from pkienzle/52-remove-eval-R1.7
pkienzle Feb 22, 2024
6c9c10b
Use dna/rna volumes from Buckin, 1989
Feb 26, 2024
9718f14
Add formulas.count_elements() to sum over isotopes and elements in th…
Feb 26, 2024
99c21df
Allow percentage on final weight/volume. Fixes #38.
Feb 26, 2024
3dd5ab5
Allow unicode subscripts in formulas
Feb 27, 2024
e78b0dc
Improve precision of exp(-U)-exp(-V) in the activation calculation.
Feb 28, 2024
781fd6d
avoid overflow in exp(-U)-exp(-V) activation calculation
Feb 28, 2024
6893953
Fix allowing default tolerance in scattering factor consistency tables
Mar 1, 2024
06a1dde
use double precision for activation table values on load
Mar 2, 2024
9efb346
use with context for loading activation.dat
Mar 2, 2024
a6668ca
Fix table data: Ho-163 halflife, Tm-171 halflife, W-188 halflife hrs,…
Mar 8, 2024
e285c94
Document differences from nist activation spreadsheet; tweak loader; …
Mar 8, 2024
621da3b
Remove numerical precision validation code; it was only needed for al…
Mar 8, 2024
8118463
R1.7.0 with release notes
Mar 8, 2024
cba62ff
tweak release notes
Mar 8, 2024
6eed0bf
Smoke tests for activation calculations
Mar 8, 2024
e5daeff
fix isotope rendering for formulas.pretty()
Mar 22, 2024
f653961
Fix doc build warnings
Mar 22, 2024
cab8773
fix setup so it only finds periodictable
Mar 22, 2024
8e91a68
split changelog from readme so we can include it in the pdf
Mar 22, 2024
bc9a4d1
update formatting for changelog tags
Mar 22, 2024
5ac8e56
R1.7.0 actual
Mar 22, 2024
4ff037b
R 1.7.1
Jul 8, 2024
a6235e4
Initialize the table on set as well as get. Fixes #84.
Sep 25, 2024
116d2b3
Move to pyproject.toml for build system
Sep 25, 2024
fce8e99
Move to pyproject.toml for build system
Oct 1, 2024
5e3a96e
Prepare R2.0.0-pre with new mass tables.
Oct 2, 2024
4b26186
Remove element Z=0 (neutron) from table. Refs #45
Oct 2, 2024
c352dc2
Merge branch 'master' into reconcile
Oct 7, 2024
71c43ee
Pb-208 activation cross section in mbarns rather than barns
Oct 7, 2024
3d43e6c
Test from installed wheel (#91)
pkienzle Oct 7, 2024
6e37976
Reconcile 2.0-pre with master (PR 89)
pkienzle Oct 7, 2024
f3bcebc
use matplotlib.pyplot rather than pylab
Oct 7, 2024
66b543a
remove unused chemicals.py file
Oct 7, 2024
962de3a
Generate api stubs as part of doc build
Oct 7, 2024
c849b4e
pyproject fixup (bad grouping)
Oct 8, 2024
4dc7b35
pyproject fixup (bad grouping)
Oct 8, 2024
210e021
Move Cromer-Mann data out of CXRO directory.
Oct 8, 2024
25d0085
Update xray scattering factors
Oct 8, 2024
48135c6
Use CODATA 2022 for physical constants
Oct 8, 2024
3b5c431
Reinstate neutron as element Z=0, but exclude it from the iterator
Oct 8, 2024
27feec0
update activation abundance function; default table no longer uses NI…
Oct 9, 2024
dc79810
Update with scattering lengths measurements since 2000
Oct 22, 2024
19088de
Tweak formate of periodictable.nsf output
Oct 22, 2024
5f45086
doc formatting fixes
Oct 22, 2024
3bee412
doc formatting fixes
Oct 22, 2024
520cac8
Redo lazy loading of formula, etc. Refs #72.
Oct 23, 2024
d9c5953
Use log-log interpolation for xray f''. Fixes #55.
Oct 23, 2024
789c341
delay type hinting until our oldest supported python allows list[str]
Oct 23, 2024
ca94dbd
Tweak lazy loading implementation. Refs #72.
Oct 24, 2024
01a9573
reorder activation.dat so that we can use table headers more easily w…
Oct 24, 2024
2bc1ffc
Use more stable algorithm to estimate decay time.
Oct 24, 2024
c173555
Add docs from activation spreadsheet
Oct 25, 2024
b689b8b
drop Python2 crumbs 1/2
a-detiste Nov 27, 2024
91af03a
remove more Python2 syntax
a-detiste Nov 27, 2024
a7e11f8
replace custom @require_keywords decorator with modern syntax
a-detiste Nov 27, 2024
bc62c71
Fix repo url in project description
Dec 3, 2024
ea60e46
improve internal docs for activation calculation
Dec 3, 2024
fd6f3c1
and note to refactor fasta imports
Dec 3, 2024
4ffc725
revert delayed loading restructuring; attributes need doc strings.
Dec 3, 2024
04ba8e0
Add 191Ir and 193Ir b_c values
Dec 3, 2024
3a1cbf2
Remove -pre tag from version
Dec 3, 2024
134aed2
Merge pull request #97 from a-detiste/R2.0-pre
pkienzle Dec 3, 2024
9ed5f54
add trusted publishing to pypi on release
bmaranville Dec 4, 2024
de0b9e7
tweak activation docs
Dec 5, 2024
2344d62
Merge branch 'R2.0-pre' of github.com:pkienzle/periodictable into R2.…
Dec 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 72 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,44 @@ on:
branches: [ master ]

jobs:
test:
build-wheel:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Build the wheel
run: |
python -m pip install build
python -m build

- name: Upload wheel
uses: actions/upload-artifact@v4
with:
name: wheel
path: dist/*.whl

- name: Run the tests
run: |
python -m pip install numpy pyparsing pytest pytest-cov
pytest -v

- name: Build the docs
run: |
python -m pip install matplotlib sphinx
python -m pip install dist/periodictable*.whl
make -j 4 -C doc/sphinx SPHINXOPTS="-W --keep-going" html

# Test the wheel on different platforms
test:
runs-on: ${{ matrix.cfg.os }}
needs: build-wheel

strategy:
matrix:
cfg:
Expand All @@ -19,6 +54,7 @@ jobs:
- { os: ubuntu-latest, py: 3.11, doc: 1 }
- { os: windows-latest, py: 3.11 }
- { os: macos-latest, py: 3.11 }
fail-fast: false

steps:
- uses: actions/checkout@v4
Expand All @@ -28,18 +64,43 @@ jobs:
with:
python-version: ${{ matrix.cfg.py }}

- name: Download the wheel
uses: actions/download-artifact@v4
with:
name: wheel
path: dist

- name: Install the wheel
run: python -m pip install dist/periodictable*.whl
shell: bash

- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install wheel setuptools
python -m pip install numpy scipy matplotlib pytest pytest-cov
python -m pip install pytest pytest-cov

- name: Test with pytest
# Change into the test directory to test the wheel so that the
# source directory is not on the path. Full tests with coverage are
# run before building the wheel.
- name: Test wheel with pytest
run: |
pytest -v
cd test
pytest -v --pyargs --import-mode=append periodictable . ../doc/sphinx/guide

- name: check that the docs build (linux only)
if: matrix.cfg.doc == 1
run: |
python -m pip install sphinx
make -j 4 -C doc/sphinx SPHINXOPTS="-W --keep-going" html
# Upload wheel to PyPI only when a tag is pushed, and its name begins with 'v'
upload-to-pypi:
runs-on: ubuntu-latest
environment: release
needs: test
if: startsWith(github.ref, 'refs/tags/v')
permissions:
id-token: write
steps:

- name: Download wheel
uses: actions/download-artifact@v4
with:
name: wheel
path: dist

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Loading
Loading