Skip to content

Commit

Permalink
Merge pull request #151 from daknuett/feature/slight_improvement_of_m…
Browse files Browse the repository at this point in the history
…ultiplication_error_message

added a small improvement to the error message of missing multiplicat…
  • Loading branch information
lehner authored Mar 22, 2024
2 parents 10b2981 + 5799c8d commit d554160
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 d554160

Please sign in to comment.