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

Add new corrected geometry : version = 4 #23

Merged
merged 5 commits into from
Jan 20, 2020

Conversation

FrancaCassol
Copy link
Collaborator

Geometry version 3 has a wrong PIX_ROT value. This is clearly visible if one makes a zoom of the pixels (see attached plots).
I created geometry version 4 which seems ok and changed the geometry version in the reader.

Should I also remove geometry 3 from the resources in order to avoid its use?

LSTCam-003 camgeom fits gz_zoom
LSTCam-004 camgeom fits gz_zoom

Geometry version three has a wrong PIX_ROT value
@vuillaut
Copy link
Member

Hi.
Well spotted @FrancaCassol .
Why not directly updating the camera geometry 3 rather than creating a new one?

@FrancaCassol
Copy link
Collaborator Author

Hi @vuillaut,
for bookkeeping, people should recognise the wrong situation from the correct one.
I would say that this is the meaning of versioning: when something changes, the version changes...

@maxnoe
Copy link
Member

maxnoe commented Jan 16, 2020

Because versions should indicate that changes were made?
Granted, the pixel orientation is currently used only for displaying purposes, but in the future it could also be used for other stuff, e.g. for toy showers to calculate which pixel was hit by a photon.

@vuillaut
Copy link
Member

Ha ok.
In this case, I was seeing versions just as different cameras that could have been named otherwise and saw this as a bug fix on a specific camera.
But actual versioning is fine :)

@FrancaCassol
Copy link
Collaborator Author

Ah, now I understand your question.
No, this is always the LST camera even if we indeed add the version in the CAM_ID name (which becomes in this case LSTCam-004).
I wonder, for keeping the code back compatible, should we perhaps avoid to hardcode the geometry version in the camera name? The version can anyway be found in the reader attribute event_source.geometry_version

…e LSTCam-004)

and modified the TAB_VER from 1 to 4 in order to reflect the correct version number
@maxnoe
Copy link
Member

maxnoe commented Jan 17, 2020

I think TAB_VER does not refer to the version of the file, but to the format of the table in the file, see

https://github.com/cta-observatory/ctapipe/blob/01c715d3bad00d9a3c4b91f0cc6ac19acec5541b/ctapipe/instrument/camera.py#L305

@FrancaCassol
Copy link
Collaborator Author

Hi @maxnoe,

I think TAB_VER does not refer to the version of the file, but to the format of the table in the file,

I see, then should I perhaps add a CAM_VER meta data?

@kosack
Copy link
Contributor

kosack commented Jan 17, 2020

yes, CAM_VER would be good.

TAB_VER is indeed the "table Data model version" (probably it wasn't the best name). If you add CAM_VER, you should also then increase TAB_VER (since you change the data model).
Anyhow, there will be better headers defined by CTA very soon (working on releasing the doc right now) that will recommend better naming.

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 @FrancaCassol!
Since this is only affecting the display, I would say that we can make a bugfix release for ctapipe_io_lst that can be included in the next lstchain version, do you agree?

@FrancaCassol
Copy link
Collaborator Author

@rlopezcoto,
yes, I agree

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