Enhance logic for setting mask.poly to allow MET list characters (square braces and semi-colon) #966
Closed
8 of 21 tasks
Labels
alert: NEED ACCOUNT KEY
Need to assign an account key to this issue
alert: NEED CYCLE ASSIGNMENT
Need to assign to a release development cycle
METplus: Configuration
priority: medium
Medium Priority
requestor: NOAA/EMC
NOAA Environmental Modeling Center
type: enhancement
Improve something that it is currently doing
Milestone
A question from Deanna Spindler in a NOAA telecon brought up an improvement to the logic that reads lists to be more flexible. The following value will produce an error because the logic for reading lists from the METplus config files automatically adds square braces and a semicolon:
POINT_STAT_POLY = [“{ENV[MET_BUILD_BASE]}/share/met/poly/CAR.poly”, "{ENV[MET_BUILD_BASE]}/share/met/poly/GLF.poly", "{ENV[MET_BUILD_BASE]}/share/met/poly/NAO.poly", "{ENV[MET_BUILD_BASE]}/share/met/poly/SAO.poly" ];
The correct format for this variable is currently:
POINT_STAT_POLY = “{ENV[MET_BUILD_BASE]}/share/met/poly/CAR.poly”, "{ENV[MET_BUILD_BASE]}/share/met/poly/GLF.poly", "{ENV[MET_BUILD_BASE]}/share/met/poly/NAO.poly", "{ENV[MET_BUILD_BASE]}/share/met/poly/SAO.poly"
however, it would be good to enhance the logic that parses a list to check if a semicolon and/or square braces already exist in the value and do not add them if so.
Describe the Enhancement
Add logic to the getlist (met_util) function to handle the formatting properly so that both of the above values would be handled properly.
Time Estimate
~1 day
Sub-Issues
Consider breaking the enhancement down into sub-issues.
Relevant Deadlines
List relevant project deadlines here or state NONE.
Funding Source
Define the source of funding and account keys here or state NONE.
Define the Metadata
Assignee
Labels
Projects and Milestone
Define Related Issue(s)
Consider the impact to the other METplus components.
Enhancement Checklist
See the METplus Workflow for details.
Branch name:
feature_<Issue Number>_<Description>
Pull request:
feature <Issue Number> <Description>
Select: Reviewer(s) and Linked issues
Select: Repository level development cycle Project for the next official release
Select: Milestone as the next official version
The text was updated successfully, but these errors were encountered: