Skip to content
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

Enh/codeocean sdk #21

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open

Enh/codeocean sdk #21

wants to merge 17 commits into from

Conversation

mochic
Copy link

@mochic mochic commented Jul 1, 2024

Switches from aind-codeocean-api to codeocean. We have redundant objects in the form of JobStatus CapsuleComputationAPI that we should consider refactoring out. The codeocean analog provided is Computation. Some of our code relies on JobStatus, CapsuleComputationAPI being able to be iteratively serialized (all fields are optional) whereas Computation doesn't allow for this (requires some values to be present for validation). We should consider how we want to change this. Either by using a Computation subclass that allows us to do this or by changing the way we're creating/using these objects (ie: not iteratively serializing it). doctests for queue and codeocean_utils appear to be passing but we should identify what additional testing is necessary and perform it.

@mochic
Copy link
Author

mochic commented Jul 8, 2024

@bjhardcastle @arjunsridhar12345 removed the typed dicts associated with the queue, please review when you have time. There's a lot of redundant code but I refactored out some of the redundancies. Factoring out all the redundancies seems like it goes out of the scope of this pr.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants