Skip to content

Solver is throwing keyerror #494

@zmaalick

Description

@zmaalick

Describe the bug

I am using CLI to test this framwork. Ran the following ingest command (as mentioned in documentation):

ref datasets fetch-data --registry sample-data --output-directory $REF_CONFIGURATION/datasets/sample-data
ref datasets ingest --source-type cmip6 $REF_CONFIGURATION/datasets/sample-data/CMIP6

It went fine but when I run solver:

ref solve --provider esmvaltool

I get KeyError:

KeyError: "Facet 'variable_id' not in data catalog columns: ['start_time', 'end_time', 'path', 'branch_method', 'branch_time_in_child', 
'branch_time_in_parent', 'experiment', 'frequency', 'grid', 'nominal_resolution', 'parent_activity_id', 'parent_experiment_id', 
'parent_source_id', 'parent_time_units', 'parent_variant_label', 'product', 'realm', 'source_type', 'sub_experiment', 
'sub_experiment_id', 'variant_label', 'vertical_levels', 'version', 'standard_name', 'long_name', 'units', 'finalised', 'instance_id']"

If I run without mentioning the provider, I get KeyError:

KeyError: "Facet 'experiment_id' not in data catalog columns: ['start_time', 'end_time', 'path', 'branch_method', 
'branch_time_in_child', 'branch_time_in_parent', 'experiment', 'frequency', 'grid', 'nominal_resolution', 'parent_activity_id', 
'parent_experiment_id', 'parent_source_id', 'parent_time_units', 'parent_variant_label', 'product', 'realm', 'source_type', 
'sub_experiment', 'sub_experiment_id', 'variant_label', 'vertical_levels', 'version', 'standard_name', 'long_name', 'units', 
'finalised', 'instance_id']"

I have also tried it with pmp and other datasets but every time I get such KeyErrors.

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