Skip to content

Commit 70a7fc8

Browse files
committed
fix #283: duplicate setup check gave false positives
1 parent 688af3f commit 70a7fc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openml/runs/functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def run_flow_on_task(task, flow, avoid_duplicate_runs=True, flow_tags=None,
8181
flow_id = flow_exists(flow.name, flow.external_version)
8282
if avoid_duplicate_runs and flow_id:
8383
flow_from_server = get_flow(flow_id)
84-
setup_id = setup_exists(flow_from_server)
84+
setup_id = setup_exists(flow_from_server, flow.model)
8585
ids = _run_exists(task.task_id, setup_id)
8686
if ids:
8787
raise PyOpenMLError("Run already exists in server. Run id(s): %s" %str(ids))

0 commit comments

Comments
 (0)