Skip to content
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

Update following changes made in lstchain on pointings #26

Closed
wants to merge 1 commit into from

Conversation

labsaha
Copy link
Contributor

@labsaha labsaha commented Jan 22, 2020

Following recent changes in the lstchain repo for drive pointings, we need to update LSTDriveContainer class as well.

@labsaha labsaha requested a review from vuillaut January 22, 2020 16:54
Copy link
Contributor

@rlopezcoto rlopezcoto left a comment

Choose a reason for hiding this comment

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

Thanks @labsaha! Is this change just "cosmetic" (to change the name "Altitude" to "Zenith") or is it conflicting with the new fields defined in lstchain because of the pointing changes?

@labsaha
Copy link
Contributor Author

labsaha commented Jan 22, 2020

@rlopezcoto It is just cosmetic, as you mentioned: Altitude to Zenith

@maxnoe
Copy link
Member

maxnoe commented Jan 22, 2020

Please do not do this! At least not without conferring first with CTA, pinging @kosack here.

We use altitude everywhere else. This is not a "cosmetic" change!

@labsaha
Copy link
Contributor Author

labsaha commented Jan 22, 2020

@maxnoe In the drive file the values are given Azimuth and Zenith. Hence to be consistent with that it is done in that way.

@maxnoe
Copy link
Member

maxnoe commented Jan 22, 2020

Then you probably should convert into altitude on reading the input file before filling the container as everything after that, including astropy coordinates, expect altitude, not zenith.

@labsaha
Copy link
Contributor Author

labsaha commented Jan 22, 2020

Well, that can be done. But It should not give the wrong message that in the drive report we have Altitude because we are calling the LSTDriveContainer where all fields are considered following the drive report.

@maxnoe
Copy link
Member

maxnoe commented Jan 22, 2020

IMHO, consistency of the in-memory representations in ctapipe/lstchain would be preferable over consistency with the input files.
This is also how these problems are usually handled best: at I/O boundaries conversions take place and internally everything should be consistent.

But this is just my 2 cents, maybe @kosack or @bregeon can also comment.

I see that just the container is changed here. Is it just defined and not used in this repo?
If it is not used here, why is it here?

@labsaha
Copy link
Contributor Author

labsaha commented Jan 22, 2020

@maxnoe I agree with that we should maintain the consistency. Initially, I thought of converting Zenith to Altitude before filling the container. However, at the same time, I thought about the field which is given in the drive logs. Finally, I have gone for the second one. I didn't realize that it might break the consistency in ctapipe. Anyway, I can close the PR once we hear from @kosack @bregeon. And make associated changes in lstchain

@labsaha
Copy link
Contributor Author

labsaha commented Jan 22, 2020

I see that just the container is changed here. Is it just defined and not used in this repo?
If it is not used here, why is it here?

I cannot comment on this, even to my satisfaction. In the past, at one point it was decided somehow to put this here to include all monitoring information (one of them is drive log) in this container class.

@FrancaCassol
Copy link
Collaborator

Hi @maxnoe,

I see that just the container is changed here. Is it just defined and not used in this repo?
If it is not used here, why is it here?

you are right, it could be filled here but somehow we didn't menage to converge toward this solution.

@labsaha I agree with @maxnoe, please keep consistency with ctapipe.

@vuillaut
Copy link
Member

I see that just the container is changed here. Is it just defined and not used in this repo?
If it is not used here, why is it here?

I think the idea was that this information should come with the data?

@labsaha
Copy link
Contributor Author

labsaha commented Jan 23, 2020

Closing this PR and make required changes in lstchain

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

Successfully merging this pull request may close these issues.

5 participants