-
Notifications
You must be signed in to change notification settings - Fork 24
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
Fix bug with multiple regions in PCA and snp_allele_counts #338
Fix bug with multiple regions in PCA and snp_allele_counts #338
Conversation
alimanfoo
commented
Feb 22, 2023
•
edited
Loading
edited
- Resolves Anopheles PCA cannot handle list of regions #336
- Also resolves Better caching for Ag3.pca() #266 along the way
- Also upgrades pre-commit hooks because of install problems on CI
# whitespace before ':' - doesn't work well with black | ||
E203 | ||
# module level import not at top of file | ||
E402 | ||
# line too long - let black worry about that | ||
E501 | ||
# do not assign a lambda expression, use a def | ||
E731 | ||
# line break before binary operator | ||
W503 |
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.
This is needed because of upgrading flake8 in pre-commit config.
# https://pre-commit.com/ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.3.0 | ||
rev: v4.4.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
# isort should run before black as black sometimes tweaks the isort output | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.10.1 | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
# https://github.com/python/black#version-control-integration | ||
- repo: https://github.com/psf/black | ||
rev: 22.10.0 | ||
rev: 23.1.0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/keewis/blackdoc | ||
rev: v0.3.8 | ||
hooks: | ||
- id: blackdoc | ||
- repo: https://github.com/pycqa/flake8 | ||
rev: 5.0.4 | ||
rev: 6.0.0 | ||
hooks: | ||
- id: flake8 |
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.
Made these upgrades because CI was failing with problems installing the pre-commit hooks.
@@ -4494,7 +4519,7 @@ def _read_cohort_metadata(self, *, sample_set): | |||
}, | |||
inplace=True, | |||
) | |||
except FileNotFoundError: | |||
except Exception: |
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.
This exception seems to have changed, needed to broaden.
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.
LGTM.
Thanks for the helpful inline comments @alimanfoo . How do you do that?
No worries - I just go into the files tab and add single comments, a bit like doing a code review on my own PR. |