diff --git a/src/view/frm_stream_gage_docwidget.py b/src/view/frm_stream_gage_docwidget.py index e07f6da..8a25c2a 100644 --- a/src/view/frm_stream_gage_docwidget.py +++ b/src/view/frm_stream_gage_docwidget.py @@ -159,6 +159,8 @@ def load_discharge_plot(self): disch = [item[1] for item in data] # remove empty string values disch = [item if item != '' else None for item in disch] + # Remove non float values + disch = [item if item is None or isinstance(item, (int, float)) else None for item in disch] self._static_ax.plot(dates, disch, ".") self._static_ax.set_ylabel('Discharge (CFS)') self._static_ax.set_xlabel('Date')