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

Feature/issue 27 function to store artifact #42

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

Conversation

zimea
Copy link
Contributor

@zimea zimea commented Feb 17, 2025

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

  • The suppression of the LaminDB warning about untracked code is not included in this PR because no working approach has been found.

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@zimea zimea requested review from timtreis and Zethson February 18, 2025 10:00
Copy link
Member

@Zethson Zethson left a 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(
Copy link
Member

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
Copy link
Member

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):
Copy link
Member

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

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.

2 participants