Closed paul-reiners closed 1 year ago
It actually does need to be hard coded. We should be updating it when we release a new tagged version. I'm not sure how difficult it would be to go back and edit this field in the previous tags. I think we just need to make sure that we updated this field in new releases from now on.
Thank you for bringing this to our attention Paul.
@perronea @paul-reiners @madisoth @arueter1 @ericfeczko I should warn you that the historical reason we didn't update this hard-coding was because it goes into file names which are taken as outputs and Kathy and I were afraid if we updated that string there it would break post-processing scripts/analyses that expected those filenames. So, I guess that's just a word of warning. I agree it should update with each version, but it's a risky change for downstream stuff.
That's a great point @ericearl. Maybe it should be removed all together and tracked in a separate metadata file within each subject's DBP directory just like the matlab config.
@perronea I think that would be a better change, yeah. But certainly be careful about filename overlaps and downstream tools expecting the original version string.
I'm closing this issue - as Anders explained, this does need to be hard-coded
https://github.com/DCAN-Labs/dcan_bold_processing/blob/2ef154c6bc70dc3029d4b5941d1bf51f65db7334/dcan_bold_proc.py#L4
Does this need to be hard-coded? If so, could explanation be added to the code, including other modules where it might need to be changed?