-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add guide star catalog flag #141
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor changes except the auto
switch, which should be done before merging.
python/pfs/datamodel/guideStars.py
Outdated
ASTROMETRIC: Astrometric excess noise is small (astrometric_excess_noise<1.0). | ||
ASTROMETRIC_SIG: Astrometric excess noise is significant (astrometric_excess_noise_sig<2.0). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't feel like these names make sense but we can keep them. It should be a high and low limit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I think you are right. We will not use this info this time, but I'll fix that.
A dimensionless measure (𝐷) of the significance of the calculated astrometric_excess_noise (𝜖𝑖). A value 𝐷>2 indicates that the given 𝜖𝑖 is probably significant.
python/pfs/datamodel/guideStars.py
Outdated
PARA_SIG = auto() | ||
ASTROMETRIC = auto() | ||
ASTROMETRIC_SIG = auto() | ||
RUWE = auto() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be BINARY
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would say NON_BINARY
.
python/pfs/datamodel/guideStars.py
Outdated
@@ -48,6 +49,8 @@ class GuideStars: | |||
guideStarCatId : `int` | |||
The identifier for the catalogue from which the guide stars | |||
were taken. | |||
flag : `numpy.ndarray' of `int` | |||
The flag infromation for the guidestar catalog. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The flag infromation for the guidestar catalog. | |
The flag information for the guidestar catalog. |
python/pfs/datamodel/guideStars.py
Outdated
PHOTO_SIG: Photometric measurement is significant (SNR>5). | ||
GALAXY: Is a galaxy. | ||
""" | ||
GAIA = auto() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These should probably not use auto
:
GAIA = auto() | |
GAIA = 0x0001 |
1b828fa
to
e9eaeb2
Compare
Flake8 is not happy.
|
There is an issue when you read the config and write the config again.
|
here is a proposed fix, It does insert correctly in the database. |
Thank you for the review!
That's why I set default flag=None but should I rather change |
de2619e
to
c7e0bda
Compare
oups ! yes, you were right. |
Does the obsproc scripts now pass in the flag to GuideStar constructor ?
|
daebcda
to
8217fde
Compare
Thank you! I think you proposal is good. |
No description provided.