+
Python package to read McStas data and export as python objects in different formats or as other files.
-
+
:::{include} user-guide/installation.md
:heading-offset: 1
@@ -40,8 +40,8 @@
## Get in touch
-- If you have questions that are not answered by these documentation pages, ask on [discussions](https://github.com/mccode-dev/McStasToX/discussions). Please include a self-contained reproducible example if possible.
-- Report bugs (including unclear, missing, or wrong documentation!), suggest features or view the source code [on GitHub](https://github.com/mccode-dev/McStasToX).
+- If you have questions that are not answered by these documentation pages, ask on [discussions](https://github.com/mccode-dev/mcstastox/discussions). Please include a self-contained reproducible example if possible.
+- Report bugs (including unclear, missing, or wrong documentation!), suggest features or view the source code [on GitHub](https://github.com/mccode-dev/mcstastox).
```{toctree}
---
diff --git a/docs/user-guide/overall_demo.ipynb b/docs/user-guide/overall_demo.ipynb
index 6b4ceaa..c260722 100644
--- a/docs/user-guide/overall_demo.ipynb
+++ b/docs/user-guide/overall_demo.ipynb
@@ -15,7 +15,7 @@
"metadata": {},
"outputs": [],
"source": [
- "from read_example import make_instrument, plot"
+ "%matplotlib widget"
]
},
{
@@ -24,6 +24,16 @@
"id": "2",
"metadata": {},
"outputs": [],
+ "source": [
+ "from read_example import make_instrument, plot"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "id": "3",
+ "metadata": {},
+ "outputs": [],
"source": [
"instr = make_instrument()\n",
"instr.show_parameters()"
@@ -32,7 +42,7 @@
{
"cell_type": "code",
"execution_count": null,
- "id": "3",
+ "id": "4",
"metadata": {},
"outputs": [],
"source": [
@@ -43,7 +53,7 @@
{
"cell_type": "code",
"execution_count": null,
- "id": "4",
+ "id": "5",
"metadata": {},
"outputs": [],
"source": [
@@ -52,7 +62,7 @@
},
{
"cell_type": "markdown",
- "id": "5",
+ "id": "6",
"metadata": {},
"source": [
"### Run simulation"
@@ -61,7 +71,7 @@
{
"cell_type": "code",
"execution_count": null,
- "id": "6",
+ "id": "7",
"metadata": {},
"outputs": [],
"source": [
@@ -71,7 +81,7 @@
{
"cell_type": "code",
"execution_count": null,
- "id": "7",
+ "id": "8",
"metadata": {},
"outputs": [],
"source": [
@@ -80,7 +90,7 @@
},
{
"cell_type": "markdown",
- "id": "8",
+ "id": "9",
"metadata": {},
"source": [
"### Histogram data to display"
@@ -89,7 +99,7 @@
{
"cell_type": "code",
"execution_count": null,
- "id": "9",
+ "id": "10",
"metadata": {},
"outputs": [],
"source": [
@@ -99,7 +109,7 @@
{
"cell_type": "code",
"execution_count": null,
- "id": "10",
+ "id": "11",
"metadata": {},
"outputs": [],
"source": [
@@ -110,7 +120,7 @@
{
"cell_type": "code",
"execution_count": null,
- "id": "11",
+ "id": "12",
"metadata": {},
"outputs": [],
"source": [
@@ -118,16 +128,6 @@
"print(file_path)"
]
},
- {
- "cell_type": "code",
- "execution_count": null,
- "id": "12",
- "metadata": {},
- "outputs": [],
- "source": [
- "%matplotlib widget"
- ]
- },
{
"cell_type": "markdown",
"id": "13",
diff --git a/docs/user-guide/scipp_demo.ipynb b/docs/user-guide/scipp_demo.ipynb
index 2752c3f..bb1ed9a 100644
--- a/docs/user-guide/scipp_demo.ipynb
+++ b/docs/user-guide/scipp_demo.ipynb
@@ -15,7 +15,7 @@
"metadata": {},
"outputs": [],
"source": [
- "from read_example import make_instrument"
+ "%matplotlib widget"
]
},
{
@@ -24,6 +24,16 @@
"id": "2",
"metadata": {},
"outputs": [],
+ "source": [
+ "from read_example import make_instrument"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "id": "3",
+ "metadata": {},
+ "outputs": [],
"source": [
"instr = make_instrument()\n",
"instr.show_parameters()"
@@ -32,7 +42,7 @@
{
"cell_type": "code",
"execution_count": null,
- "id": "3",
+ "id": "4",
"metadata": {},
"outputs": [],
"source": [
@@ -43,7 +53,7 @@
{
"cell_type": "code",
"execution_count": null,
- "id": "4",
+ "id": "5",
"metadata": {},
"outputs": [],
"source": [
@@ -52,7 +62,7 @@
},
{
"cell_type": "markdown",
- "id": "5",
+ "id": "6",
"metadata": {},
"source": [
"### Run simulation"
@@ -61,7 +71,7 @@
{
"cell_type": "code",
"execution_count": null,
- "id": "6",
+ "id": "7",
"metadata": {},
"outputs": [],
"source": [
@@ -71,7 +81,7 @@
{
"cell_type": "code",
"execution_count": null,
- "id": "7",
+ "id": "8",
"metadata": {},
"outputs": [],
"source": [
@@ -80,7 +90,7 @@
},
{
"cell_type": "markdown",
- "id": "8",
+ "id": "9",
"metadata": {},
"source": [
"### Histogram data to display"
@@ -89,7 +99,7 @@
{
"cell_type": "code",
"execution_count": null,
- "id": "9",
+ "id": "10",
"metadata": {},
"outputs": [],
"source": [
@@ -99,7 +109,7 @@
{
"cell_type": "code",
"execution_count": null,
- "id": "10",
+ "id": "11",
"metadata": {},
"outputs": [],
"source": [
@@ -110,7 +120,7 @@
{
"cell_type": "code",
"execution_count": null,
- "id": "11",
+ "id": "12",
"metadata": {},
"outputs": [],
"source": [
@@ -118,16 +128,6 @@
"print(file_path)"
]
},
- {
- "cell_type": "code",
- "execution_count": null,
- "id": "12",
- "metadata": {},
- "outputs": [],
- "source": [
- "%matplotlib widget"
- ]
- },
{
"cell_type": "markdown",
"id": "13",
@@ -385,7 +385,7 @@
],
"metadata": {
"kernelspec": {
- "display_name": "Python 3 (ipykernel)",
+ "display_name": "img-dev-310",
"language": "python",
"name": "python3"
},
@@ -399,7 +399,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.12.9"
+ "version": "3.10.14"
}
},
"nbformat": 4,
diff --git a/pyproject.toml b/pyproject.toml
index 7563a3f..afdcd52 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[build-system]
requires = [
- "setuptools>=68",
+ "setuptools>=77",
"setuptools_scm[toml]>=8.0",
]
build-backend = "setuptools.build_meta"
@@ -13,7 +13,6 @@ license = { file = "LICENSE" }
readme = "README.md"
classifiers = [
"Intended Audience :: Science/Research",
- "License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
@@ -30,8 +29,8 @@ requires-python = ">=3.10"
# Run 'tox -e deps' after making changes here. This will update requirement files.
# Make sure to list one dependency per line.
dependencies = [
- "mcstasscript",
- "scipp",
+ "h5py",
+ "numpy",
]
dynamic = ["version"]
@@ -46,9 +45,9 @@ test = [
]
[project.urls]
-"Bug Tracker" = "https://github.com/mccode-dev/McStasToX/issues"
-"Documentation" = "https://mccode-dev.github.io/McStasToX"
-"Source" = "https://github.com/mccode-dev/McStasToX"
+"Bug Tracker" = "https://github.com/mccode-dev/mcstastox/issues"
+"Documentation" = "https://mccode-dev.github.io/mcstastox"
+"Source" = "https://github.com/mccode-dev/mcstastox"
[tool.setuptools_scm]
@@ -83,7 +82,7 @@ ignore = [
"C408"
]
fixable = ["B010", "I001", "PT001", "RUF022"]
-isort.known-first-party = ["McStasToX"]
+isort.known-first-party = ["mcstastox"]
pydocstyle.convention = "numpy"
[tool.ruff.lint.per-file-ignores]
diff --git a/requirements/base.in b/requirements/base.in
index f0dde74..915a658 100644
--- a/requirements/base.in
+++ b/requirements/base.in
@@ -1,6 +1,8 @@
# Anything above "--- END OF CUSTOM SECTION ---"
# will not be touched by ``make_base.py``
+scipp
+mcstasscript
# --- END OF CUSTOM SECTION ---
# The following was generated by 'tox -e deps', DO NOT EDIT MANUALLY!
-mcstasscript
-scipp
+h5py
+numpy
diff --git a/requirements/base.txt b/requirements/base.txt
index 94c7d6c..1d9201b 100644
--- a/requirements/base.txt
+++ b/requirements/base.txt
@@ -1,4 +1,4 @@
-# SHA1:314202a05208dca52f068076653a1bd745d59337
+# SHA1:71599ba43d91f48fe12c77a04387fed02d7e5c52
#
# This file is autogenerated by pip-compile-multi
# To update, run:
@@ -9,7 +9,7 @@ asttokens==3.0.0
# via stack-data
comm==0.2.2
# via ipywidgets
-contourpy==1.3.1
+contourpy==1.3.2
# via matplotlib
cycler==0.12.1
# via matplotlib
@@ -28,10 +28,12 @@ flexparser==0.4
fonttools==4.57.0
# via matplotlib
h5py==3.13.0
- # via libpyvinyl
-ipython==8.35.0
+ # via
+ # -r base.in
+ # libpyvinyl
+ipython==8.36.0
# via ipywidgets
-ipywidgets==8.1.5
+ipywidgets==8.1.7
# via mcstasscript
jedi==0.19.2
# via ipython
@@ -39,7 +41,7 @@ json-tricks==3.17.3
# via libpyvinyl
jsons==1.6.3
# via libpyvinyl
-jupyterlab-widgets==3.0.13
+jupyterlab-widgets==3.0.15
# via ipywidgets
kiwisolver==1.4.8
# via matplotlib
@@ -51,8 +53,9 @@ matplotlib-inline==0.1.7
# via ipython
mcstasscript==0.0.74
# via -r base.in
-numpy==2.2.4
+numpy==2.2.5
# via
+ # -r base.in
# contourpy
# h5py
# libpyvinyl
@@ -60,19 +63,19 @@ numpy==2.2.4
# mcstasscript
# scipp
# scipy
-packaging==24.2
+packaging==25.0
# via matplotlib
parso==0.8.4
# via jedi
pexpect==4.9.0
# via ipython
-pillow==11.1.0
+pillow==11.2.1
# via matplotlib
pint==0.24.4
# via libpyvinyl
platformdirs==4.3.7
# via pint
-prompt-toolkit==3.0.50
+prompt-toolkit==3.0.51
# via ipython
ptyprocess==0.7.0
# via pexpect
@@ -86,7 +89,7 @@ python-dateutil==2.9.0.post0
# via matplotlib
pyyaml==6.0.2
# via mcstasscript
-scipp==25.4.0
+scipp==25.5.0
# via -r base.in
scipy==1.15.2
# via libpyvinyl
@@ -100,7 +103,7 @@ traitlets==5.14.3
# ipython
# ipywidgets
# matplotlib-inline
-typing-extensions==4.13.1
+typing-extensions==4.13.2
# via
# flexcache
# flexparser
@@ -110,5 +113,5 @@ typish==1.9.3
# via jsons
wcwidth==0.2.13
# via prompt-toolkit
-widgetsnbextension==4.0.13
+widgetsnbextension==4.0.14
# via ipywidgets
diff --git a/requirements/basetest.txt b/requirements/basetest.txt
index 76aebec..2b2b59b 100644
--- a/requirements/basetest.txt
+++ b/requirements/basetest.txt
@@ -9,7 +9,7 @@ exceptiongroup==1.2.2
# via pytest
iniconfig==2.1.0
# via pytest
-packaging==24.2
+packaging==25.0
# via pytest
pluggy==1.5.0
# via pytest
diff --git a/requirements/ci.txt b/requirements/ci.txt
index 176b512..27027cd 100644
--- a/requirements/ci.txt
+++ b/requirements/ci.txt
@@ -7,11 +7,11 @@
#
cachetools==5.5.2
# via tox
-certifi==2025.1.31
+certifi==2025.4.26
# via requests
chardet==5.2.0
# via tox
-charset-normalizer==3.4.1
+charset-normalizer==3.4.2
# via requests
colorama==0.4.6
# via tox
@@ -27,7 +27,7 @@ gitpython==3.1.44
# via -r ci.in
idna==3.10
# via requests
-packaging==24.2
+packaging==25.0
# via
# -r ci.in
# pyproject-api
@@ -50,9 +50,9 @@ tomli==2.2.1
# tox
tox==4.25.0
# via -r ci.in
-typing-extensions==4.13.1
+typing-extensions==4.13.2
# via tox
-urllib3==2.3.0
+urllib3==2.4.0
# via requests
-virtualenv==20.30.0
+virtualenv==20.31.1
# via tox
diff --git a/requirements/dev.txt b/requirements/dev.txt
index 6206512..e53c2f6 100644
--- a/requirements/dev.txt
+++ b/requirements/dev.txt
@@ -32,7 +32,7 @@ click==8.1.8
# via
# pip-compile-multi
# pip-tools
-copier==9.6.0
+copier==9.7.1
# via -r dev.in
dunamai==1.23.1
# via copier
@@ -40,9 +40,9 @@ fqdn==1.5.1
# via jsonschema
funcy==2.0
# via copier
-h11==0.14.0
+h11==0.16.0
# via httpcore
-httpcore==1.0.7
+httpcore==1.0.9
# via httpx
httpx==0.28.1
# via jupyterlab
@@ -71,7 +71,7 @@ jupyter-server==2.15.0
# notebook-shim
jupyter-server-terminals==0.5.3
# via jupyter-server
-jupyterlab==4.4.0
+jupyterlab==4.4.1
# via -r dev.in
jupyterlab-server==2.27.3
# via jupyterlab
@@ -81,7 +81,7 @@ overrides==7.7.0
# via jupyter-server
pathspec==0.12.1
# via copier
-pip-compile-multi==2.8.0
+pip-compile-multi==3.0.0
# via -r dev.in
pip-tools==7.4.1
# via pip-compile-multi
@@ -91,9 +91,9 @@ prometheus-client==0.21.1
# via jupyter-server
pycparser==2.22
# via cffi
-pydantic==2.11.3
+pydantic==2.11.4
# via copier
-pydantic-core==2.33.1
+pydantic-core==2.33.2
# via pydantic
python-json-logger==3.3.0
# via jupyter-events
diff --git a/requirements/docs.in b/requirements/docs.in
index eab8dd6..56b1460 100644
--- a/requirements/docs.in
+++ b/requirements/docs.in
@@ -9,3 +9,5 @@ sphinx-autodoc-typehints
sphinx-copybutton
sphinx-design
matplotlib
+plopp[all]
+pythreejs # For instrument view.
diff --git a/requirements/docs.txt b/requirements/docs.txt
index b31079c..eba42fd 100644
--- a/requirements/docs.txt
+++ b/requirements/docs.txt
@@ -1,4 +1,4 @@
-# SHA1:01fdbe8007e8ae6ff26b26ba094ad9e59f660179
+# SHA1:cae1ff02569954d20815f31620bae3df07ce2023
#
# This file is autogenerated by pip-compile-multi
# To update, run:
@@ -20,17 +20,17 @@ babel==2.17.0
# via
# pydata-sphinx-theme
# sphinx
-beautifulsoup4==4.13.3
+beautifulsoup4==4.13.4
# via
# nbconvert
# pydata-sphinx-theme
bleach[css]==6.2.0
# via nbconvert
-certifi==2025.1.31
+certifi==2025.4.26
# via requests
-charset-normalizer==3.4.1
+charset-normalizer==3.4.2
# via requests
-debugpy==1.8.13
+debugpy==1.8.14
# via ipykernel
defusedxml==0.7.1
# via nbconvert
@@ -42,12 +42,18 @@ docutils==0.21.2
# sphinx
fastjsonschema==2.21.1
# via nbformat
+graphviz==0.20.3
+ # via plopp
idna==3.10
# via requests
imagesize==1.4.1
# via sphinx
+ipydatawidgets==4.3.5
+ # via pythreejs
ipykernel==6.29.5
# via -r docs.in
+ipympl==0.9.7
+ # via plopp
jinja2==3.1.6
# via
# myst-parser
@@ -56,7 +62,7 @@ jinja2==3.1.6
# sphinx
jsonschema==4.23.0
# via nbformat
-jsonschema-specifications==2024.10.1
+jsonschema-specifications==2025.4.1
# via jsonschema
jupyter-client==8.6.3
# via
@@ -71,6 +77,8 @@ jupyter-core==5.7.2
# nbformat
jupyterlab-pygments==0.3.0
# via nbconvert
+lazy-loader==0.4
+ # via plopp
markdown-it-py==3.0.0
# via
# mdit-py-plugins
@@ -85,6 +93,8 @@ mdurl==0.1.2
# via markdown-it-py
mistune==3.1.3
# via nbconvert
+mpltoolbox==25.4.0
+ # via plopp
myst-parser==4.0.1
# via -r docs.in
nbclient==0.10.2
@@ -102,10 +112,16 @@ nest-asyncio==1.6.0
# via ipykernel
pandocfilters==1.5.1
# via nbconvert
+plopp[all]==25.4.1
+ # via -r docs.in
psutil==7.0.0
# via ipykernel
pydata-sphinx-theme==0.16.1
# via -r docs.in
+pythreejs==2.4.2
+ # via
+ # -r docs.in
+ # plopp
pyzmq==26.4.0
# via
# ipykernel
@@ -122,7 +138,7 @@ rpds-py==0.24.0
# referencing
snowballstemmer==2.2.0
# via sphinx
-soupsieve==2.6
+soupsieve==2.7
# via beautifulsoup4
sphinx==8.1.3
# via
@@ -159,7 +175,9 @@ tornado==6.4.2
# via
# ipykernel
# jupyter-client
-urllib3==2.3.0
+traittypes==0.2.1
+ # via ipydatawidgets
+urllib3==2.4.0
# via requests
webencodings==0.5.1
# via
diff --git a/requirements/mypy.txt b/requirements/mypy.txt
index 61d88db..77e99ca 100644
--- a/requirements/mypy.txt
+++ b/requirements/mypy.txt
@@ -8,5 +8,5 @@
-r test.txt
mypy==1.15.0
# via -r mypy.in
-mypy-extensions==1.0.0
+mypy-extensions==1.1.0
# via mypy
diff --git a/requirements/nightly.in b/requirements/nightly.in
index a785108..7e6d320 100644
--- a/requirements/nightly.in
+++ b/requirements/nightly.in
@@ -1,7 +1,8 @@
# --- END OF CUSTOM SECTION ---
# The following was generated by 'tox -e deps', DO NOT EDIT MANUALLY!
-mcstasscript
+h5py
+numpy
pytest
scipp
--index-url=https://pypi.anaconda.org/scipp-nightly-wheels/simple/
diff --git a/requirements/nightly.txt b/requirements/nightly.txt
index c23acee..4ca8056 100644
--- a/requirements/nightly.txt
+++ b/requirements/nightly.txt
@@ -1,4 +1,4 @@
-# SHA1:59fa0704acd7073cdf970cb3aaf2cb8b49111272
+# SHA1:4dd742f716575e8b2a483edcff49618eff1db3c2
#
# This file is autogenerated by pip-compile-multi
# To update, run:
@@ -8,101 +8,28 @@
--index-url https://pypi.anaconda.org/scipp-nightly-wheels/simple/
--extra-index-url https://pypi.org/simple
-asttokens==3.0.0
- # via stack-data
-comm==0.2.2
- # via ipywidgets
-contourpy==1.3.1
- # via matplotlib
-cycler==0.12.1
- # via matplotlib
-decorator==5.2.1
- # via ipython
-dill==0.3.5.1
- # via libpyvinyl
exceptiongroup==1.2.2
- # via
- # ipython
- # pytest
-executing==2.2.0
- # via stack-data
-flexcache==0.3
- # via pint
-flexparser==0.4
- # via pint
-fonttools==4.57.0
- # via matplotlib
+ # via pytest
h5py==3.13.0
# via
- # libpyvinyl
+ # -r nightly.in
# scippnexus
iniconfig==2.1.0
# via pytest
-ipython==8.35.0
- # via ipywidgets
-ipywidgets==8.1.5
- # via mcstasscript
-jedi==0.19.2
- # via ipython
-json-tricks==3.17.3
- # via libpyvinyl
-jsons==1.6.3
- # via libpyvinyl
-jupyterlab-widgets==3.0.13
- # via ipywidgets
-kiwisolver==1.4.8
- # via matplotlib
-libpyvinyl==1.3.0
- # via mcstasscript
-matplotlib==3.10.1
- # via mcstasscript
-matplotlib-inline==0.1.7
- # via ipython
-mcstasscript==0.0.74
- # via -r nightly.in
-numpy==2.2.4
+numpy==2.2.5
# via
- # contourpy
+ # -r nightly.in
# h5py
- # libpyvinyl
- # matplotlib
- # mcstasscript
# scipp
# scipy
-packaging==24.2
- # via
- # matplotlib
- # pytest
-parso==0.8.4
- # via jedi
-pexpect==4.9.0
- # via ipython
-pillow==11.1.0
- # via matplotlib
-pint==0.24.4
- # via libpyvinyl
-platformdirs==4.3.7
- # via pint
+packaging==25.0
+ # via pytest
pluggy==1.5.0
# via pytest
-prompt-toolkit==3.0.50
- # via ipython
-ptyprocess==0.7.0
- # via pexpect
-pure-eval==0.2.3
- # via stack-data
-pygments==2.19.1
- # via ipython
-pyparsing==3.2.3
- # via matplotlib
pytest==8.3.5
# via -r nightly.in
python-dateutil==2.9.0.post0
- # via
- # matplotlib
- # scippnexus
-pyyaml==6.0.2
- # via mcstasscript
+ # via scippnexus
scipp==100.0.0.dev0
# via
# -r nightly.in
@@ -110,30 +37,8 @@ scipp==100.0.0.dev0
scippnexus @ git+https://github.com/scipp/scippnexus@main
# via -r nightly.in
scipy==1.15.2
- # via
- # libpyvinyl
- # scippnexus
+ # via scippnexus
six==1.17.0
# via python-dateutil
-stack-data==0.6.3
- # via ipython
tomli==2.2.1
# via pytest
-traitlets==5.14.3
- # via
- # comm
- # ipython
- # ipywidgets
- # matplotlib-inline
-typing-extensions==4.13.1
- # via
- # flexcache
- # flexparser
- # ipython
- # pint
-typish==1.9.3
- # via jsons
-wcwidth==0.2.13
- # via prompt-toolkit
-widgetsnbextension==4.0.13
- # via ipywidgets
diff --git a/requirements/static.txt b/requirements/static.txt
index c0e7366..3b11f10 100644
--- a/requirements/static.txt
+++ b/requirements/static.txt
@@ -11,7 +11,7 @@ distlib==0.3.9
# via virtualenv
filelock==3.18.0
# via virtualenv
-identify==2.6.9
+identify==2.6.10
# via pre-commit
nodeenv==1.9.1
# via pre-commit
@@ -21,5 +21,5 @@ pre-commit==4.2.0
# via -r static.in
pyyaml==6.0.2
# via pre-commit
-virtualenv==20.30.0
+virtualenv==20.31.1
# via pre-commit
diff --git a/requirements/wheels.txt b/requirements/wheels.txt
index bfae20b..21d3cb0 100644
--- a/requirements/wheels.txt
+++ b/requirements/wheels.txt
@@ -7,7 +7,7 @@
#
build==1.2.2.post1
# via -r wheels.in
-packaging==24.2
+packaging==25.0
# via build
pyproject-hooks==1.2.0
# via build
diff --git a/src/mcstastox/LoadFile.py b/src/mcstastox/LoadFile.py
index 6cc5d46..3a4ebea 100644
--- a/src/mcstastox/LoadFile.py
+++ b/src/mcstastox/LoadFile.py
@@ -76,7 +76,7 @@ def show_components(self):
self.logger.info("All components in file:")
comps = self.get_components()
for comp in comps:
- self.logger.info(" ", comp)
+ self.logger.info("%s", comp)
def show_components_with_data(self):
"""
@@ -88,7 +88,7 @@ def show_components_with_data(self):
else:
self.logger.info("All components with data in file:")
for comp in comps:
- self.logger.info(" ", comp)
+ self.logger.info("%s", comp)
def show_components_with_ids(self):
"""
@@ -100,7 +100,7 @@ def show_components_with_ids(self):
else:
self.logger.info("All components with pixel id information in file:")
for comp in comps:
- self.logger.info(" ", comp)
+ self.logger.info("%s", comp)
def show_components_with_geometry(self):
"""
@@ -112,7 +112,7 @@ def show_components_with_geometry(self):
else:
self.logger.info("All components with geometry information in file:")
for comp in comps:
- self.logger.info(" ", comp)
+ self.logger.info("%s", comp)
def get_component_variables(self, component_name):
"""
diff --git a/tox.ini b/tox.ini
index 8ae6497..adb8143 100644
--- a/tox.ini
+++ b/tox.ini
@@ -6,6 +6,8 @@ isolated_build = true
deps = -r requirements/test.txt
setenv =
JUPYTER_PLATFORM_DIRS = 1
+passenv =
+ MCSTAS
commands = pytest {posargs}
[testenv:nightly]
@@ -19,16 +21,14 @@ commands = pytest {posargs}
description = Test with unpinned dependencies, as a user would install now.
deps =
-r requirements/basetest.txt
- McStasToX
+ mcstastox
commands = pytest {posargs}
[testenv:docs]
description = invoke sphinx-build to build the HTML docs
deps = -r requirements/docs.txt
allowlist_externals=find
- mamba
-commands = mamba install mcstas=3.5 -y
- python -m sphinx -j2 -v -b html -d {toxworkdir}/docs_doctrees docs html
+commands = python -m sphinx -j2 -v -b html -d {toxworkdir}/docs_doctrees docs html
python -m sphinx -j2 -v -b doctest -d {toxworkdir}/docs_doctrees docs html
find html -type f -name "*.ipynb" -not -path "html/_sources/*" -delete
@@ -36,7 +36,7 @@ commands = mamba install mcstas=3.5 -y
description = invoke sphinx-build to build the HTML docs from a released version
skip_install = true
deps =
- McStasToX=={posargs}
+ mcstastox=={posargs}
{[testenv:docs]deps}
allowlist_externals={[testenv:docs]allowlist_externals}
commands = {[testenv:docs]commands}
@@ -70,5 +70,5 @@ deps =
pip==24.2
skip_install = true
changedir = requirements
-commands = python ./make_base.py --nightly scipp,scippnexus
+commands = python ./make_base.py --nightly scipp,scippnexus,mcstasscript
pip-compile-multi -d . --backtracking --annotate-index