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

✨ Add .obsm and .layers to MappedCollection #1562

Merged
merged 11 commits into from
Apr 12, 2024
Merged

✨ Add .obsm and .layers to MappedCollection #1562

merged 11 commits into from
Apr 12, 2024

Conversation

Koncopd
Copy link
Member

@Koncopd Koncopd commented Apr 11, 2024

@Koncopd Koncopd force-pushed the mapped_add_keys branch 3 times, most recently from dddac74 to 1912feb Compare April 12, 2024 11:50
Copy link

github-actions bot commented Apr 12, 2024

@github-actions github-actions bot temporarily deployed to pull request April 12, 2024 17:50 Inactive
Copy link

codecov bot commented Apr 12, 2024

Codecov Report

Attention: Patch coverage is 95.65217% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 90.00%. Comparing base (3eecfcb) to head (e8e8d07).

❗ Current head e8e8d07 differs from pull request most recent head 014d9a2. Consider uploading reports for the commit 014d9a2 to get more accurate results

Files Patch % Lines
lamindb/core/_mapped_collection.py 95.52% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1562      +/-   ##
==========================================
+ Coverage   89.97%   90.00%   +0.03%     
==========================================
  Files          50       50              
  Lines        5227     5253      +26     
==========================================
+ Hits         4703     4728      +25     
- Misses        524      525       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@github-actions github-actions bot temporarily deployed to pull request April 12, 2024 18:07 Inactive
@github-actions github-actions bot temporarily deployed to pull request April 12, 2024 18:58 Inactive
@github-actions github-actions bot temporarily deployed to pull request April 12, 2024 19:11 Inactive
@@ -209,7 +209,9 @@ def from_artifacts(artifacts: Iterable[Artifact]) -> tuple[str, dict[str, str]]:
# docstring handled through attach_func_to_class_method
def mapped(
self,
label_keys: str | list[str] | None = None,
layers_keys: str | list[str] | None = None,
obs_keys: str | list[str] | None = None,
Copy link
Member

@falexwolf falexwolf Apr 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wouldn't make this change without first deprecating label_keys, Sergei. It's going to break people's code. I mean, you could simply add one line of logic that feeds label_keys into obs_keys and prints a warning, and thing things wouldn't break.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure it makes a difference taking into account all other changes like key names changes in __getitem__.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's alright, I'll make a clear note in the changelog! I'm merging!

@falexwolf falexwolf changed the title ✨ Rename keys and add layers and obsm keys to MappedCollection ✨ Add .obsm and .layers to MappedCollection Apr 12, 2024
@falexwolf falexwolf merged commit 36bfd02 into main Apr 12, 2024
8 checks passed
@falexwolf falexwolf deleted the mapped_add_keys branch April 12, 2024 21:22
@github-actions github-actions bot temporarily deployed to pull request April 12, 2024 21:29 Inactive
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