-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
future-proof BidsGuess #739
Comments
This issue refers to the experimental BidsGuess feature found in the latest development branch of dcm2niix. I certainly appreciate community input, and am happy to modify the behavior if there is a consensus in the community. One thing I do not like with your suggestions it redundancy which can lead to conflict (e.g. what gets precedence if items in the I do think a couple of lines of Python will parse the values you want from the current structure:
|
sure thing the order in which bids2niix would populate them must follow BIDS standard order of entities . Indeed , probably (didn't check), order of items in JSON dict is not guaranteed, but python dicts now retain order, so should be ok there. And users would be able to use ready-to-use I agree that there is redundancy (and I personally the first on the forefront of fighting duplication!) but here it is "machine produced" duplication in favor of facilitating easier use. Sure thing it is easy to parse it -- it indeed takes only so few lines of python. But with any line of code we are opening chances for it to get broken. E.g. in your example, you would need to use Anyways -- it was just my recommendation. Feel free to ignore etc. |
why not to have instead of
a
so it would make it easier and more robust for underlying tools, happen you decide to e.g. add some extra metadata field (e.g. "subject" which is available in DICOM or "accession" to be used for a session happen someone desires).
"filename_suffix"
is just a convenience composition from"entities"
and"suffix"
. Having those entities separate would facilitate reuse (e.g. in heudiconv) without adding ad-hoc splitting logic.The text was updated successfully, but these errors were encountered: