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

Feature 628 diff index #752

Merged
merged 54 commits into from
Jan 26, 2021
Merged

Feature 628 diff index #752

merged 54 commits into from
Jan 26, 2021

Conversation

georgemccabe
Copy link
Collaborator

@georgemccabe georgemccabe commented Jan 9, 2021

Pull Request Testing

  • Describe testing already performed for these changes:

    Ran the METplus use case on kiowa. It ran successfully.

  • Recommend testing for the reviewer to perform, including the location of input datasets:

    Reviewers should run UserScript_fcstGEFS_Difficulty_Index.conf and make sure it runs successfully for them.
    Reviewers should also skim the documentation and make sure nothing is obviously wrong.

  • 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:

    Unknown

  • After merging, should the reviewer DELETE the feature branch from GitHub? [Yes or No]

    Yes

Pull Request Checklist

See the METplus Workflow for details.

  • 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), Project(s), and Milestone
  • After submitting the PR, select Linked Issues with the original issue number.

Lindsay Blank and others added 30 commits December 17, 2020 18:02
@lindsayrblank
Copy link

@bikegeek George and I need someone who hasn't developed this code to review it, which is why I assigned you. Let me know if you have any questions.

Copy link

@lindsayrblank lindsayrblank left a comment

Choose a reason for hiding this comment

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

It all worked for me, but I made a lot of changes so someone else needs to review it.

@georgemccabe
Copy link
Collaborator Author

@lindsayrblank the use case is now failing because the run time was changed and it no longer matches the data that was put on the DTC web server. The previous run time was 2020121100 and it is now set to 2020120812. Why was this time changed? If it was by mistake, we can change it back in the .conf file and the test should succeed again.

@georgemccabe georgemccabe marked this pull request as ready for review January 20, 2021 15:26
Copy link
Contributor

@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.

  1. Typo in the Scientific Objective section, last sentence:
    The challenge is combing these factors into a continuous function that allows the user to assess relative risk.

Replace combing with combining

  1. Under the Datasets section, what are the hash tags in the following supposed to represent?

Variables required to calculate the difficulty index: Levels required: 10-m #. v- component of wind #. u- component of wind #. Windspeed #. Latitude #. Longitude

  1. Running master_metplus.py, I had to set the PYTHONPATH to include the path to METcalcpy, but there aren't instructions for how to set this in the documentation. Likewise for METplotpy.

  2. Running master_metplus.py I see in the log file that there is a module not found error for 'matplotlib'. I didn't see any instructions in the documentation for installing the matplotlib library

@georgemccabe
Copy link
Collaborator Author

I am addressing some of these comments inline:

1. Typo in the Scientific Objective section, last sentence:
   _The challenge is combing these factors into a continuous function that allows the user to assess relative risk._

Replace combing with combining

This change makes sense to me.

1. Under the Datasets section, what are the hash tags in the following supposed to represent?

Variables required to calculate the difficulty index: Levels required: 10-m #. v- component of wind #. u- component of wind #. Windspeed #. Latitude #. Longitude

My guess is the hash tags are meant to create a numbered list. This is RST syntax. However, I have had issues in the past getting this to work in other situations. If the hash tags do not render as numbers when building the docs, I would suggest just changing these to the actual numbers since this list is unlikely to change often (if ever).

1. Running master_metplus.py, I had to set the PYTHONPATH to include the path to METcalcpy, but there aren't instructions for how to set this in the documentation.  Likewise for METplotpy.

2. Running master_metplus.py I see in the log file that there is a module not found error for 'matplotlib'.  I didn't see any instructions in the documentation for installing the matplotlib library

For the last 2 items, I noticed that very few use case documentation files contain information about additional external dependencies. We should create a GitHub issue to review all of the use cases that require additional python packages used for python embedding scripts and add an "External Dependencies" section to the docs that describe what is needed to run. We should also make sure the python embedding scripts are added to the use case doc with a literalinclude. The use cases that I see have an "External Dependencies" section already are:

  • model_applications/precipitation/GridStat_fcstHREFmean_obsStgIV_Gempak.py
  • met_tool_wrapper/GempakToCF/GempakToCF.py
  • /met_tool_wrapper/PCPCombine/PCPCombine_python_embedding.py

so there are many that need to be updated.

In terms of instructions to install the packages or adding to the PYTHONPATH to make the packages found, in my opinion our responsibility is to list the packages that are needed and it is up to the user to obtain and install them. Most of the packages have documentation that describes how to install them with pip or conda. Are there installation instructions for METplotpy and METcalcpy? If not, that would be helpful to users.

@georgemccabe
Copy link
Collaborator Author

I created a new GitHub issue to add all extra Python dependencies to use case docs: #767

@lindsayrblank
Copy link

@lindsayrblank the use case is now failing because the run time was changed and it no longer matches the data that was put on the DTC web server. The previous run time was 2020121100 and it is now set to 2020120812. Why was this time changed? If it was by mistake, we can change it back in the .conf file and the test should succeed again.

Hi George, I had miscalculated the initialization date when naming the input file. I realized this when writing the documentation. I forgot to apply the local filename change to the tarball.

@lindsayrblank
Copy link

  1. Typo in the Scientific Objective section, last sentence:
    The challenge is combing these factors into a continuous function that allows the user to assess relative risk.

Replace combing with combining

  1. Under the Datasets section, what are the hash tags in the following supposed to represent?

Variables required to calculate the difficulty index: Levels required: 10-m #. v- component of wind #. u- component of wind #. Windspeed #. Latitude #. Longitude

Thank you for your review, Minna. I have fixed the typo you found and hopefully the numbered list builds correctly. I have used it in other use case documentation in the past, so it should theoretically work.

@georgemccabe
Copy link
Collaborator Author

Once the input data is updated, the conf file is updated to use the correct time, and all of the tests pass, we can merge these changes.

@lindsayrblank
Copy link

Once the input data is updated, the conf file is updated to use the correct time, and all of the tests pass, we can merge these changes.

I updated the input data and the conf file. It looks like the tests run after I made those changes have passed. I think we're good!

@georgemccabe georgemccabe merged commit ca10092 into develop Jan 26, 2021
@georgemccabe georgemccabe deleted the feature_628_diff_index branch January 26, 2021 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Difficulty Index use-case for NRL transitioned capability
3 participants