Skip to content

Commit 4716b4e

Browse files
committed
Fix moss functional test plots when not called alone.
1 parent 97f4f5b commit 4716b4e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

testing/functional_testing/moss/moss_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def plot_output(self, run_dir: str, save_figs: bool, plot_dir: str):
3838
plot_dir (str): plot directory to save the figures to
3939
"""
4040
print("Making plots")
41+
plt.close("all")
4142

4243
# read in moss data
4344
moss_dat = xr.open_dataset(os.path.join(run_dir, self.out_file))

0 commit comments

Comments
 (0)