mirror of
https://github.com/triqs/dft_tools
synced 2024-12-21 11:53:41 +01:00
Merge pull request #85 from TRIQS/jenkins
Fix use of numpy.full on older numpy
This commit is contained in:
commit
0f704272f0
@ -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):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user