Skip to content

Commit 1ca907d

Browse files
jokasimrjl-wynen
andauthored
feat: visualize transform chains (#298)
* feat: visualize transform chains * fix: add cycle detection in .compute * feat: add axis and magnitude * fix * fix: make circular graph not raise error and missing keys not warn * Update src/scippnexus/nxtransformations.py Co-authored-by: Jan-Lukas Wynen <j-l.wynen@hotmail.de> * fix: refactor try catch more local * deps * fix: display data of data arrays * fix: add offset vector to visualization --------- Co-authored-by: Jan-Lukas Wynen <j-l.wynen@hotmail.de>
1 parent fb29d40 commit 1ca907d

File tree

12 files changed

+359
-19
lines changed

12 files changed

+359
-19
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ dynamic = ["version"]
3939

4040
[project.optional-dependencies]
4141
test = [
42+
"graphviz",
4243
"pytest>=8.0",
4344
]
4445

requirements/basetest.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@
77
# will not be touched by ``make_base.py``
88
# --- END OF CUSTOM SECTION ---
99
# The following was generated by 'tox -e deps', DO NOT EDIT MANUALLY!
10+
graphviz
1011
pytest>=8.0

requirements/basetest.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
# SHA1:a183f2aaeff6c4f418995809266f8825553a276e
1+
# SHA1:cd2186ab799909dcd3c4409d56716cd09984942e
22
#
33
# This file was generated by pip-compile-multi.
44
# To update, run:
55
#
66
# requirements upgrade
77
#
8+
graphviz==0.21
9+
# via -r basetest.in
810
iniconfig==2.3.0
911
# via pytest
1012
packaging==26.0

requirements/ci.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#
66
# requirements upgrade
77
#
8-
cachetools==7.0.0
8+
cachetools==7.0.1
99
# via tox
1010
certifi==2026.1.4
1111
# via requests
@@ -17,7 +17,7 @@ colorama==0.4.6
1717
# via tox
1818
distlib==0.4.0
1919
# via virtualenv
20-
filelock==3.20.3
20+
filelock==3.21.2
2121
# via
2222
# tox
2323
# virtualenv
@@ -32,7 +32,7 @@ packaging==26.0
3232
# -r ci.in
3333
# pyproject-api
3434
# tox
35-
platformdirs==4.5.1
35+
platformdirs==4.7.0
3636
# via
3737
# tox
3838
# virtualenv
@@ -44,7 +44,7 @@ requests==2.32.5
4444
# via -r ci.in
4545
smmap==5.0.2
4646
# via gitdb
47-
tox==4.34.1
47+
tox==4.35.0
4848
# via -r ci.in
4949
urllib3==2.6.3
5050
# via requests

requirements/dev.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jupyter-server==2.17.0
6969
# notebook-shim
7070
jupyter-server-terminals==0.5.4
7171
# via jupyter-server
72-
jupyterlab==4.5.3
72+
jupyterlab==4.5.4
7373
# via -r dev.in
7474
jupyterlab-server==2.28.0
7575
# via jupyterlab
@@ -81,7 +81,7 @@ overrides==7.7.0
8181
# via jupyter-server
8282
pip-compile-multi==3.2.2
8383
# via -r dev.in
84-
pip-tools==7.5.2
84+
pip-tools==7.5.3
8585
# via pip-compile-multi
8686
plumbum==1.10.0
8787
# via copier

requirements/docs.txt

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ alabaster==1.0.0
1212
# via sphinx
1313
annotated-types==0.7.0
1414
# via pydantic
15-
appnope==0.1.4
16-
# via ipykernel
1715
asttokens==3.0.1
1816
# via stack-data
1917
attrs==25.4.0
@@ -64,7 +62,7 @@ idna==3.11
6462
# via requests
6563
imagesize==1.4.1
6664
# via sphinx
67-
ipykernel==7.1.0
65+
ipykernel==7.2.0
6866
# via -r docs.in
6967
ipython==9.10.0
7068
# via
@@ -148,13 +146,13 @@ packaging==26.0
148146
# sphinx
149147
pandocfilters==1.5.1
150148
# via nbconvert
151-
parso==0.8.5
149+
parso==0.8.6
152150
# via jedi
153151
pexpect==4.9.0
154152
# via ipython
155-
pillow==12.1.0
153+
pillow==12.1.1
156154
# via matplotlib
157-
platformdirs==4.5.1
155+
platformdirs==4.7.0
158156
# via
159157
# jupyter-core
160158
# pooch
@@ -286,7 +284,7 @@ typing-inspection==0.4.2
286284
# pydantic-settings
287285
urllib3==2.6.3
288286
# via requests
289-
wcwidth==0.5.3
287+
wcwidth==0.6.0
290288
# via prompt-toolkit
291289
webencodings==0.5.1
292290
# via

requirements/mypy.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# requirements upgrade
77
#
88
-r test.txt
9-
librt==0.7.8
9+
librt==0.8.0
1010
# via mypy
1111
mypy==1.19.1
1212
# via -r mypy.in

requirements/nightly.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# The following was generated by 'tox -e deps', DO NOT EDIT MANUALLY!
44
scipy>=1.10.0
55
h5py>=3.12
6+
graphviz
67
pytest>=8.0
78
scipp
89
--index-url=https://pypi.anaconda.org/scipp-nightly-wheels/simple/

requirements/nightly.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SHA1:b30ab65358588446f6086cfdb6e24c31a02a7b4a
1+
# SHA1:d31924dbe321c793dc4f8eb52fc8a939d3e513ab
22
#
33
# This file was generated by pip-compile-multi.
44
# To update, run:
@@ -8,6 +8,8 @@
88
--index-url https://pypi.anaconda.org/scipp-nightly-wheels/simple/
99
--extra-index-url https://pypi.org/simple
1010

11+
graphviz==0.21
12+
# via -r nightly.in
1113
h5py==3.15.1
1214
# via -r nightly.in
1315
iniconfig==2.3.0

requirements/static.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ cfgv==3.5.0
99
# via pre-commit
1010
distlib==0.4.0
1111
# via virtualenv
12-
filelock==3.20.3
12+
filelock==3.21.2
1313
# via virtualenv
1414
identify==2.6.16
1515
# via pre-commit
1616
nodeenv==1.10.0
1717
# via pre-commit
18-
platformdirs==4.5.1
18+
platformdirs==4.7.0
1919
# via virtualenv
2020
pre-commit==4.5.1
2121
# via -r static.in

0 commit comments

Comments
 (0)