Skip to content

RegridLoop does not iterate to the last index in the LUH2 dataset variable list #15

@glemieux

Description

@glemieux

The variable varlen does not need to be reduced by one as range will generate an iterable object starting from 0.

ds_varnames = list(ds_to_regrid.variables.keys())
varlen = len(ds_to_regrid.variables)
first_var = False
for i in range(varlen-1):

This is a silent and "harmless" bug as the last index in the LUH2 datasets are not variables that are regridded and thus skipped anyways. That said, this should be fixed should the variable order change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions