Merge pull request #13074 from wilsonwang371/rw-bm-bugfix

tools: fix small rw-heatmaps python plot script argument parsing bug
This commit is contained in:
Gyuho Lee 2021-06-02 13:59:48 -07:00 committed by GitHub
commit af6f3dcba5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,9 +23,11 @@ def parse_args():
help='second input data files in csv format. (optional)') help='second input data files in csv format. (optional)')
parser.add_argument('-t', '--title', dest='title', type=str, required=True, parser.add_argument('-t', '--title', dest='title', type=str, required=True,
help='plot graph title string') help='plot graph title string')
parser.add_argument('-z', '--zero-centered', dest='zero', type=bool, required=False, parser.add_argument('-z', '--zero-centered', dest='zero', action='store_true', required=False,
help='plot the improvement graph with white color represents 0.0', help='plot the improvement graph with white color represents 0.0',
default=True) default=True)
parser.add_argument('--no-zero-centered', dest='zero', action='store_false', required=False,
help='plot the improvement graph without white color represents 0.0')
parser.add_argument('-o', '--output-image', dest='output', type=str, required=True, parser.add_argument('-o', '--output-image', dest='output', type=str, required=True,
help='output image filename') help='output image filename')
return parser.parse_args() return parser.parse_args()