Skip to content

Improve docstring and validation of parameters in CameraGeometry#2361

Merged
maxnoe merged 3 commits into
mainfrom
fix_single_pixel_area
Jun 20, 2023
Merged

Improve docstring and validation of parameters in CameraGeometry#2361
maxnoe merged 3 commits into
mainfrom
fix_single_pixel_area

Conversation

@maxnoe
Copy link
Copy Markdown
Member

@maxnoe maxnoe commented Jun 20, 2023

No description provided.

kosack
kosack previously approved these changes Jun 20, 2023
pix_y : u.Quantity
position of each pixel (y-coordinate)
pix_area : array(float)
surface area of each pixel, if None will be calculated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

was this "if not given will be calculated" simply not correct?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, this got removed a long time ago and made a required argument

@maxnoe maxnoe requested a review from Tobychev June 20, 2023 14:48
@maxnoe maxnoe added this to the v0.19.3 milestone Jun 20, 2023
Comment thread ctapipe/instrument/camera/geometry.py Outdated
Comment thread ctapipe/instrument/camera/geometry.py
@maxnoe maxnoe requested a review from LukasNickel June 20, 2023 15:46
@maxnoe maxnoe modified the milestones: v0.19.3, v0.20.0 Jun 20, 2023
@maxnoe maxnoe merged commit 37c08be into main Jun 20, 2023
@maxnoe maxnoe deleted the fix_single_pixel_area branch June 20, 2023 16:17
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.

CameraGeometry does not validate that pix_area is an array with a value for each pixel

4 participants