IAMconsortium / nomenclature

A package to work with IAMC-style variable templates

Home Page:https://nomenclature-iamc.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using only country in nomenclature config breaks CodeList

phackstock opened this issue · comments

I saw this in https://github.com/iiasa/openmod4africa-workflow, where the latest nomenclature update in combination with a nomenclature config where in the region dimension there's only the country attribute:

repositories:
  openENTRANCE:
    url: https://github.com/openENTRANCE/openentrance
definitions:
  variable:
    repository: openENTRANCE
  region:
    country: true

It broke in the test here: https://github.com/iiasa/openmod4africa-workflow/actions/runs/7829213013/job/21360733654.

Issue is that

for repo in config.definitions.region.repositories:

attempts to iterate over the region.repositories attribute which is empty.

Same just happened at openENTRANCE/openentrance#326, which doesn’t even have a nomenclature.config file…?

Just commented on openENTRANCE/openentrance#326. The issue is a different one, came with the same PR though.