Skip to content

Commit

Permalink
Replace namedtuple usage with polars DataFrames for jplt, floers25 da…
Browse files Browse the repository at this point in the history
…ta for better performance (#11)

Round-off level differences in JPLT level energies.
  • Loading branch information
lukeshingles authored Dec 18, 2024
1 parent d7770ca commit a452c97
Show file tree
Hide file tree
Showing 19 changed files with 313 additions and 363 deletions.
42 changes: 12 additions & 30 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,36 +20,30 @@ jobs:

- name: Set up Python
uses: actions/setup-python@v5
with:
cache: pip

- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel setuptools mypy
python -m pip install -r requirements.txt

- name: Install artisatomic
run: |
python -m pip install -e .
- name: Lint with mypy
run: |
mypy --install-types --non-interactive
python3 -m pip install uv
python3 -m uv pip install --editable .
- name: Run Ruff
if: always()
uses: astral-sh/ruff-action@v2
with:
version: 0.8.1
version: 0.8.3
args: check --exit-non-zero-on-fix --no-fix

- name: Run Ruff Format
if: always()
uses: astral-sh/ruff-action@v2
with:
version: 0.8.1
version: 0.8.3
args: format --check

- name: Lint with mypy
run: |
mypy --install-types --non-interactive
pytest:
runs-on: macos-15
steps:
Expand All @@ -60,17 +54,11 @@ jobs:

- name: Set up Python
uses: actions/setup-python@v5
with:
cache: pip

- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel setuptools
python -m pip install -r requirements.txt

- name: Install artisatomic
run: |
python -m pip install -e .
python3 -m pip install uv
python3 -m uv pip install --compile-bytecode --editable .
- name: Cache CMFGEN atomic data
uses: actions/cache@v4
Expand Down Expand Up @@ -104,17 +92,11 @@ jobs:

- name: Set up Python
uses: actions/setup-python@v5
with:
cache: pip

- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel setuptools
python -m pip install -r requirements.txt

- name: Install artisatomic
run: |
python -m pip install -e .
python3 -m pip install uv
python3 -m uv pip install --compile-bytecode --editable .
- name: Cache CMFGEN atomic data
uses: actions/cache@v4
Expand Down
Loading

0 comments on commit a452c97

Please sign in to comment.