MICA-MNI / BrainStat

A statistics and context decoding toolbox for neuroimaging.
https://brainstat.readthedocs.io
Other
87 stars 21 forks source link

read_histology_profile(template="fslr32k") gives error in h5_file.get(template)[...] #340

Open iamnielsjanssen opened 1 year ago

iamnielsjanssen commented 1 year ago

The problem is that the h5 file for fslr32k uses a different database name inside the h5 file:

~/brainstat_data/bigbrain_data$ h5ls histology_fslr32k.h5 
fs_LR_64k                Dataset {50, 64984}

In file "histology.py" you add this code to fix

 # added by NIELS
    if template == "fslr32k":
        template = "fs_LR_64k"

    with h5py.File(histology_file, "r") as h5_file:
        profiles = h5_file.get(template)[...]
        if civet_template:
----cut----