Skip to content

Bug in cloud scatterplot diagnostic #400

@bouweandela

Description

@bouweandela

Reported by @lewisjared

  File "/home/jared/code/climate-ref/packages/climate-ref-core/src/climate_ref_core/diagnostics.py", line 555, in run
    self.execute(definition)
    │    │       └ ExecutionDefinition(diagnostic=CloudScatterplotCltSwcre(name='Scatterplots of two cloud-relevant variables (clt vs swcre)'), ...
    │    └ <function CommandLineDiagnostic.execute at 0x7f533730e8e0>
    └ CloudScatterplotCltSwcre(name='Scatterplots of two cloud-relevant variables (clt vs swcre)')

  File "/home/jared/code/climate-ref/packages/climate-ref-core/src/climate_ref_core/diagnostics.py", line 598, in execute
    cmd = self.build_cmd(definition)
          │    │         └ ExecutionDefinition(diagnostic=CloudScatterplotCltSwcre(name='Scatterplots of two cloud-relevant variables (clt vs swcre)'), ...
          │    └ <function ESMValToolDiagnostic.build_cmd at 0x7f533407e520>
          └ CloudScatterplotCltSwcre(name='Scatterplots of two cloud-relevant variables (clt vs swcre)')

  File "/home/jared/code/climate-ref/packages/climate-ref-esmvaltool/src/climate_ref_esmvaltool/diagnostics/base.py", line 116, in build_cmd
    recipe_path = self.write_recipe(definition)
                  │    │            └ ExecutionDefinition(diagnostic=CloudScatterplotCltSwcre(name='Scatterplots of two cloud-relevant variables (clt vs swcre)'), ...
                  │    └ <function ESMValToolDiagnostic.write_recipe at 0x7f533407e480>
                  └ CloudScatterplotCltSwcre(name='Scatterplots of two cloud-relevant variables (clt vs swcre)')

  File "/home/jared/code/climate-ref/packages/climate-ref-esmvaltool/src/climate_ref_esmvaltool/diagnostics/base.py", line 95, in write_recipe
    self.update_recipe(recipe, input_files)
    │    │             │       └ {<SourceDatasetType.CMIP6: 'cmip6'>:                start_time             end_time                                          ...
    │    │             └ {'documentation': {'title': 'Model evaluation with focus on clouds.', 'description': 'Plot 2D histograms using the Seaborn di...
    │    └ functools.partial(<function update_recipe at 0x7f533407f1a0>, var_x='clt', var_y='swcre')
    └ CloudScatterplotCltSwcre(name='Scatterplots of two cloud-relevant variables (clt vs swcre)')

  File "/home/jared/code/climate-ref/packages/climate-ref-esmvaltool/src/climate_ref_esmvaltool/diagnostics/cloud_scatterplots.py", line 58, in update_recipe
    suptitle = "CMIP6 {dataset} {ensemble} {grid} {timerange}".format(**datasets[0])
                                                                        └ [{'project': 'CMIP6', 'activity': 'CMIP', 'dataset': 'CNRM-ESM2-1', 'ensemble': 'r1i1p1f2', 'institute': 'CNRM-CERFACS', 'exp...

KeyError: 'timerange'

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