|
5 | 5 | import os
|
6 | 6 |
|
7 | 7 | parser = argparse.ArgumentParser(
|
8 |
| - description="ADIOS json file parser step 2 (step 1 is use compare.sh to collect properties from json)" |
| 8 | + description="ADIOS json file parser inputs" |
9 | 9 | )
|
10 | 10 |
|
11 | 11 | TAGS = {
|
12 | 12 | "input_dir": "dataDir", # key name for input direcory is "dataDir"
|
13 |
| - "rank": "whichRank", ## |
14 |
| - "out": "plotPrefix", ## |
15 |
| - "showfig": "showFig", ## |
| 13 | + "rank": "whichRank", # which rank to peek profile |
| 14 | + "out": "plotPrefix", # for output file name |
| 15 | + "showfig": "showFig", # call plt.show or not |
16 | 16 | "attr": "jsonAttr", # key refer to specific json attr
|
17 | 17 | "zero": "zeroIf", # key refer to a min number to be treated as 0. Spot the first rank with this value, and only plot up to this rank.
|
18 | 18 | "level": "levelAxis",
|
19 | 19 | }
|
20 | 20 |
|
21 | 21 | TAGS_DEFAULT = {
|
22 | 22 | "input_dir": "outs/", # key name for input direcory defaults to "outs/"
|
23 |
| - "rank": 0, ## |
24 |
| - "out": "plot", ## |
25 |
| - "showfig": "False", ## |
| 23 | + "rank": 0, # |
| 24 | + "out": "plot", # |
| 25 | + "showfig": "False", # |
26 | 26 | "attr": "ES", # default json attr to look at is ES
|
27 | 27 | "zero": "0.000001", # ignore if smaller than
|
28 | 28 | "level": "False", # whether left/right axises (if both exist) should display same range
|
@@ -115,4 +115,3 @@ def parse_vars(items):
|
115 | 115 | if showFig_val not in ("true", "false"):
|
116 | 116 | parser.error(f"showFig must be 'True' or 'False', got '{command_options[TAGS['level']]}'")
|
117 | 117 | command_options[TAGS["showfig"]] = showFig_val == "true"
|
118 |
| - |
0 commit comments