Skip to content

Commit

Permalink
fix(tools): show x when printing result not passthrough
Browse files Browse the repository at this point in the history
  • Loading branch information
nfrasser committed Jan 16, 2025
1 parent da6b43c commit 2690f34
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions cryosparc/controllers/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -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?"]
Expand All @@ -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)

Expand Down

0 comments on commit 2690f34

Please sign in to comment.