-
Notifications
You must be signed in to change notification settings - Fork 15
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
How to access data
parameter value of ln.Artifact() constructor
#2396
Comments
Hi, i am not really sure what do you mean by accessing |
h5ad_artifact = ln.Artifact(
"./some_local_file.h5ad",
key="some_key/some_local_file.h5ad",
description="Some description",
type="dataset",
)
h5ad_artifact.data == "./some_local_file.h5ad" # Would be True Currently, as far as I understand, it is not possible to recover what the |
Maybe |
Before saving it is |
Great, that is what I was looking for, thank you! |
Add a description
Hi,
Is there a way to access the value of the
data
parameter of theln.Artifact
constructor (Assuming the artifact was created using this constructor as opposed tofrom_df
) if I only have a variable containing the resultingartifact
instance?I realize this is likely an anti-pattern which explains why there is not such a field listed in the public API docs at https://docs.lamin.ai/lamindb.artifact. However it would allow running
VitessceConfig.widget()
in a notebook such as https://github.com/laminlabs/lamin-spatial/blob/main/docs/vitessce.ipynb (for example, serving a local AnnData-Zarr directory onlocalhost
to allow rendering the widget) prior to runningsave_vitessce_config
orartifact.save()
. If thedata
value is not available (for example, due to the artifact being fully remote or constructed via a different method such asfrom_df
, or referencing a local directory that does not exist), Vitessce could throw an error that lets the user know this was the case.The text was updated successfully, but these errors were encountered: