Skip to content

Copy anndata in metric decorator - #819

Merged
scottgigante-immunai merged 1 commit into
openproblems-bio:mainfrom
scottgigante-immunai:infra/metrics_copy
Feb 8, 2023
Merged

scottgigante-immunai merged 1 commit into
openproblems-bio:mainfrom
scottgigante-immunai:infra/metrics_copy

Conversation

@scottgigante-immunai

Copy link
Copy Markdown
Collaborator

No description provided.

@github-actions

github-actions Bot commented Feb 8, 2023

Copy link
Copy Markdown
Contributor

Current build status

@LuckyMD LuckyMD left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Does position matter in metrics with this decorator now? Does adata have to be in the first slot?

@scottgigante-immunai

Copy link
Copy Markdown
Collaborator Author

It does, but it always did as this is how metrics are run and tested anyway. What is does mean is that if for whatever reason we ever change that, we now need to change it in two places -- but I doubt we would.

@LuckyMD

LuckyMD commented Feb 8, 2023

Copy link
Copy Markdown
Collaborator

Good point about the testing. Agreed that we likely wouldn't change this (in v1 anyway ^^).

@codecov

codecov Bot commented Feb 8, 2023

Copy link
Copy Markdown

Codecov Report

Base: 95.61% // Head: 95.70% // Increases project coverage by +0.08% 🎉

Coverage data is based on head (af4f54e) compared to base (2da81a9).
Patch coverage: 98.59% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #819      +/-   ##
==========================================
+ Coverage   95.61%   95.70%   +0.08%     
==========================================
  Files         184      186       +2     
  Lines        4949     5000      +51     
  Branches      273      272       -1     
==========================================
+ Hits         4732     4785      +53     
  Misses        138      138              
+ Partials       79       77       -2     
Flag Coverage Δ
unittests 95.70% <98.59%> (+0.08%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
openproblems/tasks/denoising/methods/alra.py 100.00% <ø> (ø)
...tasks/dimensionality_reduction/methods/baseline.py 89.65% <85.71%> (-2.46%) ⬇️
...sks/dimensionality_reduction/datasets/zebrafish.py 100.00% <100.00%> (ø)
.../dimensionality_reduction/methods/diffusion_map.py 100.00% <100.00%> (ø)
.../tasks/dimensionality_reduction/metrics/density.py 100.00% <100.00%> (+4.65%) ⬆️
...ionality_reduction/metrics/distance_correlation.py 100.00% <100.00%> (ø)
openproblems/tools/decorators.py 100.00% <100.00%> (ø)
test/test_task_dimensionality_reduction.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@scottgigante-immunai
scottgigante-immunai merged commit fe02c56 into openproblems-bio:main Feb 8, 2023
@scottgigante-immunai
scottgigante-immunai deleted the infra/metrics_copy branch February 8, 2023 18:24
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