-
Notifications
You must be signed in to change notification settings - Fork 13
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
🐛 Let Curator.from_tiledbsoma()
validate and annotate all .obs
columns
#2287
Conversation
lamindb/_curate.py
Outdated
@@ -1168,8 +1171,12 @@ def _check_save_keys(self): | |||
with _open_tiledbsoma(self._experiment_uri, mode="r") as experiment: | |||
experiment_obs = experiment.obs | |||
self._n_obs = len(experiment_obs) | |||
valid_obs_keys = [k for k in experiment_obs.keys() if k != "soma_joinid"] | |||
valid_obs_keys = [ | |||
k for k in experiment_obs.schema.names if k != "soma_joinid" |
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.
Please read from the saved schema here to avoid redundant requests, maybe they cache but let’s be careful anyways.
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.
You save the schema on the next line anyways.
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.
Done!
Thank you for fixing, this is great, just one small thing here to correct. |
.obs
columns
.obs
columnsCurator.from_tiledbsoma()
validate and annotate all .obs
columns
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2287 +/- ##
=======================================
Coverage 92.82% 92.82%
=======================================
Files 55 55
Lines 7202 7208 +6
=======================================
+ Hits 6685 6691 +6
Misses 517 517 ☔ View full report in Codecov by Sentry. |
Fixes:
Curator.from_tiledbsoma()
omits simple feature dtypes in the dataset #2285