-
Notifications
You must be signed in to change notification settings - Fork 1
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
Create records from data frames #78
Conversation
Gives a warning if it's not available. Module object is stored in the instance for further use.
Co-authored-by: Luke Zappia <lazappi@users.noreply.github.com>
R/Instance.R
Outdated
create_instance <- function(instance_settings, is_default = FALSE, py_lamin = NULL) { | ||
super <- NULL # satisfy linter | ||
|
||
api <- InstanceAPI$new(instance_settings = instance_settings) |
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.
- Can we create
py_lamin
inside ofcreate_instance
similar to howapi
is also created here depending on the value ofis_default
? - If we create it in this function, we could also use lazy loading instead of immediately creating it here.
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 moved it but I deliberately wanted to check when the instance is created so users knows ASAP if they can't do some things. We could change that if you want though.
R/Instance.R
Outdated
py_lamin = function() { | ||
private$.py_lamin | ||
} |
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.
api is a public function. maybe make py_lamin also a public function instead of an active field?
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.
Moved. I'm not sure it actually helps to store the imported module so we can could also load it as needed.
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.
One more question: could you also update the list of features to include the functionality that this PR adds?
* Migrate code from #78 to separate branch Co-authored-by: Luke Zappia <lazappi@users.noreply.github.com> * update imports * add more data loaders, align file and function naming to python implementation * wip add tests * run styler * add entry to changelog * don't use expect_equal to compare anndatas * Update R/core_loaders.R Co-authored-by: Luke Zappia <lazappi@users.noreply.github.com> * suggestions from review * fix roxygen * apply suggestion from review * update documentation --------- Co-authored-by: Luke Zappia <lazappi@users.noreply.github.com>
Added to the README. I already did the development vignette. Let me know if there is anywhere else. |
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.
LGTM!
When finished this PR should:
from_df()
method to (Artifact) registries to create artifacts from data framesRecord
classes to avoid API calls (needed for temporary records)delete()
method to recordsOther Todos:
Removed:
Allow loading CSV and TSV artifactsAllow loading Parquet artifacts