Skip to content

Commit

Permalink
Extended default values to ProtocolUnitFailure
Browse files Browse the repository at this point in the history
  • Loading branch information
dotsdl authored and richardjgowers committed Jun 30, 2023
1 parent 4995a91 commit daf6d84
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions gufe/protocols/protocolunit.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,19 @@ def end_time(self) -> datetime.datetime:
class ProtocolUnitFailure(ProtocolUnitResult):
"""Failed result for a single `ProtocolUnit` execution."""

def __init__(self, *, name=None, source_key, inputs, outputs, _key=None, exception, traceback,
start_time: datetime.datetime, end_time: datetime.datetime):
def __init__(
self,
*,
name=None,
source_key,
inputs,
outputs,
_key=None,
exception,
traceback,
start_time: Optional[datetime.datetime] = None,
end_time: Optional[datetime.datetime] = None,
):
"""
Parameters
----------
Expand Down

0 comments on commit daf6d84

Please sign in to comment.