Skip to content

Commit b3c53d8

Browse files
authored
Merge pull request #42 from neuroscout/fix/manual_run
Fix instance where run is specified to model builder
2 parents 7fed937 + 1fff5b1 commit b3c53d8

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

pyns/models/analysis.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,11 +181,9 @@ def create_analysis(self, *, name, dataset_name, predictor_names,
181181
if len(run_models) < 1:
182182
raise ValueError("No runs could be found with the given criterion")
183183

184-
if subject is None:
185-
subject = list(set(r['subject'] for r in run_models))
186-
if run is None:
187-
run = list(set(r['number'] for r in run_models if r['number']))
188-
run = run or None
184+
subject = list(set(r['subject'] for r in run_models))
185+
run = list(set(r['number'] for r in run_models if r['number']))
186+
run = run or None
189187

190188
run_id = [r['id'] for r in run_models]
191189
# Get Predictor IDs

0 commit comments

Comments
 (0)