Describe the Problem
It is possible that sum_n_i_orig_T value is 0 when there is no data available for the parameters. In this case agg_stat.py is failing and exiting without further calculations:
agg_stat.py line 1092
# calculate o_bar
o_bar = oy_total / sum_n_i_orig_T
need to anticipate and handle this situation
Suggestion:
# calculate o_bar
if sum_n_i_orig_T != 0:
o_bar = oy_total / sum_n_i_orig_T
else:
o_bar = None
scorecard_rrfs_REFC_prob.agg_stat.info.txt
scorecard_rrfs_REFC_prob.data.agg_stat.txt
Expected Behavior
Provide a clear and concise description of what you expected to happen here.
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:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
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
Projects and Milestone
Define Related Issue(s)
Consider the impact to the other METplus components.
Bugfix Checklist
See the METplus Workflow for details.
Describe the Problem
It is possible that sum_n_i_orig_T value is 0 when there is no data available for the parameters. In this case agg_stat.py is failing and exiting without further calculations:
agg_stat.py line 1092
need to anticipate and handle this situation
Suggestion:
scorecard_rrfs_REFC_prob.agg_stat.info.txt
scorecard_rrfs_REFC_prob.data.agg_stat.txt
Expected Behavior
Provide a clear and concise description of what you expected to happen here.
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:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
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
Projects and Milestone
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 issues
Select: Organization level software support Project for the current coordinated release
Select: Milestone as the next bugfix version
Branch name:
bugfix_<Issue Number>_develop_<Description>Pull request:
bugfix <Issue Number> develop <Description>Select: Reviewer(s) and Development issues
Select: Repository level development cycle Project for the next official release
Select: Milestone as the next official version