Skip to content

Commit

Permalink
Use central pynx mechanism for tests (#18)
Browse files Browse the repository at this point in the history
* Use central pynx mechanism for tests

* Update example file

* Add example regeneration script

* Update file to newest definitions

* Track nxs files with lfs

* Readd example file

* Enable lfs in workflow
  • Loading branch information
domna authored Jul 5, 2024
1 parent d92297c commit dd63346
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 7,269 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.nxs filter=lfs diff=lfs merge=lfs -text
1 change: 1 addition & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
with:
fetch-depth: 0
submodules: recursive
lfs: true
- name: Set up Python ${{ matrix.python_version }}
uses: actions/setup-python@v4
with:
Expand Down
13 changes: 13 additions & 0 deletions scripts/regenerate_examples.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash
READER=mpes
NXDL=NXmpes

function update_mpes_example {
echo "Update mpes example"
dataconverter xarray_saved_small_calibration.h5 config_file.json --reader $READER --nxdl $NXDL --output example.nxs
}

project_dir=$(dirname $(dirname $(realpath $0)))
cd $project_dir/tests/data

update_mpes_example
Loading

0 comments on commit dd63346

Please sign in to comment.