-
Notifications
You must be signed in to change notification settings - Fork 12
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
Conversation
dddac74
to
1912feb
Compare
1912feb
to
918e9f3
Compare
Codecov ReportAttention: Patch coverage is
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. |
@@ -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, |
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 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.
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 am not sure it makes a difference taking into account all other changes like key names changes in __getitem__
.
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.
It's alright, I'll make a clear note in the changelog! I'm merging!
.obsm
and .layers
to MappedCollection
Also laminlabs/lnschema-core#367