Skip to content

Commit

Permalink
Sort rft dataframe by dates
Browse files Browse the repository at this point in the history
  • Loading branch information
tnatt committed Nov 26, 2020
1 parent 5e89806 commit 7661d7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed
- [#486](https://github.com/equinor/webviz-subsurface/pull/486) - Bug fix in `PropertyStatistics`. Show realization number instead of dataframe index for hover text.
- [#498](https://github.com/equinor/webviz-subsurface/pull/498) - Bug fix in `RFT-plotter`. Sort dataframe by date to get correct order in date-slider.

## [0.1.4] - 2020-10-29
### Added
Expand Down
1 change: 1 addition & 0 deletions webviz_subsurface/plugins/_rft_plotter/rft_plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ def __init__(
self.ertdatadf["SIMULATED"] - self.ertdatadf["OBSERVED"]
)
self.ertdatadf["YEAR"] = pd.to_datetime(self.ertdatadf["DATE"]).dt.year
self.ertdatadf = self.ertdatadf.sort_values(by="DATE")
self.ertdatadf["DATE_IDX"] = self.ertdatadf["DATE"].apply(
lambda x: list(self.ertdatadf["DATE"].unique()).index(x)
)
Expand Down

0 comments on commit 7661d7f

Please sign in to comment.