boilercv_pipeline.sync_dvc.validators
#
Validators for syncing dvc.yaml
and params.yaml
with pipeline specification.
Module Contents#
Classes#
Constants. |
Functions#
Prepare a pipeline stage for |
|
Add param to global parameters and stage command for |
|
Set stage path as a stage dep, plot, or out for |
|
Append plot name for |
|
Set the only sample for |
|
Extend stage plots for |
|
Extend stage plots for |
Data#
API#
- class boilercv_pipeline.sync_dvc.validators.Constants(
- /,
- **data: typing.Any,
Bases:
pydantic.BaseModel
Constants.
Initialization
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.- out_config: boilercv_pipeline.sync_dvc.dvc.OutFlags#
‘OutFlags(…)’
Default
dvc.yaml
configuration forouts
.
- skip_cloud: list[str]#
[‘data/cines’, ‘data/large_sources’]
These paths are too large and unwieldy to cache or push to cloud storage.
- out_skip_cloud_config: boilercv_pipeline.sync_dvc.dvc.OutFlags#
‘OutFlags(…)’
Default
dvc.yaml
configuration forouts
that skip the cloud.
- boilercv_pipeline.sync_dvc.validators.const#
‘Constants(…)’
- boilercv_pipeline.sync_dvc.validators.dvc_prepare_stage(
- data: dict[str, Any],
- handler: pydantic.functional_validators.ModelWrapValidatorHandler[boilercv_pipeline.sync_dvc.types.Model],
- info: boilercv_pipeline.sync_dvc.types.DvcValidationInfo,
- model: type[boilercv_pipeline.sync_dvc.types.Model],
Prepare a pipeline stage for
dvc.yaml
.
- boilercv_pipeline.sync_dvc.validators.dvc_add_param(
- value: Any,
- info: boilercv_pipeline.sync_dvc.types.DvcValidationInfo,
- fields: dict[str, pydantic.fields.FieldInfo],
Add param to global parameters and stage command for
dvc.yaml
.
- boilercv_pipeline.sync_dvc.validators.dvc_set_stage_path(
- path: pathlib.Path,
- info: boilercv_pipeline.sync_dvc.types.DvcValidationInfo,
- kind: Literal[deps, outs],
Set stage path as a stage dep, plot, or out for
dvc.yaml
.
- boilercv_pipeline.sync_dvc.validators.dvc_append_plot_name(
- figure: matplotlib.figure.Figure,
- info: boilercv_pipeline.sync_dvc.types.DvcValidationInfo,
Append plot name for
dvc.yaml
.
- boilercv_pipeline.sync_dvc.validators.dvc_set_only_sample( ) bool #
Set the only sample for
dvc.yaml
ifonly_sample
is enabled.