yabplot 0.1.1__tar.gz → 0.1.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {yabplot-0.1.1/yabplot.egg-info → yabplot-0.1.3}/PKG-INFO +1 -1
- {yabplot-0.1.1 → yabplot-0.1.3}/pyproject.toml +1 -1
- {yabplot-0.1.1 → yabplot-0.1.3}/tests/test_smoke.py +19 -1
- {yabplot-0.1.1 → yabplot-0.1.3}/yabplot/data/__init__.py +8 -7
- {yabplot-0.1.1 → yabplot-0.1.3}/yabplot/data/registry.txt +2 -3
- {yabplot-0.1.1 → yabplot-0.1.3/yabplot.egg-info}/PKG-INFO +1 -1
- {yabplot-0.1.1 → yabplot-0.1.3}/LICENSE +0 -0
- {yabplot-0.1.1 → yabplot-0.1.3}/MANIFEST.in +0 -0
- {yabplot-0.1.1 → yabplot-0.1.3}/README.md +0 -0
- {yabplot-0.1.1 → yabplot-0.1.3}/setup.cfg +0 -0
- {yabplot-0.1.1 → yabplot-0.1.3}/yabplot/__init__.py +0 -0
- {yabplot-0.1.1 → yabplot-0.1.3}/yabplot/plotting.py +0 -0
- {yabplot-0.1.1 → yabplot-0.1.3}/yabplot/scene.py +0 -0
- {yabplot-0.1.1 → yabplot-0.1.3}/yabplot/utils.py +0 -0
- {yabplot-0.1.1 → yabplot-0.1.3}/yabplot.egg-info/SOURCES.txt +0 -0
- {yabplot-0.1.1 → yabplot-0.1.3}/yabplot.egg-info/dependency_links.txt +0 -0
- {yabplot-0.1.1 → yabplot-0.1.3}/yabplot.egg-info/requires.txt +0 -0
- {yabplot-0.1.1 → yabplot-0.1.3}/yabplot.egg-info/top_level.txt +0 -0
|
@@ -17,4 +17,22 @@ def test_plotter_instantiation():
|
|
|
17
17
|
plotter = pv.Plotter(off_screen=True)
|
|
18
18
|
plotter.add_mesh(pv.Sphere())
|
|
19
19
|
plotter.show()
|
|
20
|
-
plotter.close()
|
|
20
|
+
plotter.close()
|
|
21
|
+
|
|
22
|
+
def test_plot_cortical():
|
|
23
|
+
"""
|
|
24
|
+
Integration test: Downloads 'aparc' and plots it.
|
|
25
|
+
"""
|
|
26
|
+
yab.plot_cortical(atlas='aparc', display_type='none')
|
|
27
|
+
|
|
28
|
+
def test_plot_subcortical():
|
|
29
|
+
"""
|
|
30
|
+
Integration test: Downloads 'aseg' and plots it.
|
|
31
|
+
"""
|
|
32
|
+
yab.plot_subcortical(atlas='aseg', display_type='none')
|
|
33
|
+
|
|
34
|
+
def test_plot_tracts():
|
|
35
|
+
"""
|
|
36
|
+
Integration test: Downloads 'xtract_tiny' and plots it.
|
|
37
|
+
"""
|
|
38
|
+
yab.plot_tracts(atlas='xtract_tiny', display_type='none')
|
|
@@ -332,7 +332,7 @@ def _find_subcortical_files(atlas_dir):
|
|
|
332
332
|
|
|
333
333
|
def _find_tract_files(atlas_dir):
|
|
334
334
|
"""
|
|
335
|
-
Internal: Scans directory for tractography files (.trk).
|
|
335
|
+
Internal: Scans directory for tractography files (.trk or .tck).
|
|
336
336
|
Returns a dictionary: {tract_name: file_path}
|
|
337
337
|
"""
|
|
338
338
|
|
|
@@ -356,14 +356,15 @@ def _find_tract_files(atlas_dir):
|
|
|
356
356
|
|
|
357
357
|
return candidates
|
|
358
358
|
|
|
359
|
-
#
|
|
360
|
-
|
|
359
|
+
# scan for both .trk and .tck
|
|
360
|
+
found_files = _scan_for_ext(atlas_dir, ".trk") + _scan_for_ext(atlas_dir, ".tck")
|
|
361
361
|
|
|
362
|
-
if not
|
|
363
|
-
raise FileNotFoundError(f"No .trk files found in {atlas_dir}")
|
|
362
|
+
if not found_files:
|
|
363
|
+
raise FileNotFoundError(f"No .trk or .tck files found in {atlas_dir}")
|
|
364
364
|
|
|
365
365
|
# map basename -> full path
|
|
366
366
|
return {
|
|
367
367
|
os.path.splitext(os.path.basename(f))[0]: f
|
|
368
|
-
for f in
|
|
369
|
-
}
|
|
368
|
+
for f in found_files
|
|
369
|
+
}
|
|
370
|
+
|
|
@@ -8,9 +8,8 @@ cortical-schaefer_1000.zip sha256:a10448f101a874499d41bc62508c3af29120634955f48b
|
|
|
8
8
|
subcortical-aseg.zip sha256:a901a7fc6a39f9bdaf2ef2bafbcde1fbc085b225d99e6730c727650d9be047d5 https://osf.io/5cs7y/download
|
|
9
9
|
subcortical-brainnetome_sc.zip sha256:8301fdf6af109af52a2cf9b06d15486345d457b69cb86169ed38332a34a681c0 https://osf.io/2fsg5/download
|
|
10
10
|
subcortical-jhu.zip sha256:b0ca292589a9f041851dba8159bb605a4657323e4305ba1570a304944b28d0de https://osf.io/x5fhg/download
|
|
11
|
-
subcortical-
|
|
12
|
-
subcortical-
|
|
13
|
-
subcortical-musus100_tha.zip sha256:175d5d68eddc5a4b1d5d04cec06d825618cede75b51a5870a3942e737f70bd52 https://osf.io/aj68e/download
|
|
11
|
+
subcortical-musus100_dbn.zip sha256:1d865832a35570a8c67f79d5049b58c548d25cf4fe1853164c384193b6712e40 https://osf.io/eutmb/download
|
|
12
|
+
subcortical-tian2020_sc.zip sha256:8b5caf8bf0cdcf8e259a3532fbcb232f8746d68fc734ca9806d10e70cf8707a3 https://osf.io/jrvgp/download
|
|
14
13
|
tracts-hcp1065_medium.zip sha256:366bb100074cf7b1e55586e5468653f0c342e42cfdd91dca6d99b6fde82f06ff https://osf.io/kjf8e/download
|
|
15
14
|
tracts-hcp1065_small.zip sha256:020f23059c3a20ee0dda8ad12cd3df99b9fe5d3b37e7a6b9ae34b8a52b4b4346 https://osf.io/ynpa5/download
|
|
16
15
|
tracts-hcp1065_tiny.zip sha256:54380d82f5cd234029c6fc011910e00f0ad859fdb6c22c6aaa6452d055449ae9 https://osf.io/jzk7p/download
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|