Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: change column order of the summary table #22

Merged
merged 1 commit into from
Oct 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading