Skip to content

Suggestion to return a UserWarning if periodicity not set #43

@Thomasjkeel

Description

@Thomasjkeel

I am unsure if this functionality already exists within the code base.

When instantiating a TimeFrame object without a 'resolution' suggestion to return a helpful user message: "Resolution of the data has not been set, please consider setting this with: 'resolution=', or use the 'infer_resolution' arg (see below)".

The reason I mention is because the default is PT0.000001S, which may lead to breakages and improper use

Could also use a 'infer_resolution' bool to the TF base class. The inference can only be made if all the time_steps are this resolution else warning/error

Metadata

Metadata

Assignees

No one assigned

    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