From de2b6fcb666378b9722fc4d1c27ab73176c566a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Terr=C3=B3n?= Date: Mon, 5 Apr 2021 18:37:38 +0200 Subject: [PATCH] Fix diffphot docstring We subtract the magnitude of the comparison star from that of the star, not the other way around: https://github.com/vterron/lemon/blob/0a33c725bf2f229d9ae9e3f9de50bfb2141a3fba/diffphot.py#L468 --- diffphot.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/diffphot.py b/diffphot.py index b7461c3..a886fbb 100644 --- a/diffphot.py +++ b/diffphot.py @@ -35,11 +35,14 @@ identifying the most constant stars in the field, (b) computing an artificial comparison star by taking the weighted mean of the instrumental magnitudes of these constant stars, using weights inversely proportional to their standard -deviations and, lastly, (c) comparing the instrumental magnitude of our star to -that of the comparison star. In this last step we subtract the magnitude of the -star from that of the comparison star: in this manner, positive values mean -that the former is brighter than the latter. - +deviations and (c) subtracting the magnitude of the artificial comparison star +from that of our star. This, along with the fact that magnitudes become lower +the brighter astronomical objects appear, implies that: + + (1) Negative values in the light curve mean mean that our star is brighter + than the artificial comparison star, and + (2) A decreasing differental magnitude in the light curve means that our + star appears brighter. """ import copy