timewise 0.3.1__py3-none-any.whl → 0.3.2__py3-none-any.whl
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.
- timewise/wise_data_by_visit.py +13 -6
- {timewise-0.3.1.dist-info → timewise-0.3.2.dist-info}/METADATA +1 -1
- {timewise-0.3.1.dist-info → timewise-0.3.2.dist-info}/RECORD +5 -5
- {timewise-0.3.1.dist-info → timewise-0.3.2.dist-info}/WHEEL +1 -1
- {timewise-0.3.1.dist-info → timewise-0.3.2.dist-info}/LICENSE +0 -0
timewise/wise_data_by_visit.py
CHANGED
|
@@ -327,12 +327,19 @@ class WiseDataByVisit(WISEDataBase):
|
|
|
327
327
|
metadata[Nk] = len(ilc)
|
|
328
328
|
|
|
329
329
|
if len(ilc) > 0:
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
np.
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
330
|
+
# check if ppb sum to more than zero
|
|
331
|
+
if sum(ilc[ppb_key]) > 0:
|
|
332
|
+
metadata[mean_weighted_ppb_key] = np.average(ilc[llumkey], weights=ilc[ppb_key])
|
|
333
|
+
metadata[excess_variance_key], metadata[excess_variance_err_key] = get_excess_variance(
|
|
334
|
+
np.array(ilc[llumkey]),
|
|
335
|
+
np.array(ilc[errkey]),
|
|
336
|
+
np.array(metadata[mean_weighted_ppb_key])
|
|
337
|
+
)
|
|
338
|
+
|
|
339
|
+
# if not we can not calculate the excess variance
|
|
340
|
+
else:
|
|
341
|
+
for k in [mean_weighted_ppb_key, excess_variance_key, excess_variance_err_key]:
|
|
342
|
+
metadata[k] = np.nan
|
|
336
343
|
|
|
337
344
|
imin = ilc[llumkey].min()
|
|
338
345
|
imax = ilc[llumkey].max()
|
|
@@ -6,9 +6,9 @@ timewise/point_source_utils.py,sha256=ffVgEVTY93u_vy9wK9z1o6eNFv6Tjd2pHcVd3Vfxcw
|
|
|
6
6
|
timewise/utils.py,sha256=f1cIBNbrQ91zr74qJ32qOVDXxo4bIWVQvqB2Dyv-XrA,6885
|
|
7
7
|
timewise/wise_bigdata_desy_cluster.py,sha256=rvmExS0rPDW6PmFLUyTYo3ECq74YYI22bCw2HOnnh78,52615
|
|
8
8
|
timewise/wise_data_base.py,sha256=nf1KpCaT0_cLSZarIDg1_yNqxN18NGhHsG17OZn3O2I,66314
|
|
9
|
-
timewise/wise_data_by_visit.py,sha256=
|
|
9
|
+
timewise/wise_data_by_visit.py,sha256=zYGvtWZjYgFYx6wkbnUijYJGBTyvjEOf0FU7fECxFh8,16973
|
|
10
10
|
timewise/wise_flux_conversion_correction.dat,sha256=XLnYqk0g1NVthVSNGsKlqinzKI7QUwJidO-qg4tHXKU,1095
|
|
11
|
-
timewise-0.3.
|
|
12
|
-
timewise-0.3.
|
|
13
|
-
timewise-0.3.
|
|
14
|
-
timewise-0.3.
|
|
11
|
+
timewise-0.3.2.dist-info/LICENSE,sha256=sVoNJWiTlH-NarJx0wdsob468Pg3JE6vIIgll4lCa3E,1070
|
|
12
|
+
timewise-0.3.2.dist-info/METADATA,sha256=yWCVRJEZTRNPpDJgrJ-sZyOelgvWVWpH1d8UnHZJmDA,3264
|
|
13
|
+
timewise-0.3.2.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
|
|
14
|
+
timewise-0.3.2.dist-info/RECORD,,
|
|
File without changes
|