-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature/issue 27 function to store artifact #42
base: main
Are you sure you want to change the base?
Conversation
for more information, see https://pre-commit.ci
…o feature/issue-27-function-to-store-artifact
…/github.com/theislab/spatialdata-db into feature/issue-27-function-to-store-artifact
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
for more information, see https://pre-commit.ci
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 really don't understand the purpose of this PR. Let's discuss it on Slack.
import lamindb as ln | ||
|
||
|
||
def store_dataset( |
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.
Aren't we using Google docstring style?
""" | ||
Store a cached artifact in a specified directory, rename it if needed. | ||
|
||
Parameters |
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.
No types and defaults in docstrings, please. They're all in the function signature.
import lamindb.setup as ln_setup | ||
|
||
|
||
def pytest_sessionstart(session): |
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.
The yield version that I send you already does the setup and cleanup so you don't need to divide it into two functions. But nbd
Summary
Implements issue https://github.com/theislab/spatialdata-db-pm/issues/27
Adds a function that stores a cached dataset locally.
Known Issue/Missing Feature