tkkarjal / magia

Automated brain PET analysis pipeline
https://doi.org/10.3389/fninf.2020.00003
MIT License
27 stars 7 forks source link

magia_read_specs.m saves numeric values as char #48

Closed eebrown closed 5 years ago

eebrown commented 5 years ago

The function magia_read_specs(specs_file) in magia_read_specs.m stores numeric values from the text file as char. This causes problems, such as '0' being evaluated as true, where 0 should be false, e.g. in magia_processor.m. I think the frames are also loaded as char and not converted to the expected format.

tkkarjal commented 5 years ago

Thanks! I made a quick fix for this one. The parameter mc_excluded_frames may still cause some problems, but I will get into that later.

eebrown commented 5 years ago

Thanks, the fix works.