-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow prism_layer to take xarray objects as arguments (#243)
Extend the support of prism_layer to accept surface, reference, and properties as xarray.DataArray. Improve the test functions by creating a pytest fixture that parametrizes the data types of the output arrays: either Numpy arrays or xarray.DataArrays. Generate a new pytest fixture that returns a layer of prisms with some holes (missing prisms), ready to be used as the expected results of some test functions. Parametrize the field on each test function that computes gravitational fields of prism layers. Simplify the prism_layer_topo example so the surface and the density of the layer are passed as xarray objects.
- Loading branch information
1 parent
a753db1
commit aed37e3
Showing
3 changed files
with
128 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters