From 3628e72bfcabe11df9388f17ef87dbf29509bc74 Mon Sep 17 00:00:00 2001 From: Darian Boggs Date: Mon, 3 Feb 2025 15:10:15 -0500 Subject: [PATCH] Add ALIAS column to ACG StateSpec files --- Apps/MAPL_GridCompSpecs_ACG.py | 6 ++++++ CHANGELOG.md | 1 + 2 files changed, 7 insertions(+) diff --git a/Apps/MAPL_GridCompSpecs_ACG.py b/Apps/MAPL_GridCompSpecs_ACG.py index 13d113da3787..c35651e50eda 100755 --- a/Apps/MAPL_GridCompSpecs_ACG.py +++ b/Apps/MAPL_GridCompSpecs_ACG.py @@ -200,6 +200,7 @@ def get_mandatory_options(cls): 'VLOCATION': ('vlocation', VLOCATION_EMIT), 'VLOC': ('vlocation', VLOCATION_EMIT), # these are Options that are not output but used to write + 'ALIAS': ('alias', identity_emit, False, False), 'CONDITION': ('condition', identity_emit, False, False), 'COND': ('condition', identity_emit, False, False), 'ALLOC': ('alloc', identity_emit, False, False), @@ -463,6 +464,7 @@ def digest(specs, args): for spec in specs[category]: # spec from list dims = None ungridded = None + alias = None option_values = dict() # dict of option values for column in spec: # for spec emit value column_value = spec[column] @@ -480,6 +482,10 @@ def digest(specs, args): dims = option_value elif option == Option.UNGRIDDED: ungridded = option_value + elif option == Option.ALIAS: + alias = Option.ALIAS(column_value) + if alias: + option_values[Option.INTERNAL_NAME] = alias # MANDATORY for option in mandatory_options: if option not in option_values: diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d86ccb9d669..9d5789250a67 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added ### Changed +- Add column for ACG (ALIAS) that set the pointer variable to a different name than the `short_name` ### Fixed