Skip to content

Commit bd85b2f

Browse files
committed
Make sure new stuff in source IDs doesn't break database creation
1 parent 2d5dd67 commit bd85b2f

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

python-packages/input4MIPs-CVs/src/input4MIPs_CVs/cli/update-database.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,13 @@ def add_missing_source_ids(
163163
# We're starting to see the limits of not using an actual database.
164164
continue
165165

166+
if k == "dataset_category":
167+
# Skip this, it is managed elsewhere in the database
168+
# and is only in source ID to help downstream users
169+
# (although even that is an ongoing discussion,
170+
# see https://github.com/PCMDI/input4MIPs_CVs/issues/201)
171+
continue
172+
166173
placeholder_entry[k] = v
167174

168175
placeholder_entry["source_id"] = source_id

0 commit comments

Comments
 (0)