Merge pull request #669 from yuankailiu/main

Replace deprecated `normed` with `density` in numpy.histogram()
LT1AB
Ryan Burns 2023-02-23 12:15:54 -08:00 committed by GitHub
commit 8af43d2b9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 23 additions and 23 deletions

View File

@ -120,7 +120,7 @@ def runESD(self, debugPlot=True):
meanval = np.mean(val)
stdval = np.std(val)
hist, bins = np.histogram(val, 50, normed=1)
hist, bins = np.histogram(val, 50, density=True)
center = 0.5*(bins[:-1] + bins[1:])

View File

@ -152,7 +152,7 @@ def runRangeCoreg(self, debugPlot=True):
meanval = np.mean(val)
stdval = np.std(val)
hist, bins = np.histogram(val, 50, normed=1)
hist, bins = np.histogram(val, 50, density=True)
center = 0.5*(bins[:-1] + bins[1:])

View File

@ -141,7 +141,7 @@ def main(iargs=None):
meanval = np.mean(val)
stdval = np.std(val)
hist, bins = np.histogram(val, 50, normed=1)
hist, bins = np.histogram(val, 50, density=True)
center = 0.5*(bins[:-1] + bins[1:])

View File

@ -205,7 +205,7 @@ def main(iargs=None):
meanval = meanval * referenceTop.bursts[0].rangePixelSize
stdval = stdval * referenceTop.bursts[0].rangePixelSize
hist, bins = np.histogram(val, 50, normed=1)
hist, bins = np.histogram(val, 50, density=True)
center = 0.5*(bins[:-1] + bins[1:])
outputDir = os.path.dirname(inps.output)