Uploaded image for project: 'Apache Open Climate Workbench (Retired)'
  1. Apache Open Climate Workbench (Retired)
  2. CLIMATE-110

Pull the 'raw_input' functions out of the metrics.calcPdf function

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.1-incubating
    • 0.1-incubating
    • metrics
    • None

    Description

      While reviewing a recent Review Board for metrics.py I noticed we have several raw_input() functions within the calcPdf function.

      nbins = int (raw_input('Please enter the number of bins to use. \n'))
      minEdge = float(raw_input('Please enter the minimum value to use for the edge. \n'))
      maxEdge = float(raw_input('Please enter the maximum value to use for the edge. \n'))

      These parameters should instead be passed into the function by the caller. This will make the code easier to call from an external script or the GUI.

      This should be started once CLIMATE-88 is resolved.

      Attachments

        Activity

          People

            cgoodale Cameron Goodale
            cgoodale Cameron Goodale
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2h
                2h