Skip to content

Commit

Permalink
Clean up Stream Gages Data #553
Browse files Browse the repository at this point in the history
  • Loading branch information
KellyMWhitehead committed Jan 8, 2025
1 parent 218de41 commit 44ad16b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/view/frm_stream_gage_docwidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 44ad16b

Please sign in to comment.