ValueError: Invalid Placeholder In String
I tried to make my own template for mutate_model.py script (http://salilab.org/modeller/wiki/Mutate%20model) by using python string template where I substituted values for these fi
Solution 1:
It's erroring because you have an invalid template identifier in your string
env.libs.parameters.read(file='$(LIB)/par.lib') # Notice the $(LIB)
From the docs
$$ is an escape; it is replaced with a single $.
Any other appearance of $ in the string will result in a ValueError being raised.
You would need to use
$$(LIB)
Also, your variable case doesn't match
mdl1.write(file=$modelname+$restyp1+$respos1+$chain+'.tmp')#change
But you're passing in resType1
and resPos1
. You need to pass in restype1
and respos1
Post a Comment for "ValueError: Invalid Placeholder In String"