TRIQS / triqs

a Toolbox for Research on Interacting Quantum Systems
https://triqs.github.io
GNU General Public License v3.0
139 stars 72 forks source link

fix: bug in is_convertible of block2_gf #872

Closed the-hampel closed 1 year ago

the-hampel commented 1 year ago

the is_convertible function did not return immediately if the obj was not a block2_gf. Not clear why this was written likes this, but this caused troubles since the set PyErrString was then not passed on properly. This resulted in segmentation faults when calling for example make_hermitian(1) instead of throwing an error.

Wentzell commented 1 year ago

Thank you @the-hampel for this fix!