-
Notifications
You must be signed in to change notification settings - Fork 111
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
[Firefox] Loading module from "...schema.json" was blocked because of a disallowed MIME type ("application/json"). #2087
Comments
This is expected. While we are working on dealing with some false positives, there are significant portions of the specification that the legacy validator did not systematically validate.
The web validator cannot retrieve unreleased updates to the schema, while the command-line validator can. This warning is not really intended for web users, but wasn't suppressed for them, either. All this means is that the web validator will use the schema that was available at the time that it was published.
This should be resolved in the development version of the validator. If you're still seeing it there, you may have a malformed BIDS version. The known values can be found https://github.com/bids-standard/bids-specification/blob/master/src/schema/meta/versions.yaml. I mostly see it when a dataset has version "v1.X.X", instead of just "1.X.X". |
The BIDS version in
BTW, there are lots of other warning and errors shown, e.g.,:
These warnings and errors do not exist if I run with the legacy validator. |
For my case, here are two example files that has been listed under
The only "issue" I can see from these NifTi files might be that the functional image have
{
"Name": "test dataset",
"BIDSVersion": "1.2.1",
"License": "Unknown",
"Authors": ["XXX", "XXX"],
"Acknowledgements": "add any acknowledgement here."
} and the output of PS. I've tested the same dataset under Edge (under windows 11), the result is the same as in Firefox, so this issue is not related to Firefox or Linux. |
I believe your issues should be addressed with the next release. |
For $ grep 'RepetitionTime' bids7/sub-*/func/*_bold.json
bids7/sub-0151/func/sub-0151_task-rest_run-01_bold.json: "RepetitionTime": 1.4,
bids7/sub-0151/func/sub-0151_task-rest_run-02_bold.json: "RepetitionTime": 1.4,
bids7/sub-0156/func/sub-0156_task-rest_run-01_bold.json: "RepetitionTime": 1.4,
bids7/sub-0156/func/sub-0156_task-rest_run-02_bold.json: "RepetitionTime": 1.4,
bids7/sub-0342/func/sub-0342_task-rest_run-01_bold.json: "RepetitionTime": 1.4,
bids7/sub-0342/func/sub-0342_task-rest_run-02_bold.json: "RepetitionTime": 1.4,
bids7/sub-0358/func/sub-0358_task-rest_run-01_bold.json: "RepetitionTime": 1.4,
bids7/sub-0358/func/sub-0358_task-rest_run-02_bold.json: "RepetitionTime": 1.4, and $ for ii in bids7/sub-*/func/*_bold.nii.gz; do echo -ne "$ii\t"; fslhd $ii | grep 'pixdim4'; done
bids7/sub-0151/func/sub-0151_task-rest_run-01_bold.nii.gz pixdim4 1.400000
bids7/sub-0151/func/sub-0151_task-rest_run-02_bold.nii.gz pixdim4 1.400000
bids7/sub-0156/func/sub-0156_task-rest_run-01_bold.nii.gz pixdim4 1.400000
bids7/sub-0156/func/sub-0156_task-rest_run-02_bold.nii.gz pixdim4 1.400000
bids7/sub-0342/func/sub-0342_task-rest_run-01_bold.nii.gz pixdim4 1.400000
bids7/sub-0342/func/sub-0342_task-rest_run-02_bold.nii.gz pixdim4 1.400000
bids7/sub-0358/func/sub-0358_task-rest_run-01_bold.nii.gz pixdim4 1.400000
bids7/sub-0358/func/sub-0358_task-rest_run-02_bold.nii.gz pixdim4 1.400000 For this dataset, I got the This issue do not exist for the previous dataset, where |
One more question:
For functional images, |
Ugh, it looks like BIDS has an inconsistent definition of AcquisitionDuration. Our definition says it's the duration of the acquisition of a volume, but then points to DICOM 0018,9073 (duration of a series) as reference. And it looks like it's been that way the entire time the term has been in the spec, so |
I was trying validate a BIDS dataset under Linux (where only firefox browser is avalable, so other browsers are not tested), and the latest validator complained a lot, which most of the error and warnings do not exist if I use the legacy validator.
Then I opened the web console, there are error messages like this:
I'm not sure that warnings and errors are caused by such issue or not, but since there are messages showing:
I guess it is the internal version of the
schema
caused those warnings and errors. No matter what, the schema be blocked issue should not exist, right?The text was updated successfully, but these errors were encountered: