-
Notifications
You must be signed in to change notification settings - Fork 165
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
[FIX] wrong usage of DOI in SourceDatasets example #1361
Conversation
scratch that ... originally I wanted to fix this example (end of sourcedata section): -{
- "SourceDatasets": [ {"URL": "file://../../rawdata/"} ]
-}
+{
+ "SourceDatasets": [ {"URL": "../../rawdata/"} ]
+} However then I realized that:
So we probably shouldn't change it. At least not without proper deprecation. I would be fine with repurposing this PR to doing the minor typo fix that I committed in ee02f1c ... but we can also use this space to discuss whether we find it problematic that:
A proper fix may be to permit BIDS-URIs for |
Codecov ReportBase: 88.65% // Head: 88.65% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## master #1361 +/- ##
=======================================
Coverage 88.65% 88.65%
=======================================
Files 11 11
Lines 1084 1084
=======================================
Hits 961 961
Misses 123 123 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
@@ -259,7 +259,7 @@ field in `dataset_description.json` of each subdirectory of `derivatives` to: | |||
|
|||
```JSON | |||
{ | |||
"SourceDatasets": [ {"URL": "file://../../rawdata/"} ] | |||
"SourceDatasets": [ {"URL": "../../rawdata/"} ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to 4.3. URL writing:
A relative-URL string must be one of the following, switching on base URL’s scheme:
- A special scheme that is not "
file
"- "
file
"- Otherwise
Therefore, a relative URL cannot start with file://
. Instead, a path-relative-scheme-less-URL like ../../rawdata/
is valid.
But then, I don't know if it works here...
Per today's call: The fix is just to drop |
a832a4b
to
4997261
Compare
xref: bids-standard/bids-examples#339
Correcting a BIDS-URI example --> relative paths for BIDS-URIs do not start with a
file://
... we usefile://
only for absolute paths (such as infile:///home/stefanappelhoff/Downloads/myfile.nii
)I think we can consider this a bugfix.
cc @Remi-Gau @effigies