Skip to content

Commit

Permalink
Make sure the merit gets added to the best observations list. (#641)
Browse files Browse the repository at this point in the history
  • Loading branch information
wtgee authored and jamessynge committed Sep 30, 2018
1 parent a562896 commit e52c15a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pocs/scheduler/dispatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ def get_observation(self, time=None, show_all=False, reread_fields_file=False):

# If current is better or equal to top, use it
if self.current_observation.merit >= top_obs_merit:
best_obs.insert(0, self.current_observation)
best_obs.insert(0, (self.current_observation,
self.current_observation.merit))

# Set the current
self.current_observation = self.observations[top_obs_name]
Expand Down

0 comments on commit e52c15a

Please sign in to comment.