Skip to content

Raise if not all anomalies could be inserted in the HumiTempDatasetGenerator #72

@sarusso

Description

@sarusso

Right now, if some of the anomalies specified in the anomalies argument of the dataset generator generate() call could not be inserted, there is no immediate notification and this leads to unexpected behaviour.

Example: asking for 6 different anomalies, but to generate 5 series with max one anomaly per series.

This should be a warning, e.g. logger.warning('Could not insert all requested anomalies'), or maybe a ValueError in its stronger version.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions