Skip to content

Commit f97d92e

Browse files
committed
Fix test_x2sys_cross.py
1 parent a7a3e3a commit f97d92e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pygmt/tests/test_x2sys_cross.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,9 @@ def test_x2sys_cross_input_dataframe_with_nan(tracks):
142142
tag=tag, fmtfile="xyz", suffix="xyzt", units=["de", "se"], force=True
143143
)
144144

145-
tracks[0].loc[tracks[0]["z"] < -15, "z"] = np.nan # set some values to NaN
146-
output = x2sys_cross(tracks=tracks, tag=tag, coe="i")
145+
newtracks = tracks.copy()
146+
newtracks[0].loc[tracks[0]["z"] < -15, "z"] = np.nan # set some values to NaN
147+
output = x2sys_cross(tracks=newtracks, tag=tag, coe="i")
147148

148149
assert isinstance(output, pd.DataFrame)
149150
assert output.shape == (3, 12)

0 commit comments

Comments
 (0)