From 5cb2cee71335c57e347131cf0e05a777d20bdd18 Mon Sep 17 00:00:00 2001 From: Wei Ji Date: Tue, 23 Jun 2020 23:42:01 +1200 Subject: [PATCH] Lint --- pygmt/clib/session.py | 2 +- pygmt/tests/test_grdview.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pygmt/clib/session.py b/pygmt/clib/session.py index 47ccb89756b..4eef5dc707e 100644 --- a/pygmt/clib/session.py +++ b/pygmt/clib/session.py @@ -1240,7 +1240,7 @@ def virtualfile_from_grid(self, grid, registration=None): if registration is None: # Automatically detect whether the NetCDF source of an # xarray.DataArray grid uses gridline or pixel registration. - # Defaults to gridline registration if grdinfo cannot find a source file. + # Defaults to gridline if grdinfo cannot find any source file. registration = "GMT_GRID_NODE_REG" # default to gridline registration try: gridfile = grid.encoding["source"] diff --git a/pygmt/tests/test_grdview.py b/pygmt/tests/test_grdview.py index a3e29c7dd23..ab45a3364b5 100644 --- a/pygmt/tests/test_grdview.py +++ b/pygmt/tests/test_grdview.py @@ -116,7 +116,7 @@ def test_grdview_with_cmap_for_perspective_surface_plot(grid): """ fig = Figure() fig.grdview( - grid=grid, cmap="oleron", surftype="s", perspective=[225, 30], zscale=0.005, + grid=grid, cmap="oleron", surftype="s", perspective=[225, 30], zscale=0.005 ) return fig