Commit 140da939 authored by Benjamin  BARDIAUX's avatar Benjamin BARDIAUX

Fix issues when XML restraint list contains only one restraint

parent ae4782de
......@@ -1282,6 +1282,9 @@ class Project(AriaBaseClass):
restraints, format = udata.getLocation()
if format == "xml":
rest = pickler.load(restraints).restraint
# if there is only on restraint
if len(rest) == 1:
rest = [rest]
self.distance_restraints += rest
......@@ -1291,6 +1294,9 @@ class Project(AriaBaseClass):
restraints, format = adata.getLocation()
if format == "xml":
rest = pickler.load(restraints).restraint
# if there is only on restraint
if len(rest) == 1:
rest = [rest]
self.distance_restraints += rest
......
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