Skip to content

Commit

Permalink
bugfix: plots using harvest
Browse files Browse the repository at this point in the history
  • Loading branch information
miili committed Jul 3, 2019
1 parent c115f40 commit bed39fb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ All notable changes to Grond are documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [unreleased]
## [1.3.2] 2019-07-03

### Added
- Can now run target balancing with a fixed magnitude (reference event) for
Expand All @@ -16,6 +16,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

### Fixed
- Corrected time window calculation in `NoiseAnalyser`
- Plots not using `harvest` subset.

## [1.3.1] 2019-06-08

Expand Down
3 changes: 2 additions & 1 deletion src/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ def forward(env):
payload = []
if env.have_rundir():
env.setup_modelling()
xbest = env.get_history().get_best_model()
history = env.get_history(subset='harvest')
xbest = history.get_best_model()
problem = env.get_problem()
ds = env.get_dataset()
payload.append((ds, problem, xbest))
Expand Down
2 changes: 1 addition & 1 deletion src/targets/gnss_campaign/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class GNSSTargetMisfitPlot(PlotConfig):

def make(self, environ):
cm = environ.get_plot_collection_manager()
history = environ.get_history()
history = environ.get_history(subset='harvest')
optimiser = environ.get_optimiser()
ds = environ.get_dataset()

Expand Down
4 changes: 2 additions & 2 deletions src/targets/satellite/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class SatelliteTargetDisplacement(PlotConfig):

def make(self, environ):
cm = environ.get_plot_collection_manager()
history = environ.get_history()
history = environ.get_history(subset='harvest')
optimiser = environ.get_optimiser()
ds = environ.get_dataset()

Expand Down Expand Up @@ -363,7 +363,7 @@ class SatelliteTargetDisplacementCloseup(SatelliteTargetDisplacement):

def make(self, environ):
cm = environ.get_plot_collection_manager()
history = environ.get_history()
history = environ.get_history(subset='harvest')
optimiser = environ.get_optimiser()
ds = environ.get_dataset()

Expand Down

0 comments on commit bed39fb

Please sign in to comment.