Skip to content
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

Wrap triangulate #731

Merged
merged 38 commits into from
Mar 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
e2f66fa
Wrap triangulate
weiji14 Dec 14, 2020
e56daee
Merge branch 'main' into gridding/triangulate
weiji14 Aug 10, 2021
3f4090e
Refactor triangulate to use virtualfile_from_data
weiji14 Aug 11, 2021
9abefa6
Merge branch 'main' into gridding/triangulate
weiji14 Sep 3, 2021
bd6bf57
Refactor triangulate implementation to use pygmt.io.load_dataarray
weiji14 Sep 3, 2021
cceb2a6
Alias binary(b), nodata(d), find(e), coltypes(f), header(h), incols(i)
weiji14 Sep 3, 2021
cfb9572
Apply suggestions from code review
weiji14 Sep 10, 2021
c8c779b
Merge branch 'main' into gridding/triangulate
weiji14 Sep 10, 2021
9e67eef
Wrap docstrings to 79 characters
weiji14 Sep 11, 2021
c90f27c
Merge branch 'main' into gridding/triangulate
weiji14 Mar 11, 2022
d00d347
Rename the parameter 'table' to 'data'
weiji14 Mar 11, 2022
df1b179
Refactor test_triangulate to use Table_5_11_mean.xyz instead of tut_ship
weiji14 Mar 12, 2022
0653be8
Refactor test_triangulate_with_outgrid to use xr.testing.assert_allclose
weiji14 Mar 12, 2022
01607b9
Refactor test_triangulate_input_xyz to use pd.testing.assert_frame_equal
weiji14 Mar 12, 2022
2ee8e17
Remove unused load_sample_bathymetry import
weiji14 Mar 12, 2022
0850d74
Implement regular_grid and delaunay_triples staticmethod for triangulate
weiji14 Mar 12, 2022
4db6812
Let list inputs to spacing (I) and incols (i) work
weiji14 Mar 12, 2022
05a3a08
Ensure triangulate.delaunay_triples output_type is valid
weiji14 Mar 12, 2022
4a42b1a
Autocorrect output_type to 'file' if outfile parameter is set
weiji14 Mar 12, 2022
7ae5f6a
Prevent delaunay triples from setting header for non-file output
weiji14 Mar 12, 2022
39c85b0
Allow only str or None inputs to outgrid parameter
weiji14 Mar 12, 2022
ffa699a
Merge branch 'main' into gridding/triangulate
weiji14 Mar 12, 2022
9c17913
Format test_regular_grid_invalid_format docstring
weiji14 Mar 12, 2022
ed0ba2c
Revert "Prevent delaunay triples from setting header for non-file out…
weiji14 Mar 12, 2022
d69c463
Remove region (R) parameter from delaunay_triples
weiji14 Mar 12, 2022
4417da1
Use gmt get GMT_TRIANGULATE to check whether Watson or Shewchuk is used
weiji14 Mar 12, 2022
d88f2bf
Merge branch 'main' into gridding/triangulate
weiji14 Mar 13, 2022
02ac1d8
State that Shewchuk is the default triangulation algorithm
weiji14 Mar 13, 2022
6fa45e6
Merge branch 'main' into gridding/triangulate
weiji14 Mar 13, 2022
9996fe8
Update docstring with better new formatting conventions
weiji14 Mar 13, 2022
b278606
A few more docstring fixes
weiji14 Mar 13, 2022
d3fb5c6
Handle output types better
weiji14 Mar 13, 2022
1f53beb
Format fix
weiji14 Mar 13, 2022
00d3b71
More triangulate docstring modifications
weiji14 Mar 13, 2022
4ce402b
Wrap line to 79 characters
weiji14 Mar 13, 2022
3006668
Actually document the output_type parameter for delaunay_triples
weiji14 Mar 13, 2022
085620e
Remove kwargs_to_strings decorator from methods
weiji14 Mar 14, 2022
d221c96
Merge branch 'main' into gridding/triangulate
weiji14 Mar 14, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions doc/api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ Operations on tabular data
sphdistance
sphinterpolate
surface
triangulate
triangulate.regular_grid
triangulate.delaunay_triples
xyz2grd

Operations on raster data
Expand Down
1 change: 1 addition & 0 deletions pygmt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
sphdistance,
sphinterpolate,
surface,
triangulate,
which,
x2sys_cross,
x2sys_init,
Expand Down
1 change: 1 addition & 0 deletions pygmt/src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
from pygmt.src.subplot import set_panel, subplot
from pygmt.src.surface import surface
from pygmt.src.text import text_ as text # "text" is an argument within "text_"
from pygmt.src.triangulate import triangulate
from pygmt.src.velo import velo
from pygmt.src.which import which
from pygmt.src.wiggle import wiggle
Expand Down
Loading