Skip to content

Climatologies with a single time step explode #115

@znichollscr

Description

@znichollscr

Describe the bug

If you take a climatology with a single time step, it will explode.

Failing Test

Doing this in a hurry, but basically:

  • create a climatology file (or any file, but in practice only climatology files can have a single time step), but only include one time step
  • try and validate it

Expected behavior

File should be able to pass validation if written correctly. Probably, we just have to accept whatever frequency value is given as there is no way to validate it.

Screenshots

System

  • OS: [e.g. Windows, Linux, macOS]
  • Python version [e.g. Python 3.11]

Additional context

Might also want to add a check that we can write climatologies with a single time step (and raise an error if the frequency is not specified, as there is no way to infer it).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugReports a bug or other unexpected behaviour

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions