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

Fix diffphot docstring - #115

Open
vterron wants to merge 1 commit into
masterfrom
diffphot-docstring
Open

Fix diffphot docstring#115
vterron wants to merge 1 commit into
masterfrom
diffphot-docstring

Conversation

@vterron

@vterron vterron commented Apr 5, 2021

Copy link
Copy Markdown
Owner

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 thread diffphot.py
Comment on lines +44 to +45
(2) A decreasing differental magnitude in the light curve means that our
star appears brighter.

@akdiaz akdiaz Apr 9, 2021

Copy link
Copy Markdown
Collaborator

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