Skip to content

Commit

Permalink
reorder
Browse files Browse the repository at this point in the history
  • Loading branch information
dilpath committed Dec 17, 2023
1 parent ef50d0a commit 37f9723
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions petab_select/candidate_space.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ def __init__(
previous_predecessor_model: Optional[Model] = None,
method: Method = None,
):
self.method = method
if self.method is None:
self.method = self.governing_method

self.limit = LimitHandler(
current=self.n_accepted,
limit=limit,
Expand All @@ -107,10 +111,6 @@ def __init__(
if self.previous_predecessor_model is None:
self.previous_predecessor_model = self.predecessor_model

self.method = method
if self.method is None:
self.method = self.governing_method

def write_summary_tsv(self, row):
if self.summary_tsv is None:
return
Expand Down

0 comments on commit 37f9723

Please sign in to comment.