Skip to content

Commit

Permalink
fix date time plot filter #293
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanie committed Oct 17, 2016
1 parent 3b914f9 commit fc16537
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions odmtools/gui/plotProbability.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ def updatePlot(self):
#self.prob.append(
#prop = oneSeries.Probability.plot(column="DataValue", ax=self.plots)
#todo FutureWarning: order is deprecated, use sort_values(...)
xValues = oneSeries.Probability.xAxis.order().values
yValues = oneSeries.Probability.yAxis.order().values
xValues = oneSeries.Probability.xAxis.sort_values().values
yValues = oneSeries.Probability.yAxis.sort_values().values

ax = self.plots.plot(xValues, yValues, 'bs', color=oneSeries.color,
label=oneSeries.plotTitle)
Expand Down
3 changes: 3 additions & 0 deletions odmtools/odmservices/series_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,9 @@ def get_plot_values(self, seriesID, noDataValue, startDate = None, endDate = Non

Values = self.get_values_by_series(seriesID)
data = Values[['datavalue', 'censorcodecv', 'valuedatetime']]
# data = data[data['datavalue'] != noDataValue]
data = data[(data['datavalue'] != noDataValue) & (data['valuedatetime'] >= startDate) & (
data['valuedatetime'] <= endDate)]


#data.set_index(data['LocalDateTime'], inplace=True)
Expand Down

0 comments on commit fc16537

Please sign in to comment.