Skip to content

Commit 1b658c7

Browse files
committed
Revert "Remove some info level verbose messages from x2sys_cross"
This reverts commit 01c5ee5.
1 parent 8efb415 commit 1b658c7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pygmt/tests/test_x2sys_cross.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def test_x2sys_cross_input_file_output_file(mock_x2sys_home):
4545
x2sys_init(tag=tag, fmtfile="xyz", force=True)
4646
outfile = os.path.join(tmpdir, "tmp_coe.txt")
4747
output = x2sys_cross(
48-
tracks=["@tut_ship.xyz"], tag=tag, coe="i", outfile=outfile
48+
tracks=["@tut_ship.xyz"], tag=tag, coe="i", outfile=outfile, verbose="i"
4949
)
5050

5151
assert output is None # check that output is None since outfile is set
@@ -63,7 +63,7 @@ def test_x2sys_cross_input_file_output_dataframe(mock_x2sys_home):
6363
with TemporaryDirectory(prefix="X2SYS", dir=os.getcwd()) as tmpdir:
6464
tag = os.path.basename(tmpdir)
6565
x2sys_init(tag=tag, fmtfile="xyz", force=True)
66-
output = x2sys_cross(tracks=["@tut_ship.xyz"], tag=tag, coe="i")
66+
output = x2sys_cross(tracks=["@tut_ship.xyz"], tag=tag, coe="i", verbose="i")
6767

6868
assert isinstance(output, pd.DataFrame)
6969
assert output.shape == (14294, 12)
@@ -111,7 +111,9 @@ def test_x2sys_cross_input_two_filenames(mock_x2sys_home):
111111
with open(os.path.join(os.getcwd(), f"track_{i}.xyz"), mode="w") as fname:
112112
np.savetxt(fname=fname, X=np.random.rand(10, 3))
113113

114-
output = x2sys_cross(tracks=["track_0.xyz", "track_1.xyz"], tag=tag, coe="e")
114+
output = x2sys_cross(
115+
tracks=["track_0.xyz", "track_1.xyz"], tag=tag, coe="e", verbose="i"
116+
)
115117

116118
assert isinstance(output, pd.DataFrame)
117119
assert output.shape == (24, 12)

0 commit comments

Comments
 (0)