Skip to content

Commit

Permalink
fix docs building
Browse files Browse the repository at this point in the history
  • Loading branch information
rettigl committed Dec 20, 2024
1 parent 63ef4cc commit 24a62f7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ jobs:
cp -r $GITHUB_WORKSPACE/tutorial $GITHUB_WORKSPACE/docs/
mkdir $GITHUB_WORKSPACE/docs/tests
cp -r $GITHUB_WORKSPACE/tests/data $GITHUB_WORKSPACE/docs/tests/
mkdir -p $GITHUB_WORKSPACE/docs/src/specsscan
cp -r $GITHUB_WORKSPACE/src/specsscan/config $GITHUB_WORKSPACE/docs/src/specsscan
- name: Change version for develop build
if: startsWith(github.ref, 'refs/heads/') && github.ref != 'refs/heads/main'
Expand Down
2 changes: 1 addition & 1 deletion src/specsanalyzer/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def get_damatrix_from_calib2d(
dims = ["Position", "Ekin"]

else:
raise ValueError(f"Unrecognized lens mode '{lens_mode}")
raise ValueError(f"Unrecognized lens mode '{lens_mode}'")

return a_inner, da_matrix, retardation_ratio, source, dims

Expand Down
2 changes: 1 addition & 1 deletion src/specsscan/config/example_config_FHI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ nexus:
# the NeXus definition to use
definition: "NXmpes_arpes"
# additional input files, e.g. config and ELN files
input_files: ["../specsscan/config/NXmpes_arpes_config.json"]
input_files: ["../src/specsscan/config/NXmpes_arpes_config.json"]

# parameters for the SpecsAnalyzer
spa_params:
Expand Down
2 changes: 1 addition & 1 deletion tutorial/3_specsscan_conversion_to_NeXus.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
"outputs": [],
"source": [
"config = {\"nexus\":{\"definition\": \"NXmpes_arpes\"}, \"spa_params\":{\"crop\":True, \"ek_range_min\":0.07597844332538181, \"ek_range_max\":0.9117413199045858, \"ang_range_min\":0.16453159041394336, \"ang_range_max\":0.8840087145969499,}}\n",
"sps = SpecsScan(config=config, user_config=\"../specsscan/config/example_config_FHI.yaml\")\n",
"sps = SpecsScan(config=config, user_config=\"../src/specsscan/config/example_config_FHI.yaml\")\n",
"path = \"../tests/data/\" # Path to the test data set"
]
},
Expand Down

0 comments on commit 24a62f7

Please sign in to comment.