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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yabplot
3
- Version: 0.1.1
3
+ Version: 0.1.3
4
4
  Summary: yet another brain plot
5
5
  Requires-Python: >=3.10
6
6
  Description-Content-Type: text/markdown
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "yabplot"
3
- version = "0.1.1"
3
+ version = "0.1.3"
4
4
  description = "yet another brain plot"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
@@ -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
- # find .trk files
360
- trk_files = _scan_for_ext(atlas_dir, ".trk")
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 trk_files:
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 trk_files
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-musus100.zip sha256:7bc0d5b6a7e90a18cf8399f76976202d0263ff4e6823f375833bf0073fb89f9e https://osf.io/mwgz8/download
12
- subcortical-musus100_dbn.zip sha256:a024c048d0210c1699b52aa867d7147f1000168b2a2fdd99f499ee087e23f1d6 https://osf.io/fsv3b/download
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yabplot
3
- Version: 0.1.1
3
+ Version: 0.1.3
4
4
  Summary: yet another brain plot
5
5
  Requires-Python: >=3.10
6
6
  Description-Content-Type: text/markdown
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes