TRIQS / triqs

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

fix: python AtomDiag force real if real #919

Closed thenoursehorse closed 10 months ago

thenoursehorse commented 11 months ago

Fixes triqs/triqs#918

Forces h to be real when passed to AtomDiagReal

The unit test might also be useful to check that python is passing the correct objects to the c++ constructors.

Wentzell commented 10 months ago

Thank you @thenoursehorse for this improvement. I have iterated on the PR and pushed a number of changes. Please have a look and let me know if you agree.

thenoursehorse commented 10 months ago

It looks good to me. Thanks @Wentzell.