Skip to content

Commit 56a02b4

Browse files
author
Bas Hoonhout
committed
Moved configfile to inititialize method so that Python classes also receive a configfile
1 parent a9c443f commit 56a02b4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mmi/runner.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,10 +317,9 @@ def runner(arguments, wrapper_kwargs={}, extra_metadata={}):
317317
wrapper_class = bmi.wrapper.BMIWrapper
318318
model = wrapper_class(
319319
engine=arguments['<engine>'],
320-
configfile=arguments['<configfile>'],
321320
**wrapper_kwargs)
322321

323-
model.initialize()
322+
model.initialize(arguments['<configfile>'])
324323

325324
# for replying to grid requests
326325
model.state = "play"

0 commit comments

Comments
 (0)