Commit 9026dbe7 authored by Charlles Abreu's avatar Charlles Abreu
Browse files

Bug fix in ForceField

parent d1be2f1d
...@@ -87,7 +87,7 @@ def _parseFunctions(element): ...@@ -87,7 +87,7 @@ def _parseFunctions(element):
elif key.endswith('min') or key.endswith('max'): elif key.endswith('min') or key.endswith('max'):
params[key] = float(function.attrib[key]) params[key] = float(function.attrib[key])
if functionType == 'Continuous1D': if functionType == 'Continuous1D':
params['periodic'] = bool(eval(function.attrib.get('periodic'))) params['periodic'] = bool(eval(function.attrib.get('periodic', 'False')))
functions.append((function.attrib['name'], functionType, values, params)) functions.append((function.attrib['name'], functionType, values, params))
return functions return functions
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment