From 2690f34b6e38e9a3bf1597cb13243ff50322790d Mon Sep 17 00:00:00 2001 From: Nick Frasser <1693461+nfrasser@users.noreply.github.com> Date: Thu, 16 Jan 2025 11:05:54 -0500 Subject: [PATCH] fix(tools): show x when printing result not passthrough --- cryosparc/controllers/job.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/cryosparc/controllers/job.py b/cryosparc/controllers/job.py index 613c3c65..c1613626 100644 --- a/cryosparc/controllers/job.py +++ b/cryosparc/controllers/job.py @@ -1050,16 +1050,16 @@ def print_output_spec(self): >>> job.doc['type'] 'extract_micrographs_multi' >>> job.print_output_spec() - Output | Title | Type | Result Slots | Result Types - ========================================================================================== - micrographs | Micrographs | exposure | micrograph_blob | micrograph_blob - | | | micrograph_blob_non_dw | micrograph_blob - | | | background_blob | stat_blob - | | | ctf | ctf - | | | ctf_stats | ctf_stats - | | | mscope_params | mscope_params - particles | Particles | particle | blob | blob - | | | ctf | ctf + Output | Title | Type | Result Slots | Result Types | Passthrough? + ========================================================================================================= + micrographs | Micrographs | exposure | micrograph_blob | micrograph_blob | ✕ + | | | micrograph_blob_non_dw | micrograph_blob | ✓ + | | | background_blob | stat_blob | ✓ + | | | ctf | ctf | ✓ + | | | ctf_stats | ctf_stats | ✓ + | | | mscope_params | mscope_params | ✓ + particles | Particles | particle | blob | blob | ✕ + | | | ctf | ctf | ✕ """ specs = self.cs.api.jobs.get_output_specs(self.project_uid, self.uid) headings = ["Output", "Title", "Type", "Result Slots", "Result Types", "Passthrough?"] @@ -1071,7 +1071,7 @@ def print_output_spec(self): continue name, title, type = key, spec.title, spec.type for result in output.results: - rows.append([name, title, type, result.name, result.dtype, "✓" if result.passthrough else ""]) + rows.append([name, title, type, result.name, result.dtype, "✓" if result.passthrough else "✕"]) name, title, type = "", "", "" # only these print once per group print_table(headings, rows)