-
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
Added function to get block info #43
Conversation
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.
Looks good! Just to double check, did you verify that the block info from the reference mesh is consistent with the grid file?
I had checked that the block info after these changes are the same as before the changes. I now just counted the block dimensions in Tecplot and the number themselves look correct |
Codecov Report
@@ Coverage Diff @@
## master #43 +/- ##
=========================================
Coverage ? 12.76%
=========================================
Files ? 3
Lines ? 2202
Branches ? 0
=========================================
Hits ? 281
Misses ? 1921
Partials ? 0 Continue to review full report at Codecov.
|
@joanibal could you take a look when you have a chance? There are 2 other PRs waiting on this so it'd be good to get this in. |
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.
Overall, this is fine, just a few comments. Based on the response, I might push some minor updates if that is ok.
@nwu63 mentioned that there are couples of PRs waiting on this, but there is only one linked here. What is the second one?
The second one is mdolab/pyhyp#48, which will finally show coverage after we switch to using BaseRegTest (and remove the |
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.
Feel free to push changes. I think we should converge on the pyHyp tests before merging this though in case any other changes have to be made.
def train_getTotalCellsNodes(self): | ||
self.test_getTotalCellsNodes(train=True) | ||
|
||
def test_getWallCellsNodes(self, train=False): |
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.
I'm not a fan of this pattern. I'd rather have just one test, but that seem like a bigger issue than just this PR
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.
I think it makes sense to have separate tests for each function because then it is easy to see what is broken if the test fails. I don't like having a separate train function and ref file for each test though.
What's left to be done here @sseraj? |
I'm converting this to a draft until we settle on how to test pyHyp. If we decide on using |
We decided not to use this in the pyHyp tests, but I think it's worth merging anyway. |
@sseraj, ok sounds good. I will push few changes. |
Purpose
I made a few changes mostly related to retrieving block information in Python:
getBlockInfo
that returns a dictionary of the block informationprintBlockInfo
to usegetBlockInfo
getBlockInfo
BaseRegTest
Related PR on pyHyp: mdolab/pyhyp#52
Type of change
What types of change is it?
Select the appropriate type(s) that describe this PR
Testing
Explain the steps needed to test the new code to verify that it does indeed address the issue and produce the expected behavior.
Checklist
Put an
x
in the boxes that apply.flake8
andblack
to make sure the code adheres to PEP-8 and is consistently formatted