Skip to content

Commit 5f38238

Browse files
seismanleouieda
authored andcommitted
Fix formatting issues (#233)
1 parent 43badcd commit 5f38238

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

gmt/tests/test_clib.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ def test_create_data_grid_range():
311311
family="GMT_IS_GRID|GMT_VIA_MATRIX",
312312
geometry="GMT_IS_SURFACE",
313313
mode="GMT_CONTAINER_ONLY",
314-
ranges=[150., 250., -20., 20.],
314+
ranges=[150.0, 250.0, -20.0, 20.0],
315315
inc=[0.1, 0.2],
316316
)
317317

@@ -326,7 +326,7 @@ def test_create_data_fails():
326326
geometry="GMT_IS_SURFACE",
327327
mode="Not_a_valid_mode",
328328
dim=[0, 0, 1, 0],
329-
ranges=[150., 250., -20., 20.],
329+
ranges=[150.0, 250.0, -20.0, 20.0],
330330
inc=[0.1, 0.2],
331331
)
332332
# Passing in invalid geometry
@@ -337,7 +337,7 @@ def test_create_data_fails():
337337
geometry="Not_a_valid_geometry",
338338
mode="GMT_CONTAINER_ONLY",
339339
dim=[0, 0, 1, 0],
340-
ranges=[150., 250., -20., 20.],
340+
ranges=[150.0, 250.0, -20.0, 20.0],
341341
inc=[0.1, 0.2],
342342
)
343343

@@ -740,7 +740,7 @@ def test_extract_region_two_figures():
740740
lib.call_module("figure", "{} -".format(fig2._name))
741741
with clib.Session() as lib:
742742
wesn2 = lib.extract_region()
743-
npt.assert_allclose(wesn2, np.array([-165., -150., 15., 25.]))
743+
npt.assert_allclose(wesn2, np.array([-165.0, -150.0, 15.0, 25.0]))
744744

745745

746746
def test_write_data_fails():

0 commit comments

Comments
 (0)