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

Compatibility with Palantir>=v1.3.0 #2672

Merged
merged 1 commit into from Oct 16, 2023
Merged

Conversation

katosh
Copy link
Contributor

@katosh katosh commented Sep 25, 2023

This PR resolves Issue #2608 in Scanpy by ensuring compatibility with both Palantir v1.3.0 (function signature) and its earlier versions. This is achieved by substituting the initial keyword argument (data_df) with a positional argument.

The change aligns with Palantir v1.3.0's new optionality to accept AnnData objects as the first argument, making the keyword data_df potentially misleading. Adopting a positional argument ensures compatibility with both new and prior versions of Palantir.

@codecov
Copy link

codecov bot commented Sep 25, 2023

Codecov Report

Merging #2672 (63d0aa8) into master (0d4c6d2) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2672   +/-   ##
=======================================
  Coverage   72.16%   72.16%           
=======================================
  Files         108      108           
  Lines       11908    11908           
=======================================
  Hits         8593     8593           
  Misses       3315     3315           
Files Coverage Δ
scanpy/external/tl/_palantir.py 22.58% <ø> (ø)

@flying-sheep flying-sheep added this to the 1.9.6 milestone Oct 16, 2023
Copy link
Member

@flying-sheep flying-sheep left a comment

Choose a reason for hiding this comment

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

Thanks, this looks good!

@flying-sheep flying-sheep merged commit 395f5a2 into scverse:master Oct 16, 2023
10 of 11 checks passed
meeseeksmachine pushed a commit to meeseeksmachine/scanpy that referenced this pull request Oct 16, 2023
@flying-sheep
Copy link
Member

ah, and I forgot to add release notes. I need to get #2569 done …

@flying-sheep flying-sheep changed the title Compatibility with Palantir<=v1.3.0 Compatibility with Palantir>=v1.3.0 Oct 16, 2023
flying-sheep pushed a commit that referenced this pull request Oct 16, 2023
…0) (#2690)

Co-authored-by: Dominik J. Otto <dominik.otto@gmail.com>
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.

sc.external.tl.palantir uses invalid keywork in run_diffusion_maps()
2 participants