-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add script/functions for running video capsules
- Loading branch information
1 parent
9fe16fe
commit 85ffe81
Showing
2 changed files
with
54 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import npc_lims.metadata.codeocean as codeocean | ||
import npc_lims.status as status | ||
|
||
def main() -> None: | ||
for session_info in status.get_session_info(): | ||
if not session_info.is_uploaded: | ||
continue | ||
|
||
codeocean.run_eye_tracking_capsule(session_info.id) | ||
codeocean.run_dlc_side_tracking_capsule(session_info.id) | ||
codeocean.run_dlc_face_tracking_capsule(session_info.id) | ||
codeocean.run_facemap_capsule(session_info.id) | ||
|
||
if __name__ == '__main__': | ||
main() |
85ffe81
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.
@arjunsridhar12345
npc_lims/src/npc_lims/metadata/codeocean.py
Lines 461 to 468 in 85ffe81
a few comments:
type
, which overwrites the built-in.._type
would be better, but something more descriptive would even better: I actually have no idea this is doingif type ==
path with noelse
path. I'm actually surprised mypy allowed this. If I passtype=""
I'd get an incomprehensibleAttributeError: data_assets does not exist
and have to look at the source code. You should instead raise a ValueError and say what the accepted values fortype
are.type
to beLiteral["raw"]
to be more helpful