Skip to content

Commit 68fc193

Browse files
committed
fix import issues and plot_label generation on no info
1 parent 3e05c3b commit 68fc193

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

dms_datastore/auto_screen.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import copy
1010
import pandas as pd
1111
import matplotlib.pyplot as plt
12+
from dms_datastore.logging_config import configure_logging, resolve_loglevel
1213
from dms_datastore.read_ts import *
1314
from vtools.functions.error_detect import *
1415
from vtools.data.timeseries import to_dataframe
@@ -133,7 +134,7 @@ def plot_anomalies(
133134
raise ValueError("Time series could not be plotted")
134135
ax0.legend()
135136
if plot_label is None:
136-
plot_label = f"Station: {station_id} Subloc: {subloc} Param {param}"
137+
plot_label = f"Station: ??? Subloc: ??? Param ???"
137138
ax0.set_title(plot_label)
138139
ts_masked = ts.mask(mask).interpolate(limit=gap_fill_final)
139140
ax1.plot(ts_masked.index, ts_masked.value)

0 commit comments

Comments
 (0)