-
Notifications
You must be signed in to change notification settings - Fork 45
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
Don't insert lab member when creating lab team #983
Conversation
Yeah, I can see how the file ingestion process has some redundancies adding the members, and then adding them again when the team is added. We could change that by either...
I think I like the last option the best. On L67-68, instead of feeding |
I think my expectation as a user of how this would work (in a more general sense) is that:
|
@CBroz1 I looked into your second suggestion, but it's not obvious to me how to do this (please let me know if you do). I assume you are saying that we should be able to pass both How about instead of commenting it out, we just check if the name is in |
'Recompose name' approach to lab team on ingestion
Anything else I need to do before we merge this? |
@khl02007 Just a changelog edit with PR number would be required. Revising the initial PR description with the checklist is a nice-to-have for posterity |
Description
Related to #979. See also khl02007/spyglass#1, #304 and #822.
This is the logic of creating lab member and lab team upon NWB ingestion:
experimenter
field from the nwb file, which contains names inlast, first
format (can be a list of multiple experimenters)LabMember
by converting thelast, first
format tofirst last
format (line 62 ofcommon_lab.py
)LabTeam
, again withfirst last
as theteam_name
(line 68 ofcommon_lab.py
)first last
intoLabMember
again (line 195 ofcommon_lab.py
)Step 4 throws an error for me because the name
Lee, Kyu Hyun
has been converted toKyu Hyun Lee
and then passed todecompose_name
, which throws an error. So this change comments out that step.Checklist:
CITATION.cff
alter
snippet for release notes.CHANGELOG.md
with PR number and description.Edited by @CBroz1