Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions src/gufe/transformations/transformation.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ def __init__(
:meth:`.Protocol.validate`

"""
super().__init__(protocol=protocol, name=name, metadata=metadata)

if isinstance(mapping, dict):
warnings.warn(
("mapping input as a dict is deprecated; instead use either a single Mapping or list"),
Expand All @@ -213,10 +215,7 @@ def __init__(

self._stateA = stateA
self._stateB = stateB
self._protocol = protocol
self._mapping = mapping
self._name = name
self._metadata = metadata or {}

if validate:
self.protocol.validate(
Expand Down Expand Up @@ -311,11 +310,9 @@ def __init__(
Whether or not to validate the inputs to be provided to
the :class:`.Protocol`.
"""
super().__init__(protocol=protocol, name=name, metadata=metadata)

self._system = system
self._protocol = protocol
self._name = name
self._metadata = metadata or {}

if validate:
self.protocol.validate(
Expand Down
Loading