plotastrodata 1.9.13__tar.gz → 1.9.14__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {plotastrodata-1.9.13/plotastrodata.egg-info → plotastrodata-1.9.14}/PKG-INFO +1 -1
- {plotastrodata-1.9.13 → plotastrodata-1.9.14}/plotastrodata/__init__.py +1 -1
- {plotastrodata-1.9.13 → plotastrodata-1.9.14}/plotastrodata/noise_utils.py +11 -5
- {plotastrodata-1.9.13 → plotastrodata-1.9.14/plotastrodata.egg-info}/PKG-INFO +1 -1
- {plotastrodata-1.9.13 → plotastrodata-1.9.14}/LICENSE +0 -0
- {plotastrodata-1.9.13 → plotastrodata-1.9.14}/MANIFEST.in +0 -0
- {plotastrodata-1.9.13 → plotastrodata-1.9.14}/README.md +0 -0
- {plotastrodata-1.9.13 → plotastrodata-1.9.14}/plotastrodata/analysis_utils.py +0 -0
- {plotastrodata-1.9.13 → plotastrodata-1.9.14}/plotastrodata/const_utils.py +0 -0
- {plotastrodata-1.9.13 → plotastrodata-1.9.14}/plotastrodata/coord_utils.py +0 -0
- {plotastrodata-1.9.13 → plotastrodata-1.9.14}/plotastrodata/ext_utils.py +0 -0
- {plotastrodata-1.9.13 → plotastrodata-1.9.14}/plotastrodata/fft_utils.py +0 -0
- {plotastrodata-1.9.13 → plotastrodata-1.9.14}/plotastrodata/fits_utils.py +0 -0
- {plotastrodata-1.9.13 → plotastrodata-1.9.14}/plotastrodata/fitting_utils.py +0 -0
- {plotastrodata-1.9.13 → plotastrodata-1.9.14}/plotastrodata/los_utils.py +0 -0
- {plotastrodata-1.9.13 → plotastrodata-1.9.14}/plotastrodata/matrix_utils.py +0 -0
- {plotastrodata-1.9.13 → plotastrodata-1.9.14}/plotastrodata/other_utils.py +0 -0
- {plotastrodata-1.9.13 → plotastrodata-1.9.14}/plotastrodata/plot_utils.py +0 -0
- {plotastrodata-1.9.13 → plotastrodata-1.9.14}/plotastrodata.egg-info/SOURCES.txt +0 -0
- {plotastrodata-1.9.13 → plotastrodata-1.9.14}/plotastrodata.egg-info/dependency_links.txt +0 -0
- {plotastrodata-1.9.13 → plotastrodata-1.9.14}/plotastrodata.egg-info/not-zip-safe +0 -0
- {plotastrodata-1.9.13 → plotastrodata-1.9.14}/plotastrodata.egg-info/requires.txt +0 -0
- {plotastrodata-1.9.13 → plotastrodata-1.9.14}/plotastrodata.egg-info/top_level.txt +0 -0
- {plotastrodata-1.9.13 → plotastrodata-1.9.14}/setup.cfg +0 -0
- {plotastrodata-1.9.13 → plotastrodata-1.9.14}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: plotastrodata
|
|
3
|
-
Version: 1.9.
|
|
3
|
+
Version: 1.9.14
|
|
4
4
|
Summary: plotastrodata is a tool for astronomers to create figures from FITS files and perform fundamental data analyses with ease.
|
|
5
5
|
Home-page: https://github.com/yusukeaso-astron/plotastrodata
|
|
6
6
|
Download-URL: https://github.com/yusukeaso-astron/plotastrodata
|
|
@@ -152,11 +152,17 @@ class Noise:
|
|
|
152
152
|
if 'pbcor' in self.sigma:
|
|
153
153
|
bounds.append([0.1, 2])
|
|
154
154
|
# curve_fit does not work for this fitting.
|
|
155
|
-
#
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
155
|
+
# For binned data, sigma^2 is the expected number of data in each bin.
|
|
156
|
+
|
|
157
|
+
def logl(p):
|
|
158
|
+
dh = self.hbin[1] - self.hbin[0]
|
|
159
|
+
ndata = len(np.ravel(self.data)) * dh
|
|
160
|
+
numobs = self.hist * ndata
|
|
161
|
+
numexp = model(self.hbin, *p) * ndata
|
|
162
|
+
chi2 = np.sum((numobs - numexp)**2 / numexp.clip(1, None))
|
|
163
|
+
return -0.5 * chi2
|
|
164
|
+
|
|
165
|
+
fitter = EmceeCorner(bounds=bounds, logl=logl)
|
|
160
166
|
fitter.fit(**_kw)
|
|
161
167
|
self.popt = fitter.popt
|
|
162
168
|
self.mean = float(self.popt[1] * self.s0 + self.m0)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: plotastrodata
|
|
3
|
-
Version: 1.9.
|
|
3
|
+
Version: 1.9.14
|
|
4
4
|
Summary: plotastrodata is a tool for astronomers to create figures from FITS files and perform fundamental data analyses with ease.
|
|
5
5
|
Home-page: https://github.com/yusukeaso-astron/plotastrodata
|
|
6
6
|
Download-URL: https://github.com/yusukeaso-astron/plotastrodata
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|