Skip to content

Commit

Permalink
ENH: Updating tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamTheisen committed Oct 11, 2024
1 parent f3266dc commit a182317
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/plotting/test_xsectiondisplay.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def test_xsection_errors():

display = XSectionDisplay(ds, figsize=(10, 8), subplot_shape=(1,))
with np.testing.assert_raises(RuntimeError):
display.plot_xsection(None, 'backscatter', x='time', cmap='HomeyerRainbow')
display.plot_xsection('backscatter', x='time', cmap='HomeyerRainbow')

ds.close()
matplotlib.pyplot.close(fig=display.fig)
Expand All @@ -39,9 +39,7 @@ def test_xsection_plot():
visst_ds = act.io.arm.read_arm_netcdf(sample_files.EXAMPLE_CEIL1)

xsection = XSectionDisplay(visst_ds, figsize=(10, 8))
xsection.plot_xsection(
None, 'backscatter', x='time', y='range', cmap='coolwarm', vmin=0, vmax=320
)
xsection.plot_xsection('backscatter', x='time', y='range', cmap='coolwarm', vmin=0, vmax=320)
visst_ds.close()

try:
Expand All @@ -63,7 +61,6 @@ def test_xsection_plot_map():
):
xsection = XSectionDisplay(radar_ds, figsize=(15, 8))
xsection.plot_xsection_map(
None,
'ir_temperature',
vmin=220,
vmax=300,
Expand Down

0 comments on commit a182317

Please sign in to comment.