core package
Subpackages
Submodules
core.datasample module
core.dataset module
core.exceptions module
- exception core.exceptions.SampleProcessingException(pipeline_block, data_sample, message: str)
Bases:
Exception
Exception to be thrown inside a block in case this sample cannot be processed further.
This exception should be thrown on processing errors, not on pipeline errors. For example, if the random nature of the pipeline leads to a sample being either invalid, unstable or unusable then this error should be raised. In this case the pipeline will know to stop processing this sample, but continue with the rest of the pipeline. If, on the other hand, something went wrong with the pipeline, like a calculation or configuration error, other exception types should be raised.
- Parameters:
pipeline_block –
data_sample –
message –
- property delete_block_outputs: bool
Delete the outputs of the pipeline block throwing the exception since they can be considered to be broken.
- exception core.exceptions.SampleValidationException(pipeline_block, data_sample, message: str)
Bases:
SampleProcessingException
Exception to be thrown when a block’s validate_sample() function returns False. This exception should be thrown on semantic issues with the sample, not on processing errors or pipeline errors. For example, if triangles in the mesh become too big or the displacements generated by a displacement block are larger than desired then this error should be raised. In this case the pipeline will know to stop processing this sample, but continue with the rest of the pipeline. If, on the other hand, something went wrong with the pipeline, like a calculation or configuration error, other exception types should be raised.
- Parameters:
pipeline_block –
data_sample –
message –
- property delete_block_outputs: bool
Do not delete the outputs of the block previously run on the sample for debugging purposes since they are intact code-wise.