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

BrianGun/issue336 #342

Merged
merged 7 commits into from
Dec 13, 2021
Merged

BrianGun/issue336 #342

merged 7 commits into from
Dec 13, 2021

Conversation

BrianGun
Copy link
Contributor

@BrianGun BrianGun commented Dec 2, 2021

Pull Request Template

Description

changed Transform from a type alias for SMatrix to a struct. The type alias was causing subtle bugs.

Unfortunately these bugs were discovered after I had begun on a different PR to add lenslet assignment code. The two code bases became entwined in a way that is a pain to undo so the PR actually has a mix of code.

Fixes # (i336)

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?

Passed unit test.

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
  • I have added tests that prove my fix is effective or that my feature works
  • 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 #336

changed hcat([0,0]) to [0;0;;] in draw functions for LatticeCluster and ClusterWithProperties. Also changed draw(::LatticeCluster) function to have the scale argument come last so the two cluster draw functions are consistent.
Fixes #336

adding code to setup lenslet system.
Fixes #336

Wrapped the SMatrix for Transform in a new Transform struct. The old type alias Transform{T} = SMatrix{4,4,T,16} was causing subtle bugs. Should have left it the way @galran initially wrote it.
…form module in several files. Replaced them all with Transform.
…I. Made sure all Transform,Transform{T} calls inside Transform.jl were correct usage.
@BrianGun BrianGun requested a review from galran December 2, 2021 23:45
@codecov-commenter
Copy link

codecov-commenter commented Dec 2, 2021

Codecov Report

Merging #342 (c27b031) into main (00e7822) will decrease coverage by 0.14%.
The diff coverage is 49.27%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #342      +/-   ##
==========================================
- Coverage   52.51%   52.37%   -0.15%     
==========================================
  Files          83       84       +1     
  Lines        7721     7759      +38     
==========================================
+ Hits         4055     4064       +9     
- Misses       3666     3695      +29     
Impacted Files Coverage Δ
src/Examples/docs_examples.jl 0.00% <0.00%> (ø)
src/Optical/Lenses.jl 37.06% <0.00%> (ø)
...RepeatingStructures/Multilens/LensletAssignment.jl 0.00% <0.00%> (ø)
src/Vis/VisRepeatingStructures.jl 93.02% <75.00%> (ø)
src/Geometry/Transform.jl 55.34% <86.11%> (+1.96%) ⬆️

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 00e7822...c27b031. Read the comment docs.

galran
galran previously approved these changes Dec 3, 2021
added license to LensletAssignment
@BrianGun BrianGun enabled auto-merge (squash) December 12, 2021 22:38
@BrianGun BrianGun requested a review from galran December 12, 2021 22:38
@BrianGun BrianGun merged commit d797b39 into main Dec 13, 2021
@BrianGun BrianGun deleted the BrianGun/issue336 branch December 13, 2021 23:59
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