Commit b9ca682
authored
Fix a failing test due to GMT API change (#556)
The test `test_put_matrix_grid` fails due to recent changes of GMT API
in GenericMappingTools/gmt#3848.
Before this PR, for a matrix grid, calling GMT_Write_Data always writes
the matrix grid as a matrix, no matter the geometry is `GMT_IS_POINT` or
`GMT_IS_SURFACE`.
This PR declares it as a bug (or an improvement). With that PR merged,
`geometry=GMT_IS_POINT` writes a matrix, `geometry=GMT_IS_SURFACE`
writes a the matrix grid as a netCDF file.
This test expects a matrix, but the new API writes a netCDF grid.
That's why it fails.
This PR fixes the issue by simply changing `GMT_IS_SURFACE` to
`GMT_IS_POINT`, so that the test can pass for GMT 6.1.0, 6.1 and master
branches.1 parent 3b306c6 commit b9ca682
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
0 commit comments