Add Protocol.validate
method that takes same inputs as create
; add a passthrough in Transformation
#412
Milestone
Protocol.validate
method that takes same inputs as create
; add a passthrough in Transformation
#412
In practice, a
Protocol
can fail during execution due to poor input choices to theircreate
methods, such as incompatibilities betweenstateA
andstateB
,mapping
issues, or conflicts with any of these andsettings
choices. This can trip users up, cost them time in diagnosing problems in (potentially remote) execution, and waste expensive compute on transformations that are certain to fail.One option is to encourage
Protocol
authors to add validation checks for known limitations like the above to their_create
methods, but this would slow down execution by remote execution systems every time thecreate
method is called.Instead, we propose adding a distinct
validate
method (with corresponding_validate
method thatProtocol
authors specify) that features largely the same signature ascreate
. This method would allowProtocol
authors to specify (reasonably) rapid validation code specific to theirProtocol
that can catch obvious issues before performing potentially expensive compute on a set of inputs that are bound to fail.The text was updated successfully, but these errors were encountered: