Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reset_index is performed on the float value #322 #323

Merged
merged 1 commit into from
Aug 22, 2023

Conversation

TatianaBurek
Copy link
Collaborator

@TatianaBurek TatianaBurek commented Aug 18, 2023

Pull Request Testing

REMINDER: change values agg_stat_input and agg_stat_output based on the local configurations

  • Recommend testing for the reviewer(s) to perform, including the location of input datasets, and any additional instructions:

    **Run agg_stat.py from the command line:**
    $METCALCPY_BASE/metcalcpy/agg_stat.py plot_20230818_180136.agg_stat.info
    

Verify that the output file you specified in the agg_stat_output setting in the plot_20230818_180136.agg_stat.info (YAML config file) produces the expected output file and the file contains tabular data that is not full of NaN's.

REMINDER: change values agg_stat_input and agg_stat_output based on the local configurations

  • Do these changes include sufficient documentation updates, ensuring that no errors or warnings exist in the build of the documentation? [Yes or No]

  • Do these changes include sufficient testing updates? [Yes or No]

  • Will this PR result in changes to the test suite? [Yes or No]

    If yes, describe the new output and/or changes to the existing output:

  • Please complete this pull request review by [Fill in date].

Pull Request Checklist

See the METplus Workflow for details.

  • Add any new Python packages to the METplus Components Python Requirements table.
  • Review the source issue metadata (required labels, projects, and milestone).
  • Complete the PR definition above.
  • Ensure the PR title matches the feature or bugfix branch name.
  • Define the PR metadata, as permissions allow.
    Select: Reviewer(s)
    Select: Organization level software support Project or Repository level development cycle Project
    Select: Milestone as the version that will include these changes
  • After submitting the PR, select the ⚙️ icon in the Development section of the right hand sidebar. Search for the issue that this PR will close and select it, if it is not already selected.
  • After the PR is approved, merge your changes. If permissions do not allow this, request that the reviewer do the merge.
  • Close the linked issue and delete your feature or bugfix branch from GitHub.

@TatianaBurek TatianaBurek added this to the METcalcpy-3.0.0 milestone Aug 18, 2023
@TatianaBurek TatianaBurek linked an issue Aug 18, 2023 that may be closed by this pull request
23 tasks
@bikegeek
Copy link
Collaborator

@TatianaBurek , do you have a screenshot of what the plot is supposed to look like? I'm trying to generate this from the command line with the provided yaml file and I can't seem to get the correct number of plotting settings.

@TatianaBurek
Copy link
Collaborator Author

Attached are the plot and XML files
plot_20230821_174714
plot_20230821_174714.xml.txt

@bikegeek
Copy link
Collaborator

When generating from the command line, an empty plot is generated and the log file does not indicate any errors. The
plot_20230818_180136.points1 contains all NaN's but the dump points generated by METviewer contains valid numerical values (except for first row).

This is the configuration file used:
plot.yaml.txt

also tried using the originally supplied config file from the Pull Request Testing section (modified to include the plot_ci, plot_disp, series_order, user_legend, series_symbols, and colors):
plot_20230818_180136.agg_stat.yaml.txt

Using this data as input:
plot_20230818_180136.data.agg_stat.txt

With both develop and main_v2.1 versions of METplotpy and the issue_322_reset_index branch of METcalcpy.

Can you take a look and verify if this is also creating an empty line plot?

@TatianaBurek
Copy link
Collaborator Author

The attached files are provided to be used to test pstg_statistics.py using agg_stats.py
Only 2 location parameters in plot_20230818_180136.agg_stat.info.txt should be modified:
agg_stat_input and agg_stat_output
to run :
/METcalcpy/metcalcpy/agg_stat.py plot_20230818_180136.agg_stat.info
The result of the run is the data file. This file should have values different then NA in the stat_value column.
This test doesn't require running METplotpy and creating plots

@bikegeek
Copy link
Collaborator

I updated the Pull Request Testing section with these instructions. I wanted to make sure that generating a plot from the command line was unaffected, as the UFS team might be interested in doing this from the command line.

Copy link
Collaborator

@bikegeek bikegeek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ran agg_stat.py from the command line and created a valid output file.

@bikegeek bikegeek merged commit 3baae11 into develop Aug 22, 2023
4 checks passed
@bikegeek bikegeek deleted the issue_322_reset_index branch August 22, 2023 14:58
jprestop added a commit that referenced this pull request Feb 2, 2024
* Prepare for next release

* add missing end quote to fix package install

* reset_index is performed on the float value #322 (#323)

* Update release notes (#328)

* Update release-notes.rst formatting

* Update and rename 2.1.0_wcoss2 to 3.0.0_wcoss2

* loop over statistics only once to avoid data multiplication #330 (#331)

* Added sphinx_rtd_theme to extensions

* Updated requirements.txt

* Added pillow

* feature 497 headers (#336)

* changing header for continuity

* Modified the other headers in the file to be consistent with other repos

---------

Co-authored-by: Julie Prestopnik <[email protected]>

* Beta2 release (#338)

* Next version

* Feature 332 di doc (#333)

* Add difficulty index documentation

* Add more documentation

* Add more definition

* Fix indent

* Add figure

* fix indentation

* fix equations

* Add table

* Added remaining tables

* fix table issue

* Add links

* formatting

* change link to latest

---------

Co-authored-by: Tracy <[email protected]>

* Additions to beta2 release (#340)

* Next beta

* Bugfix 329 negative bcmse (#344)

* Issue #329 return 0 if negative BCMSE value is calculated

* Issue #329 add test for calculate_bcmse() in the sl1l2_statistics module

* Issue #392 added test_sl1l2.py to the list of pytests to run

* command line updates

* updating yaml file

---------

Co-authored-by: Hank Fisher <[email protected]>
Co-authored-by: George McCabe <[email protected]>
Co-authored-by: John Halley Gotway <[email protected]>
Co-authored-by: Tatiana Burek <[email protected]>
Co-authored-by: jprestop <[email protected]>
Co-authored-by: Tracy Hertneky <[email protected]>
Co-authored-by: Tracy <[email protected]>
Co-authored-by: bikegeek <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🏁 Done
Development

Successfully merging this pull request may close these issues.

reset_index is performed on the float value
2 participants