-
Notifications
You must be signed in to change notification settings - Fork 174
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
[EEG] EEG Acquisition form #8443
Conversation
raisinbread/instruments/NDB_BVL_Instrument_EEG_Acquisition.class.inc
Outdated
Show resolved
Hide resolved
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.
Thanks @regisoc for contributing this for the 25 release, I'll look at the instrument in action too (and it will help also once you post screenshots in the description) but for now some initial comments:
- the instrument should be called "EEG acquisition form" (it's missing the 3rd word)
- Per dave's point that sample instruments don't get patches - see other sample LORIS instruments here
- Were there reasons you went with PHP rather than LINST? is there complex branching logic, e.g.
Here are the screenshots. Did you test the form last Tuesday on my machine? Edit: screenshots put in the description. |
@christinerogers @driusan format changed to |
@christinerogers Also, do you want this EEG Acquisition form to be permanently in raisinbread? |
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.
see comments
- there should not be new lines at the end on these files they can break the parser
- there should probably be RB data that goes with it but that can come in a separate PR (at least the insert statemnts)
@GeorgeMurad can you make sure to test the data dict builder with it as well as testing the instrument itself |
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.
Hi @regisoc
Great first draft, Once you get a chance to make these changes (shouldn't take more than an hour) and let me know in slack when it's ready for review.
When you commit, please take it out of Draft
Tip from the Loris meeting discussion: how to check for behavio(u)r
spelling consensus, and put your findings back in the agenda when done :
- check the likeliest front-end modules and get a sense from reading them: - do they use vior or viour ? this is the one we want to be consistent with.
- For the whole codebase You can find out the frequency count for behavio(u)ral in the corpus by grepping and counting recursively on your whole local codebase something like
grep -ro "ehavio." $yourLorisDirectory | sort | uniq -c 1
Excluding # behavior
/var/www/Loris$ grep -ro --exclude-dir=project --exclude-dir=node_modules "ehavior" . | sort | uniq -c | awk '{s+=$1} END {print s}'
3598
# behaviour
/var/www/Loris$ grep -ro --exclude-dir=project --exclude-dir=node_modules "ehaviour" . | sort | uniq -c | awk '{s+=$1} END {print s}'
5067 |
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.
Hi @regisoc - thanks for incorporating the previous changes requested.
I've run the latest version by an external eeg expert. My comments and suggestions below reflect their suggestions which will make this form usable across many more eeg studies.
These include:
- generalizing the device language so that cap and montage studies (not just net) can use this form
- in general, let's add a "not known" to yes/no questions.
- I added one question: was a head rest used?
- for non-pediatric studies, tweaked some language
- also changed the subject mood field name (it was eeg_mood)
I can test this on your VM tomorrow, just let me know when updated and ready -- thanks
@christinerogers made the changes! Ready for review.I will send you the steps for testing on my vm. |
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.
Hi @regisoc I started re-reviewing on your vm --
the dropdown selects all need a null value -- i just noticed now they're not formed in the typical way.
they should all have a first NULL option like this:
https://github.com/aces/Loris/blob/main/raisinbread/instruments/bmi.linst#L7
See example BMI form on Demo.loris.ca
without this null first option, In your form all the selects automatic load the first option by default -- see example screenshot:
This should be a quick fix. Let me know when it's ready and I'll re-review by Monday lunch.
Done you can refresh the page you are on to see the changes |
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.
I'm just now realizing you generated this linst manually instead of with the Instrument builder.
Please load this in the instrument builder module (on your VM or demo), then save it, and compare the output -- you should see among other Linst format points :
- Null options are added to selects (per my previous review)
- not_answered option for each dropdown
- time type is i think deprecated; that's why it doesn't show in your VM front-end
Please also :
- change do not know to not_known "not known" for each dropdown
- remove
:
at the end of a field label (because it looks random) - see other gallicismes or inconsistencies i flagged in comments below
@regisoc could you confirm a few things :
|
@christinerogers to confirm the few things:
|
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.
I see a few minor issues (#8491) which shouldn't hold up the 25 merge / release
@regisoc please just add one missing rule, and i'll approve. Hopefully this last change will take 90 seconds maximum:
- for the question that follows
Subject 60m away
:if no, please explain
needs a rule (only required if the previous response is "no")
Thanks -- very nearly there
@GeorgeMurad could you please run this through the data dict builder as @ridz1208 requested @ridz1208 your review (below) seems to be addressed -- I'll dismiss, Want to re-review ?
-> RB data can come for next release, not necessary now -- per last Loris meeting otherwise this is one small rule change away from merge-ready imo, @driusan |
were addressed (see my last comment).
@christinerogers It was already there, I just did not apply that to the right folder on my machine so you were not able to see it. My bad. (see line 9 of the rule file) |
@driusan ready for a final review |
Add new EEG Acquisition Form sample instrument.
Brief summary of changes
EEG Acquisition form instrument
Screenshots:
Click me