Feat: add moransi#304
Conversation
|
Hi @michalk8, do you have an idea why the checks fail here? The file locally has no syntax errors and also passes the pre-commits I added as part of this PR. Do not know how to handle this best / fix it. |
|
Done. Also, I'd seriously consider refactoring the CI to be more up-to-date. |
|
Why does |
|
I did not set the CI up, I guess @mumichae and I would be very glad for your input to improve this :) |
It is, just from Python 3.8 (would deprecate 3.7 since numpy support ended last December), hence the refactoring. |
|
Thanks so much, @michalk8! |
Are you referring to the .github/workflow content to be updated based on a newer configuration template? I wasn't aware there was an update, what consequences would the current code have of not updated? Would be happy to update, however that would be in a separate PR. |
Would do the following:
The first 2 points I'd say are the one to focus on. |
|
Thanks a lot for the suggestions @michalk8 ! I think we should definitely make things more consistent, if we start using pre-commit (which we hadn't before). But I think this should be separated from Moran's I. I'll open a new issue with a description of what we'd need for pre-commit integration and would suggest we get that merged before the new metric. |
|
Updated version of #303 |
Move helper functions outside, only consider scores > 0, refactor code, reduce default n_hvg
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #304 +/- ##
==========================================
+ Coverage 52.15% 58.16% +6.01%
==========================================
Files 22 23 +1
Lines 1762 1836 +74
==========================================
+ Hits 919 1068 +149
+ Misses 843 768 -75
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Updated version of moran's I PR with pre-commits
A new approach to integrate #245