Skip to content

Commit

Permalink
fix logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeitsperre committed Mar 18, 2024
1 parent 448ba07 commit 53b9c35
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions miranda/preprocess/_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,11 @@ def eccc_variable_metadata(

# code = find_project_variable_codes(variable_code, metadata)

print("stuff")

# Variable metadata
variable_meta = metadata["variables"].get(variable_code)
variable_name = ""
variable_name_fields = ["_variable_name", "_cf_variable_name"]
if set(variable_name_fields).issubset(variable_meta.keys()):
for variable_field in variable_name_fields:
Expand All @@ -61,6 +64,8 @@ def eccc_variable_metadata(
variable_meta = {variable_name: variable_meta}
else:
variable_meta = {variable_code: variable_meta}
if not variable_name:
variable_name = variable_code

# Dataset metadata
header = metadata.get("Header")
Expand Down

0 comments on commit 53b9c35

Please sign in to comment.