Commit f6aa12ab authored by eric pellegrini's avatar eric pellegrini
Browse files

Bug fix in DL_POLY converter when guessing element from sitnam

parent 3ce2c6a1
...@@ -134,10 +134,9 @@ class FieldFile(dict): ...@@ -134,10 +134,9 @@ class FieldFile(dict):
while 1: while 1:
if ELEMENTS.has_element(element): if ELEMENTS.has_element(element):
break break
element = sitnam[:-1] element = element[:-1]
if not element: if not element:
element = sitnam raise FieldFileError("Could not define any element from %r" % sitnam)
break
try: try:
nrept = int(vals[2]) nrept = int(vals[2])
......
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