Skip to content
This repository has been archived by the owner on Oct 23, 2022. It is now read-only.

BrianGun/issue378 #379

Merged
merged 19 commits into from
Mar 8, 2022
Merged

BrianGun/issue378 #379

merged 19 commits into from
Mar 8, 2022

Conversation

BrianGun
Copy link
Contributor

@BrianGun BrianGun commented Mar 4, 2022

Pull Request Template

Description

Fixed incorrect assignment of eyebox number to lenslet arrays with RGB lenslets.

Fixes # (378)

Type of change

  • [x ] Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Created new test for eyebox assignment

Checklist:

  • [x ] My code follows the style guidelines of this project
  • [ x] I have performed a self-review of my own code
  • [ x] I have commented my code, particularly in hard-to-understand areas
  • [x ] I have made corresponding changes to the documentation
  • [ x] My changes generate no new warnings
  • [ x] I have added tests that prove my fix is effective or that my feature works
  • [x ] New and existing unit tests pass locally with my changes
  • [ x] Any dependent changes have been merged and published in downstream modules
  • [x ] I have checked my code and corrected any misspellings

Fixes #376
replaced all references to SCHOTT with hardcoded glasses in both docs and src. Some notebooks are still not working correctly, for other reasons.
…trings to initialize the SurfaceType column.
… and rectangular grid ray patterns that have been replaced by the new Emitters code.

Added RayListSource as a first step in making some examples in other_examples.jl work.
…ch use the function and will require considerable work to update.
… work correctly but others still need work.

deleted two examples that used the old spot diagram vis code that referenced HexapolarField.
…ted direct reference to fields of source in draw! routines and made the argument type an AbstractSource instead of a concrete Source.
Fixes #376

fixed vistest in Diagnostics.jl so it passes correct argument to RayListSource constructor
Fixes #378

added RGBCluster type to ClusterWithProperties so lenslet eyebox assignment code can determine if eyeboxes need to be assigned across RGB
… and it should have been [2 -4;2 2].

Added extensive documentation to eyebox_numbers

added a test for new eyebox numbering that correctly accounts for RGB lenslets.
rewrote eyebox number assignment test as a function.
@BrianGun BrianGun requested a review from galran March 4, 2022 22:30
@codecov-commenter
Copy link

codecov-commenter commented Mar 4, 2022

Codecov Report

Merging #379 (faee463) into main (b5c2bf1) will increase coverage by 1.01%.
The diff coverage is 64.28%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #379      +/-   ##
==========================================
+ Coverage   54.14%   55.16%   +1.01%     
==========================================
  Files          81       80       -1     
  Lines        8076     7735     -341     
==========================================
- Hits         4373     4267     -106     
+ Misses       3703     3468     -235     
Impacted Files Coverage Δ
src/Examples/docs_examples.jl 0.00% <0.00%> (ø)
src/Examples/other_examples.jl 2.04% <0.00%> (+0.31%) ⬆️
src/Examples/repeating_structure_examples.jl 16.00% <0.00%> (-12.27%) ⬇️
src/Vis/Emitters.jl 0.00% <0.00%> (ø)
src/Vis/Visualization.jl 9.20% <0.00%> (+0.25%) ⬆️
src/Optical/Emitters/Sources.jl 89.02% <33.33%> (-6.98%) ⬇️
src/RepeatingStructures/Multilens/HexTilings.jl 87.75% <85.71%> (-0.25%) ⬇️
src/RepeatingStructures/Cluster.jl 82.08% <100.00%> (+7.54%) ⬆️
src/RepeatingStructures/Multilens/HexClusters.jl 70.27% <100.00%> (+1.84%) ⬆️
...RepeatingStructures/Multilens/LensletAssignment.jl 8.06% <100.00%> (+8.06%) ⬆️
... and 58 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b5c2bf1...faee463. Read the comment docs.

@BrianGun BrianGun enabled auto-merge (squash) March 4, 2022 23:51
@BrianGun BrianGun merged commit 768ddf2 into main Mar 8, 2022
@BrianGun BrianGun deleted the BrianGun/issue378 branch March 8, 2022 21:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants