Skip to content

Commit

Permalink
style: change column order of the summary table
Browse files Browse the repository at this point in the history
Column are now order according to importance and
change frequency
  • Loading branch information
candleindark committed Oct 30, 2024
1 parent 20bb892 commit 4fd1c34
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/dandisets_linkml_status_tools/cli/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,11 @@ def output_reports(reports: list[DandisetValidationReport], output_path: Path) -
summary_headers = [
"dandiset",
"version",
"schema_version",
"api_status",
"modified",
"pydantic",
"linkml",
"modified",
"api_status",
"schema_version",
]

# Remove the existing report output directory if it exists
Expand Down Expand Up @@ -296,12 +296,6 @@ def output_reports(reports: list[DandisetValidationReport], output_path: Path) -
f"[{r.dandiset_identifier}]({dandiset_dir}/)",
# For the version column
f"[{r.dandiset_version}]({version_dir}/metadata.yaml)",
# For schema_version column
r.dandiset_schema_version,
# For the api_status column
r.dandiset_version_status.value,
# For the modified column
r.dandiset_version_modified.isoformat(),
# For the pydantic column
(
f"[{len(r.pydantic_validation_errs)} "
Expand All @@ -318,6 +312,12 @@ def output_reports(reports: list[DandisetValidationReport], output_path: Path) -
if r.linkml_validation_errs
else "0"
),
# For the modified column
r.dandiset_version_modified.isoformat(),
# For the api_status column
r.dandiset_version_status.value,
# For schema_version column
r.dandiset_schema_version,
]
)
summary_f.write(_gen_row(row_cells))
Expand Down

0 comments on commit 4fd1c34

Please sign in to comment.