Skip to content

Commit 95e35cc

Browse files
committed
Bugfix for simWrapHillTau creation
1 parent 3673d20 commit 95e35cc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

findSim.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1442,7 +1442,7 @@ def saveTweakedModel( origFname, dumpFname, mapFile, scaleParam ):
14421442
if extn == '.g' or extn == '.xml':
14431443
localSW = SimWrapMoose( mapFile = mapFile, ignoreMissingObj = True, silent = True, exptFile = "" )
14441444
elif extn == '.json':
1445-
localSW = SimWrapHillTau( mapFile = mapFile, ignoreMissingObj = True, silent = True )
1445+
localSW = SimWrapHillTau( mapFile = mapFile, ignoreMissingObj = True, silent = True, exptFile = "" )
14461446
else:
14471447
print( "Warning: dumpTweakedModel: File format '{}' not known".format( extn ) )
14481448
return
@@ -1502,7 +1502,7 @@ def runit( expt, model, stims, readouts, getPlots = False ):
15021502
def getInitParams( modelFile, mapFile, paramList ):
15031503
# ParamList as strings of objpath.field
15041504
if modelFile.split('.')[-1] == "json":
1505-
sw = SimWrapHillTau( mapFile = mapFile, ignoreMissingObj = False, silent = False )
1505+
sw = SimWrapHillTau( mapFile = mapFile, ignoreMissingObj = False, silent = False, exptFile = "" )
15061506
else:
15071507
sw = SimWrapMoose( mapFile = mapFile, ignoreMissingObj = False, silent = False, exptFile = "" )
15081508

@@ -1587,7 +1587,7 @@ def innerMain( exptFile, scoreFunc = defaultScoreFunc, modelFile = "", mapFile =
15871587
)
15881588
return
15891589
else:
1590-
sw = SimWrapHillTau( mapFile = mapFile, ignoreMissingObj = ignoreMissingObj, silent = silent )
1590+
sw = SimWrapHillTau( mapFile = mapFile, ignoreMissingObj = ignoreMissingObj, silent = silent, exptFile = exptFile )
15911591

15921592
else:
15931593
sw = simWrap.SimWrap( ignoreMissingObj = ignoreMissingObj )

0 commit comments

Comments
 (0)