Skip to content

Commit

Permalink
Merge pull request #64 from coltonbh/bugfix-dpi-no-model
Browse files Browse the repository at this point in the history
  • Loading branch information
coltonbh authored Oct 16, 2024
2 parents a229b81 + bc315cd commit 36aef38
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [unreleased]

### Fixed

- `view.view(...)` displays an empty string if `.model` is `None` on `DualProgramInput` rather than raising an exception.

## [0.11.13] - 2024-10-01

###
Expand Down
4 changes: 3 additions & 1 deletion qcio/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,9 @@ def generate_output_table(*prog_outputs: ProgramOutput) -> str:
else "No timing data"}</td>
<td>{po.input_data.calctype.name}</td>
<td>{f"{po.provenance.program} {po.provenance.program_version or ''}"}</td>
<td>{generate_dictionary_string(po.input_data.model.model_dump(exclude=["extras"]))}</td>
<td>{generate_dictionary_string(
po.input_data.model.model_dump(exclude=["extras"])
) if po.input_data.model else ""}</td>
<td>{generate_dictionary_string(po.input_data.keywords)}</td>
"""
if po.input_data.files:
Expand Down

0 comments on commit 36aef38

Please sign in to comment.