TRIQS / tprf

TPRF: The Two-Particle Response Function tool box for TRIQS
https://triqs.github.io/tprf
Other
14 stars 12 forks source link

Fix bug in wannier90 hr reader #13

Closed mzingl closed 4 years ago

mzingl commented 4 years ago

Dear all,

this pull-request fixes a bug when reading R-points from wannier90 case_hr.dat files. It makes sure that if there is only one R-point in the last line that this is still returned as as a 1D array by numpy.loadtxt, by setting ndmin explicitly to 1.

This is a tiny 1-line bugfix, thus should be directly merge-able. Please also consider backporting it to 2.2.x. and 2.1.x.

Best, Manuel

Wentzell commented 4 years ago

@mzingl: Thank you for this fix!