Skip to content

Crash running cubedash-gen - unexpected "platform" data type #931

@omad

Description

@omad

Looks like Explorer expects a string instead of a list for the Product platform field.

Traceback (most recent call last):
  File "/usr/local/lib/python3.12/dist-packages/cubedash/generate.py", line 129, in generate_report
    result, updated_summary = store.refresh(
                              ^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/cubedash/summary/_stores.py", line 1607, in refresh
    extent_changes, new_product = self.refresh_product_extent(
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/cubedash/summary/_stores.py", line 564, in refresh_product_extent
    fixed_metadata = self._find_product_fixed_metadata(
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/cubedash/summary/_stores.py", line 702, in _find_product_fixed_metadata
    raise ValueError(
ValueError: Product prism_rapp field 'platform' is claimed to be type <class 'str'>, but dataset has value ['Twin Otter aircraft', 'NASA ER-2']

Versions
Open Data Cube v1.9.7
Explorer v3.0.2

Reporting on behalf of @whatnick

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions