Merge pull request #85 from TRIQS/jenkins

Fix use of numpy.full on older numpy
This commit is contained in:
Nils Wentzell 2018-02-14 09:48:37 -05:00 committed by GitHub
commit 0f704272f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -28,6 +28,9 @@ from sumk_dft import SumkDFT
from scipy.integrate import *
from scipy.interpolate import *
if not hasattr(numpy, 'full'):
# polyfill full for older numpy:
numpy.full = lambda a, f: numpy.zeros(a) + f
class SumkDFTTools(SumkDFT):
"""