diff --git a/metplotpy/plots/line/line.py b/metplotpy/plots/line/line.py index 54ac8b9a..7aa1d831 100644 --- a/metplotpy/plots/line/line.py +++ b/metplotpy/plots/line/line.py @@ -695,7 +695,7 @@ def write_html(self) -> None: # save html self.figure.write_html(html_name, include_plotlyjs=False) - self.line_logger.info(f"Finished writing to html file: {datetime.now()}") + logger.info(f"Finished writing to html file: {datetime.now()}") def write_output_file(self) -> None: """ diff --git a/test/line/nan.points1 b/test/line/nan.points1 new file mode 100644 index 00000000..444d5e5b --- /dev/null +++ b/test/line/nan.points1 @@ -0,0 +1,3 @@ +NaN NaN NaN NaN 14.182521 14.703459 0.216470 0.121860 0.311080 +14.615340 14.336420 14.894260 14.645345 14.338789 14.951901 0.022085 -0.056724 0.100894 +14.858610 NaN 15.168714 14.981590 14.720549 15.242631 -0.076490 -0.170358 0.017378 diff --git a/test/line/test_line_plot.py b/test/line/test_line_plot.py index 9f2d976f..203de672 100644 --- a/test/line/test_line_plot.py +++ b/test/line/test_line_plot.py @@ -122,7 +122,7 @@ def test_no_nans_in_points_files(): assert nans_found == False # Verify that the nan.points1 file does indeed trigger a "nans_found" - with open("./intermed_files/nan.points1", "r") as f: + with open("./nan.points1", "r") as f: data = f.read() if "NaN" in data: nans_found = True @@ -140,7 +140,6 @@ def test_no_nans_in_points_files(): os.remove(os.path.join(path, plot_file)) os.remove(os.path.join(intermed_path, points_file_1)) os.remove(os.path.join(intermed_path, points_file_2)) - os.remove("./intermed_files/nan.points1") except OSError as e: # Typically when files have already been removed or # don't exist. Ignore.