Closed Remi-Gau closed 3 weeks ago
This should be present in the JSON errors:
So we need to add the affects
to rendering.
Well, maybe let's think more about the best way to handle this.
Our current issue model only permits a unique location, as there should be a single place to fix the error. When an invalid value appears in the JSON file, the location is the JSON file and it affects any data files that inherit it. If it's absent, the location is the data file, since we don't want to try to guess where it should have been written.
The location of this issue is not the BOLD file, but the directory containing the two inheritable files. It might be simplest, though, to call the location the first one, say that the affected files are the data files, and include the list of competing matches in the message.
cc @rwblair
Message now tells offending json files, but check is still done on each file that inheritance sidecar merging is done so a large number of errors with the same message are generated:
[ERROR] MULTIPLE_INHERITABLE_FILES Multiple files in a directory were found to be valid candidates for inheritance.
/acq-fullbrain_bold.json - Candidate files: /acq-fullbrain_bold.json,/task-rest_acq-fullbrain_bold.json
/acq-fullbrain_bold.json - Candidate files: /acq-fullbrain_bold.json,/task-rest_acq-fullbrain_bold.json
86 more files with the same issue
We are working on reducing output with the exact same message.
awesome thanks @effigies and @rwblair for the quick fix!!
Pointed out to me by @bthirion
The error message for multiple inheritance should ideally also point to the problematic JSON files and not just to the data files affected by it.
I modified the 7t_trt example https://github.com/bids-standard/bids-examples/tree/master/7t_trt
to have files with clashing
acq-fullbrain_bold.json
filesweb browser validator gives (amongst other things)
I would expect for the error message to also mention: