Skip to content

Use functions for data fixtures #2522

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

Merged
merged 3 commits into from
Jun 22, 2023
Merged

Use functions for data fixtures #2522

merged 3 commits into from
Jun 22, 2023

Conversation

flying-sheep
Copy link
Member

IDK if I prefer this.

@flying-sheep flying-sheep requested a review from ivirshup June 20, 2023 14:28
Comment on lines -120 to +124
pbmc = pbmc3k_normalized[::6].copy()
pbmc_full = pbmc3k_normalized()
pbmc = pbmc_full[::6].copy()
pbmc.X = pbmc.X.astype(np.float64)
chunked = sc.pp.pca(pbmc3k_normalized, chunked=True, copy=True)
default = sc.pp.pca(pbmc3k_normalized, copy=True)
chunked = sc.pp.pca(pbmc_full, chunked=True, copy=True)
default = sc.pp.pca(pbmc_full, copy=True)
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 prefer the original version here

@codecov
Copy link

codecov bot commented Jun 20, 2023

Codecov Report

Merging #2522 (2753e48) into test-utils (9e21b23) will decrease coverage by 0.48%.
The diff coverage is 100.00%.

Additional details and impacted files
@@              Coverage Diff               @@
##           test-utils    #2522      +/-   ##
==============================================
- Coverage       72.20%   71.73%   -0.48%     
==============================================
  Files             103      103              
  Lines           11687    11688       +1     
==============================================
- Hits             8439     8384      -55     
- Misses           3248     3304      +56     
Impacted Files Coverage Δ
scanpy/testing/_pytest/fixtures/data.py 100.00% <100.00%> (ø)

... and 11 files with indirect coverage changes

@flying-sheep flying-sheep marked this pull request as ready for review June 22, 2023 14:02
@flying-sheep flying-sheep merged commit 731aaef into test-utils Jun 22, 2023
@flying-sheep flying-sheep deleted the test-utils-funcs branch June 22, 2023 14:02
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.

1 participant