Commit ab140a0d authored by Fabrice  ALLAIN's avatar Fabrice ALLAIN

fix(core): change condition for ss restraints

parent 140da939
......@@ -1283,7 +1283,7 @@ class Project(AriaBaseClass):
if format == "xml":
rest = pickler.load(restraints).restraint
# if there is only on restraint
if len(rest) == 1:
if len(rest) < 1:
rest = [rest]
self.distance_restraints += rest
......@@ -1295,7 +1295,7 @@ class Project(AriaBaseClass):
if format == "xml":
rest = pickler.load(restraints).restraint
# if there is only on restraint
if len(rest) == 1:
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