Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Fix diffphot docstring #115

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix diffphot docstring #115

wants to merge 1 commit into from

Conversation

vterron
Copy link
Owner

@vterron vterron commented Apr 5, 2021

We subtract the magnitude of the comparison star from that of the star, not the other way around, see:

dmag = smag - cmag

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
@vterron vterron requested a review from akdiaz April 5, 2021 16:38
Comment on lines +44 to +45
(2) A decreasing differental magnitude in the light curve means that our
star appears brighter.
Copy link
Collaborator

@akdiaz akdiaz Apr 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would put it the other way around because is usually what happens in reality (e.g. transit):
An increasing differential magnitude in the light curve means that our star becomes fainter.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants