Skip to content

Commit e591ca2

Browse files
author
SimonBoothroyd
authored
Merge pull request #93 from openforcefield/fix_conditional_groups
Implement Conditional Group Initializer
2 parents 9bf2674 + db0e6d5 commit e591ca2

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

propertyestimator/protocols/groups.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -700,11 +700,15 @@ def conditions(self):
700700
def __init__(self, protocol_id):
701701
"""Constructs a new ConditionalGroup
702702
"""
703-
super().__init__(protocol_id)
704-
705703
self._max_iterations = 10
706704
self._conditions = []
707705

706+
super().__init__(protocol_id)
707+
708+
def _initialize(self):
709+
"""Initialize the protocol."""
710+
711+
super(ConditionalGroup, self)._initialize()
708712
self.required_inputs.append(ProtocolPath('conditions'))
709713

710714
def _set_schema(self, schema_value):

0 commit comments

Comments
 (0)