Bugfix- agg_stat_bootstrap.py missing initialization of stat_vals list in _calc_stats.py #420
Open
2 of 24 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
alert: NEED MORE DEFINITION
Not yet actionable, additional definition required
type: bug
Fix something that is not working
Replace italics below with details for this issue.
While adding error handling and logging for AF Cybersecurity, the _calc_stats.py code was slightly refactored but the stat_vals list was not initialized.
Expected Behavior
METviewer will generate an error that indicates that the stat_vals local variable is referenced before it is initialized.
Environment
Describe your runtime environment:
1. Machine: (e.g. HPC name, Linux Workstation, Mac Laptop)
2. OS: (e.g. RedHat Linux, MacOS)
3. Software version number(s)
To Reproduce
Describe the steps to reproduce the behavior:
From Command line:
use the following data and yaml config files (remove the .txt extension from files)
input.data.txt
input.yaml.txt
from METcalcpy main_v3.0 run from the command line:
Expect the following error:
UnboundLocalError: local variable 'stat_values' referenced before assignment
Post relevant sample data following these instructions:
https://dtcenter.org/community-code/model-evaluation-tools-met/met-help-desk#ftp
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
Milestone and Projects
Define Related Issue(s)
Consider the impact to the other METplus components.
Bugfix Checklist
See the METplus Workflow for details.
Branch name:
bugfix_<Issue Number>_main_<Version>_<Description>
Pull request:
bugfix <Issue Number> main_<Version> <Description>
Select: Reviewer(s) and Development issue
Select: Milestone as the next bugfix version
Select: Coordinated METplus-X.Y Support project for support of the current coordinated release
Branch name:
bugfix_<Issue Number>_develop_<Description>
Pull request:
bugfix <Issue Number> develop <Description>
Select: Reviewer(s) and Development issue
Select: Milestone as the next official version
Select: METcalcpy-X.Y.Z Development project for development toward the next official release
The text was updated successfully, but these errors were encountered: