Skip to content

Commit

Permalink
Fix BaseReview.review bug for ReviewSimulate (#1529)
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterLombaers committed Sep 21, 2023
1 parent 0bbf7a2 commit b22ec6d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion asreview/review/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ def review(self):
# write to state when stopped
pbar_rel.close()
pbar_total.close()
self._write_to_state()

def _label_priors(self):
"""Make sure the prior records are labeled."""
Expand Down
4 changes: 4 additions & 0 deletions asreview/review/simulate.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,10 @@ def _label_priors(self):
pending_labels = self.data_labels[pending]
state.add_labeling_data(pending, pending_labels)

def review(self):
super().review()
self._write_to_state()

def _stop_review(self):
"""In simulation mode, the stop review function should get the labeled
records list from the reviewer attribute."""
Expand Down

0 comments on commit b22ec6d

Please sign in to comment.