promote redirectIO - #74
Conversation
Codecov Report
@@ Coverage Diff @@
## master #74 +/- ##
==========================================
+ Coverage 27.79% 28.09% +0.29%
==========================================
Files 26 25 -1
Lines 2342 2342
==========================================
+ Hits 651 658 +7
+ Misses 1691 1684 -7
Continue to review full report at Codecov.
|
sseraj
left a comment
There was a problem hiding this comment.
Two comments:
- I'm fine with the change, but is this essentially a judgment call about which level to promote the function to? I think I suggested not promoting the functions to @akleb to avoid making this decision.
- Should we rename redirectIO.py to avoid any confusion?
Or move the functions into fileIO.py |
|
Yeah happy to have a discussion about this. I think explicitly calling the file name is a bit silly and unnecessarily adds stuff to runscripts (this is a |
|
I don't really agree with promoting functions. Isn't this the reason that I have problems with MPI getting imported when trying to use geo_utils? Pygeo was importing everything at once? |
|
After some discussion with @nwu63, we concluded:
|
|
@akleb are you happy with this? |
There was a problem hiding this comment.
I have had this discussion with @nwu63 before, but in general I like the explicit import statements, but I understand the convenience. IMO promoting is too often exploited to mask poor naming of modules/classes/functions (not the case here). That said, I think the guidelines you guys suggest are good. Will wait to merge to allow @akleb to comment.
|
I am good with sub package level promotion. |
|
Maybe we can have a discussion on this topic, but the reason I wanted to promote to the subpackage level is because
I think this is a good compromise between having everything in the top level as we did before, vs. having fully explicit imports containing the file name. We should, however, phase out stuff in the top level |
Purpose
this PR promotes redirectIO to the
utilssub-package, so that users can useinstead of
Expected time until merged
Hopefully the same day since there will be a failed test which depends on this.
Type of change
Testing
None
Checklist
flake8andblackto make sure the code adheres to PEP-8 and is consistently formatted