-
Notifications
You must be signed in to change notification settings - Fork 9
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
Planform implementation #82
Conversation
…tyPlanform for base class for anythign other than the basic DataPlanform. Both subclass the Base Planform.
Codecov Report
@@ Coverage Diff @@
## develop #82 +/- ##
===========================================
+ Coverage 87.50% 88.10% +0.60%
===========================================
Files 9 9
Lines 2912 3027 +115
===========================================
+ Hits 2548 2667 +119
+ Misses 364 360 -4
Continue to review full report at Codecov.
|
…be taken by idx in each of the three axes of the cube. Also implement some better visualization on with pyvista.
…s, change name of plan_set to planform_set:
…or showing diff fields from specialty planform.
@elbeejay non breaking changes, implements 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.
I've had a cursory look and I like most of the changes. The SpecialtyPlanform
in particular seems like a good way to help standardize the different types of planform objects even if it introduces another "object-layer / inheritance-level".
Cool, ya, I think so too. I guess we'll see how things work out and keep iterating, but that's okay 🤷 thanks for taking a look |
Development on an implementation for a
Planform
api consistent with theSection
api.Planform
inherits dimensions from the underlying data cube. The shoreline-related planforms now subclass from aSpecialtyPlanform
which can be used for any planform data that is not just a slice of the cube.NOTE: this includes a non-breaking change for the
cube.show_plan
method. Code will still work, but should be updated to usequick_show
orshow_planform
, see below.Examples:
cube.show_planform()
method now calls theshow()
method of the Planform in question.cube.show_plan()
method has been deprecated, and passes arguments along to the newcube.quick_show()
method.cube.quick_show()
method wrapsPlanform
andSection
to easily show any straight-line slice from the underlying cube. e.g.,cube.quick_show('eta', idx=-1, axis=0)
will show a planform from the last index.todo:
closes #12