Skip to content

Commit 6f6fb84

Browse files
committed
show(ParTable): suppress NaNs
1 parent 222add4 commit 6f6fb84

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/frontend/specification/ParameterTable.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ function Base.show(io::IO, partable::ParameterTable)
105105
as_matrix,
106106
header = (shown_columns, [eltype(partable.columns[col]) for col in shown_columns]),
107107
tf = PrettyTables.tf_compact,
108+
# TODO switch to `missing` as non-specified values and suppress printing of `missing` instead
109+
formatters = (v, i, j) -> isa(v, Number) && isnan(v) ? "" : v,
108110
)
109111

110112
print(io, "Latent Variables: $(partable.latent_vars) \n")

0 commit comments

Comments
 (0)