Skip to content

image data index deprecation error #197

@scotthavens

Description

@scotthavens

When running with HRRR data, getting an error from pandas.

  File "smrf/distribute/image_data.py", line 227, in _distribute
    data = data[self.stations]
<more traceback>
    "Passing list-likes to .loc or [] with any missing labels "
KeyError: "Passing list-likes to .loc or [] with any missing labels is no longer supported. The following labels were missing: Index(['grid_96000_27000', 'grid_99000_15000'], dtype='object'). See https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#deprecate-loc-reindex-listlike"

Appears that the way image_data is selecting with missing columns.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions