Skip to content

Commit

Permalink
added a small improvement to the error message of missing multiplicat…
Browse files Browse the repository at this point in the history
…ion table entry
  • Loading branch information
Daniel Knuettel authored and Daniel Knuettel committed Mar 13, 2024
1 parent 10b2981 commit 5799c8d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/gpt/core/expr.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,10 @@ def get_otype_from_multiplication(t_otype, t_adj, f_otype, f_adj):
elif t_otype.data_alias is not None:
return get_otype_from_multiplication(t_otype.data_alias(), t_adj, f_otype, f_adj)
else:
ajd_str_t = ".T" if t_adj else ""
ajd_str_f = ".T" if f_adj else ""
gpt.message(
"Missing entry in multiplication table: %s x %s"
% (t_otype.__name__, f_otype.__name__)
f"Missing entry in multiplication table: {t_otype.__name__}{ajd_str_t} x {f_otype.__name__}{ajd_str_f}"
)
return rtab[f_otype.__name__][0]()

Expand Down

0 comments on commit 5799c8d

Please sign in to comment.