Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
d2cd034
Add midplane and x-point poloidal selectors
mikekryjak Mar 17, 2026
82e1e09
Change plot_region to plot_selection
mikekryjak Mar 17, 2026
cbc7dde
Change plot_rz_grid to plot_grid
mikekryjak Apr 1, 2026
2fbe1e6
Test for poloidal selections
mikekryjak Apr 2, 2026
4501c1c
Improve test_slice_poloidal
mikekryjak Apr 2, 2026
8d33843
Add test images to gitignore
mikekryjak Apr 2, 2026
0010a34
Allow plot_selection on user-provided axes
mikekryjak Apr 2, 2026
87cb352
Improve plot_selection style
mikekryjak Apr 2, 2026
5bd7b2a
Add many poloidal selections, make them include inner guards
mikekryjak Apr 2, 2026
df70c2a
Improve test_selectors
mikekryjak Apr 2, 2026
9aaebe3
Make poloidal selectors metadata not function
mikekryjak Apr 9, 2026
428404f
Fix metadata setup, add auto geometry extraction
mikekryjak Apr 9, 2026
6771f55
Rename dl -> dpol, add dtor
mikekryjak Apr 9, 2026
992fb9d
slice_2d: add guards setting, default False
mikekryjak Apr 12, 2026
99238c2
Add more poloidal selectors
mikekryjak Apr 12, 2026
19dd51f
Convert poloidal selections to indices
mikekryjak Apr 17, 2026
76a2c78
Formatting
mikekryjak Apr 20, 2026
c244e72
Merge branch 'main' into more-poloidal-selectors
mikekryjak Apr 20, 2026
09e8bd0
Another merge of main with some fixes
mikekryjak Apr 20, 2026
6352b80
Fix and update test_slice_poloidal tests
mikekryjak Apr 20, 2026
a8f9689
Many selection features
mikekryjak Apr 23, 2026
56a5fc7
Add radial selector
mikekryjak Apr 24, 2026
be0af15
Change "select_poloidal" etc to "selector_..."
mikekryjak Apr 24, 2026
e12ea7e
Add warning on 2D selection of non-contiguous arrays
mikekryjak Apr 24, 2026
5725937
Fixes + tests: selectors for grids with guards removed
mikekryjak Apr 24, 2026
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
40 changes: 40 additions & 0 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Python package

on:
push:
branches-ignore:
- main
pull_request:

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

jobs:
pytest:

runs-on: ubuntu-latest
if: always()

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
sudo apt-get update
sudo apt-get -y install libhdf5-dev
- name: Install package
run: |
pip install -e . --no-binary h5netcdf --no-binary h5py
pip install pytest

- name: Test with pytest
run: |
pytest -vv
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -174,4 +174,8 @@ cython_debug/
.pypirc

# Archives
*.zip
*.zip

# Images generated from tests
/tests/**/*.png
/tests/*.png
12 changes: 6 additions & 6 deletions examples/1d-postprocessing.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": null,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -205,7 +205,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": null,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -269,7 +269,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": null,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -314,7 +314,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": null,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -368,7 +368,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": null,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -424,7 +424,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": null,
"metadata": {},
"outputs": [
{
Expand Down
353 changes: 353 additions & 0 deletions examples/2d-selection.ipynb

Large diffs are not rendered by default.

Loading
Loading