-
Notifications
You must be signed in to change notification settings - Fork 45
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
Speed up wave.resource module #352
base: develop
Are you sure you want to change the base?
Conversation
This reverts commit a2d5f61.
…aframes and 2+ var datasets
@ssolson This PR is ready for review. Tests should pass now With some modifications to the type handling functions, and an appropriate |
|
Pylint added new warnings around the way it wants users to handle positional arguments. I'll address it. |
Addressed in #357 Let's merge #357 then make sure the tests pass here. |
Thanks @ssolson. I'll merge that in here and fix a couple minor items with some examples |
@akeeste TODO:
|
@ssolson this PR is now ready for review and all tests are passing. I tightened up the timing on the environmental contours, 3 extreme response, and PacWave examples. A straight forward test case on the difference in computational expense is using a wave resource function (e.g. |
@ssolson This is a follow-up to my other wave PRs and resolves #331. Handling the various edge cases robustly in pure numpy is difficult, so I want to first resolve #331 by using DataArrays throughout the wave resource functions instead of Datasets.
Similar to Ryan's testing mentioned in #331, I found that using DataArrays/Pandas has a 1000x speed up vs Datasets for very large input data. This should restore MHKiT's speed to it's previous state. Using a pure numpy base would have an additional 5-10x speed up from DataArrays, but I think the current work with DataArrays will: