Skip to content

Commit

Permalink
alphabetize ls fields
Browse files Browse the repository at this point in the history
there was no order previously, so might as well be alphabetized
  • Loading branch information
asmacdo committed Feb 21, 2025
1 parent 10615ee commit 75003f4
Showing 1 changed file with 19 additions and 20 deletions.
39 changes: 19 additions & 20 deletions src/con_duct/suite/ls.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,39 +17,38 @@
lgr = logging.getLogger(__name__)

VALUE_TRANSFORMATION_MAP: Dict[str, str] = {
"exit_code": "{value!E}",
"wall_clock_time": "{value:.3f} sec",
"peak_rss": "{value!S}",
"memory_total": "{value!S}",
"average_pcpu": "{value:.2f!N}%",
"average_pmem": "{value:.2f!N}%",
"average_rss": "{value!S}",
"peak_vsz": "{value!S}",
"average_vsz": "{value!S}",
"peak_pmem": "{value:.2f!N}%",
"average_pmem": "{value:.2f!N}%",
"end_time": "{value:.2f!N}",
"exit_code": "{value!E}",
"memory_total": "{value!S}",
"peak_pcpu": "{value:.2f!N}%",
"average_pcpu": "{value:.2f!N}%",
"peak_pmem": "{value:.2f!N}%",
"peak_rss": "{value!S}",
"peak_vsz": "{value!S}",
"start_time": "{value:.2f!N}",
"end_time": "{value:.2f!N}",
"wall_clock_time": "{value:.3f} sec",
}

NON_TRANSFORMED_FIELDS: List[str] = [
"hostname",
"uid",
"user",
"gpu",
"duct_version",
"schema_version",
"command",
"prefix",
"cpu_total",
"duct_version",
"gpu",
"hostname",
"info",
"logs_prefix",
"num_samples",
"num_reports",
"prefix",
"schema_version",
"stderr",
"stdout",
"cpu_total",
"logs_prefix",
"uid",
"usage",
"info",
"prefix",
"user",
]

LS_FIELD_CHOICES: List[str] = (
Expand Down

0 comments on commit 75003f4

Please sign in to comment.