Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Rotating more parameters in HexBlock.rotate #1877
Rotating more parameters in HexBlock.rotate #1877
Changes from 45 commits
71ca23d
2221d28
acf46f6
4162cd7
c1e638a
4215ce7
dea16bc
8fcd775
cac6b6f
2cdcd77
7ff0914
ba32f6f
0474b59
e8ded77
4549227
e047b1c
1378938
6662389
af9afb2
d7feb0f
61fabbb
b8e7516
f0b9c1b
82f11de
ea77cc5
50df31c
4c939e7
5f63878
2ebfa57
fdd8c43
3494e4d
bd5e662
0e5c200
a580b3a
bcbac9c
0c944b4
1c174e7
de16d2a
28d16d8
14bb890
63a4095
4741505
ca410f0
586b850
52f7d50
f893079
28d1a35
2ddc312
888c25a
a41bbc6
6839fcf
8b81b3e
c5e52bb
00c487f
e6b7a5a
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Does the rotate method work on things that aren't numpy arrays? Like a standard python list? We probably should work on both data types and test that. We had an error early on where Mongoose was adding the data to the TH parameters as numpy objects and that caused errors.
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.
Arrays and lists only. Tested in bcbac9c
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 don't see how that test is related to the boundary data rotation.
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.
My fault. While the comment is on the boundary data attribute, the call out to "rotate method" focused me elsewhere. I'll modify this test to rotate some boundary params as lists
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.
How does 8b81b3e look?
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 fine with the content of the test. Honestly, it took me a minute to parse what you were doing in
_assignParamData
. It might be worth elaborating on the comment to be like even index parameters in the the names list get an array and odd index parameters in the names list get a list. Also it would help to renamereferenceData
toreferenceArrayData
andlistData
toreferenceListData
.