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

Issue977: add_rays_from_diagnostic(), poly2d_check and poly2d_sample, color cycling fixed #1004

Merged
merged 18 commits into from
Jan 13, 2025

Conversation

Didou09
Copy link
Member

@Didou09 Didou09 commented Jan 12, 2025

Main changes:

  • tf.data.poly2d_check() implemented, for:

    • clockwise vs ccw
    • closed vs open
    • dimensional checks
  • tf.data.poly2d_sample() implemented, for:

    • sampling edge (outline)
    • sampling surface
  • add_diagnostic_rays() implemented, for:

    • creating shape_cam + (nstart, nend) array of rays for each pixel
    • only handle a single optics per pixel so far (user-defined using index)
  • Unit tests added for add_diagnostic_rays()

  • color cycling for LOS fixed

  • Better error msg for add_rays()

  • Minor debug of user_limits for vos computation

  • Minor cleanup of variable names

Issues:

Fixes, in devel, issues:

@pep8speaks
Copy link

pep8speaks commented Jan 12, 2025

Hello @Didou09! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 189:27: W292 no newline at end of file

Line 442:14: W292 no newline at end of file

Line 301:80: E501 line too long (80 > 79 characters)

Line 623:41: E228 missing whitespace around modulo operator
Line 778:45: E228 missing whitespace around modulo operator
Line 1188:37: E228 missing whitespace around modulo operator
Line 1212:38: E228 missing whitespace around modulo operator
Line 1254:37: E228 missing whitespace around modulo operator
Line 1280:42: E228 missing whitespace around modulo operator
Line 1329:51: E228 missing whitespace around modulo operator
Line 1355:52: E228 missing whitespace around modulo operator

Line 438:53: W292 no newline at end of file

Line 824:80: E501 line too long (84 > 79 characters)
Line 829:80: E501 line too long (81 > 79 characters)
Line 830:80: E501 line too long (82 > 79 characters)
Line 833:25: E228 missing whitespace around modulo operator

Comment last updated at 2025-01-13 01:09:21 UTC

@Didou09 Didou09 changed the title Issue977 add rays diag Issue977 add rays diag, poly2d_check and poly2d_sample, color cycling fixed Jan 13, 2025
@Didou09 Didou09 changed the title Issue977 add rays diag, poly2d_check and poly2d_sample, color cycling fixed Issue977: add_rays_from_diagnostic(), poly2d_check and poly2d_sample, color cycling fixed Jan 13, 2025
Copy link
Member Author

@Didou09 Didou09 left a comment

Choose a reason for hiding this comment

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

Ready

@Didou09 Didou09 merged commit 6527bc4 into devel Jan 13, 2025
14 checks passed
@Didou09 Didou09 deleted the Issue977_AddRaysDiag branch January 13, 2025 04:12
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.

3 participants