Ticket Change Details
Overview

Artifact ID: 6adc5b2949828d84c1e90681b7bd1d474e8dd663
Ticket: d7804c068eeba660dcfe7e2b0b2359c20e8e3128
Convert cap_frac to percent in all test/*.output files.
User & Date: mrh 2015-05-20 23:39:32
Changes

  1. Change icomment to:

    Develop the following AWK program to do this needed conversion:

    # fixcf.awk : changes cap_frac from decimal to percent # USAGE: [g]awk -f fixcf.awk OLD > NEW ; mv NEW OLD { cap_frac = $4; if ( cap_frac > 1.0 ) { print $0; } else { capf_pct = cap_frac * 100.0; printf("%s %s %s %.2f %s %s %s\n", $1, $2, $3, capf_pct, $5, $6, $7) } }

    Apply this USAGE to the following test/*.output files: test/sample_15_10_kais.output test/sample_15_10_ospc.output test/sample_15_1_kais.output test/sample_15_1_ospc.output test/sample_cap_reform.output test/sample_current_law.output test/sample_fme_reform.output

    After making these changes to the test/*.output files, the following work OK: python tests.py python ptc_out_diff.py test/sample_15_10_ospc.output test/sample_15_10_kais.output python ptc_out_diff.py test/sample_15_1_ospc.output test/sample_15_1_kais.output

  2. Change login to "mrh"
  3. Change mimetype to "text/x-fossil-plain"
  4. Change priority to "Immediate"
  5. Change resolution to "Fixed"
  6. Change title to:

    Convert cap_frac to percent in all test/*.output files.