-
Notifications
You must be signed in to change notification settings - Fork 36
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
load_profiles should work with PurePath types #285
Conversation
I've added a test https://github.com/cytomining/pycytominer/actions/runs/5149178757/jobs/9271863384?pr=285#step:5:118 which fails with the current implementation |
Codecov Report
@@ Coverage Diff @@
## master #285 +/- ##
==========================================
+ Coverage 95.00% 95.12% +0.11%
==========================================
Files 57 57
Lines 3046 3057 +11
==========================================
+ Hits 2894 2908 +14
+ Misses 152 149 -3
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
Nice work! Overall I felt good about the changes here and left a few comments + suggestions on things that might warrant attention. Please don't hesitate to let me know if you have any questions.
Co-authored-by: Dave Bunten <[email protected]>
this change required propagation to other files
adding various other improveements as well including testing load_profiles() with parquet and other software gardening
it also seems that my black formatting may have introduced some unintended line changes. Is there a way for me to avoid these sorts of updates? I thought pre-commit solved this? |
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.
Nice changes! Thanks for replying to the comments and for making updates. I left a few more suggestions with this review.
On the question about Black / pre-commit formatting: I did notice the formatting changes and when I ran black --check
on modified Python files it seemed happy with things. To a certain extent, this might be a lot of what we start to see in terms of gradual integration of Black throughout (thinking of incoming changes with #279).
To avoid changes to certain lines we could add # fmt: off
above the lines in question (reference). I also wonder if adding additional configuration options specific to pycytominer
's opinion about formatting could help (reference, specifically the line-length
option may clarify things if we chose to modify this from the default). Using a file-based configuration for Black through a TOML file might also follow or prepare us for changes in #278 .
Separately, I wonder too if a future PR which only applies Black to all files could help with avoiding confusion mid-PR for lines which are formatted differently (theoretically this would be a style-only change, meaning no testing / operational concerns should appear).
Thanks for the re-review! I will merge after tests pass:
I think this would be a good idea, although i am totally fine with having default opinions, which will reduce maintenance burden.
This sounds like a great idea! Maybe something for Dayna to contribute? :) |
Description
Fixing the issue @ErinWeisbart described in #284 - the issue is within the
load_profiles()
function and a type check that fails to account forpathlib.PurePath()
objects.What is the nature of your change?
Checklist
Please ensure that all boxes are checked before indicating that a pull request is ready for review.