-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add "Name"
and "SpatialReference"
key-value pair to JSON sidecar, remove check_if_modified
#76
Conversation
… 'Visually verified'" to the JSON file
Hey @valosekj ! Thanks for opening this PR ! I was actually thinking about updating some fields of our json sidecars. Regarding your proposition, I think could just stick to our standards as described here. In other terms, I think we should start using the key "Name" instead of "Note" which is proposed by the BIDS convention as well. Then regarding the associated values:
See one example for the dataset {
"SpatialReference": "orig",
"GeneratedBy": [
{
"Name": "Manual",
"Description": "Manually created by our collaborators"
},
{
"Name": "Quality Control",
"Author": "Nathan Molinier",
"Date": "2024-01-12 13:37:17"
}
]
} Also, as shown in the previous example, we should also start adding the key "SpatialReference" .
|
Points based on an in-person discussion with @NathanMolinier:
Remaining points to discuss:Values to use in the JSON sidecars for the key Proposed by @NathanMolinier:
Proposed by Jan:
|
"Note"
key-value pair to JSON sidecar "Name"
and "SpatialReference"
key-value pair to JSON sidecar
Regarding Also, I tested the PR to correct some labels and I think that we should add the field "SpatialReference" when not already present in the JSON sidecar. |
Great point! Agree! Changed to
Agree. Could you please implement this change and push to this branch? |
I would go with the simplest approach: One value: "Manual". Unless there is a VERY good reason for distinguishing QC from manually corrected. |
By |
that's exactly my point: how useful is that information? my perspective is from someone managing 100+ projects over many years. In 5y from now, i imagine the scenario where a student would come in, and ignore the difference between "manual" and "visually qced", and put a wrong label. I prefer less label than wrong labels-- hence my go-for-simple-solution philosophy |
Based on @jcohenadad's comment, I just removed the difference between visually checked and modified. Also, I added a line to check if the field |
@NathanMolinier why did you remove the |
Hey @valosekj ! From what Julien said I removed the code that was making a difference between a modified image and a checked image. Since this function was not used anymore I thought that I could remove it to avoid having dead code since it is still tracked by GitHub. I could add it back if you want ? |
Yeah, this is a valid point, indeed. But now, without the |
Yes, but that's what we want I guess. The user intentionally added the filename to the YML config |
Right. Okay, let's keep |
Yes sure ! |
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.
Nothing to add on my side
Great, thanks @NathanMolinier! 👍🏻 Merging! |
"Name"
and "SpatialReference"
key-value pair to JSON sidecar "Name"
and "SpatialReference"
key-value pair to JSON sidecar, remove check_if_modified
…func are no longer used after #76
Updated description based on #76 (comment):
This PR adds new key-value pairs
SpatialReference': 'orig'
and'Name': 'Manual'
into JSON sidecars:The PR also removes the
check_if_modified
function; for context see #76 (comment).Original description
This PR proposes a new key-value pair
"Note"
to track if a label was only visually inspected or manually modified. To determine between these two scenarios, the already existingcheck_if_modified
function is levared.Scenario 1
If the label was only visually inspected but not modified, add
"Note": "Visually verified"
to the JSON file. Example:Scenario 2
If the label was corrected, add
"Note": "Manually corrected"
:Relevant discussion: ivadomed/canproco#73 (comment)