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

CI - Reusable workflows #392

Merged
merged 9 commits into from
Feb 24, 2023
Merged

CI - Reusable workflows #392

merged 9 commits into from
Feb 24, 2023

Conversation

PrimozGodec
Copy link
Contributor

Description of changes

Reusable workflow for testing and automatic rebase

Includes
  • Code changes
  • Tests
  • Documentation

setup.py Show resolved Hide resolved
@@ -198,7 +198,8 @@ def transform(self, data):
else:
Xc = INV_LINKS[self.link](LINKS[self.link](Xc) - Z.dot(W))
new_data = data.copy()
new_data.X = Xc
with new_data.unlocked(new_data.X):
Copy link
Member

Choose a reason for hiding this comment

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

Here we only need to unlock the reference (would work even if contents of X would be unlockable)

new_data.X = new_data.X >= self.threshold
elif self.condition == Binarize.Greater:
new_data.X = new_data.X > self.threshold
with new_data.unlocked(new_data.X):
Copy link
Member

Choose a reason for hiding this comment

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

Same, unlock only reference

@@ -147,9 +150,11 @@ def __init__(self, lower_bound=None, upper_bound=None):
def __call__(self, data):
new_data = data.copy()
with np.errstate(invalid="ignore"):
new_data.X = np.nan_to_num(zscore(data.X))
with new_data.unlocked(new_data.X):
Copy link
Member

Choose a reason for hiding this comment

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

Both should only unlock reference

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Second one seems to need actual unlock of array.

@codecov-commenter
Copy link

codecov-commenter commented Feb 20, 2023

Codecov Report

Merging #392 (edbed61) into master (45fb6db) will increase coverage by 0.07%.
The diff coverage is 94.04%.

❗ Current head edbed61 differs from pull request most recent head 0d3db91. Consider uploading reports for the commit 0d3db91 to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #392      +/-   ##
==========================================
+ Coverage   80.49%   80.57%   +0.07%     
==========================================
  Files          21       21              
  Lines        5450     5471      +21     
==========================================
+ Hits         4387     4408      +21     
  Misses       1063     1063              
Impacted Files Coverage Δ
orangecontrib/single_cell/widgets/owmultisample.py 84.37% <75.00%> (+0.04%) ⬆️
...angecontrib/single_cell/widgets/owaligndatasets.py 77.14% <82.35%> (+0.17%) ⬆️
orangecontrib/single_cell/preprocess/scbnorm.py 94.48% <100.00%> (+0.04%) ⬆️
...angecontrib/single_cell/preprocess/scpreprocess.py 97.14% <100.00%> (+0.06%) ⬆️
orangecontrib/single_cell/widgets/load_data.py 92.88% <100.00%> (+0.02%) ⬆️
orangecontrib/single_cell/widgets/owbatchnorm.py 89.79% <100.00%> (+0.15%) ⬆️
orangecontrib/single_cell/widgets/owdotmatrix.py 88.60% <100.00%> (+0.09%) ⬆️
orangecontrib/single_cell/widgets/owdropout.py 90.00% <100.00%> (+0.03%) ⬆️
orangecontrib/single_cell/widgets/owscorecells.py 82.16% <100.00%> (+0.09%) ⬆️
...rangecontrib/single_cell/widgets/owscpreprocess.py 88.45% <100.00%> (+0.05%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 45fb6db...0d3db91. Read the comment docs.

@PrimozGodec PrimozGodec force-pushed the reusable-workflows branch 2 times, most recently from 0ee6212 to 5954734 Compare February 20, 2023 09:11
@PrimozGodec
Copy link
Contributor Author

PrimozGodec commented Feb 20, 2023

@markotoplak I changed what you suggested.

There are some new failing tests here cased by adding pyqt6 testing in matrix (orange-ci-cd repo). It is fixed in #393 and should be merged after.
Python 3.11 is failing since Numba still needs to be python 3.11 ready.

@markotoplak markotoplak merged commit 1083204 into master Feb 24, 2023
@markotoplak
Copy link
Member

Thanks, @PrimozGodec.

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.

4 participants