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

BrianGun/issue257 #264

Merged
merged 26 commits into from
Aug 18, 2021
Merged

BrianGun/issue257 #264

merged 26 commits into from
Aug 18, 2021

Conversation

BrianGun
Copy link
Contributor

@BrianGun BrianGun commented Aug 11, 2021

Functions to create and manipulate clusters of elements in lattices.

Description

These functions allow you to create repeating clusters of lattice elements.

Fixes # (257)

Type of change

  • 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 various clusters and verified that they graphed properly.

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
  • 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
  • [x ] New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have checked my code and corrected any misspellings

BrianGun added 17 commits August 5, 2021 16:03
Fixes #257
added cluster lattice
modified latticebasis to use matrix to represent basis vectors instead of SVector{SVector}}. Simpler.
Fixes #257

working on LatticeCluster. LatticeBasis constructor is allocating for obscure reasons. This is probably not a performance issue since this shouldn't be in performance critical parts of the code.
Fixes #257

basic cluster lattices seem to be working. Need to write better visualization code.
Fixes #257

added function to create example LatticeCluster

reworking draw for clusters so it is more sensible.
Fixes #257

incomplete type signature on basis function for LatticeBasis was causing allocations and huge increase in computation. Fixed now.
Fixes #257

variable renaming
Fixes #257

changed draw functions to draw any type of lattice shape not just HexBasis1.

Added Hex12RGB function to make hex12 pattern. Not working yet.
…r lattices so they will draw cell names as well as indices.

fixed error in HexBasis3 basis function

updated examples so hex drawings work with the new code
Fixes #257

comment change
Fixes #257
removed unused code from VisRepeatingStructures.jl
@codecov-commenter
Copy link

codecov-commenter commented Aug 11, 2021

Codecov Report

Merging #264 (6cff034) into main (1fce5a5) will increase coverage by 0.92%.
The diff coverage is 43.60%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #264      +/-   ##
==========================================
+ Coverage   53.01%   53.93%   +0.92%     
==========================================
  Files          77       78       +1     
  Lines        6974     7056      +82     
==========================================
+ Hits         3697     3806     +109     
+ Misses       3277     3250      -27     
Impacted Files Coverage Δ
...tical/ParaxialAnalysis/HeadEyeModel/Arrangement.jl 0.00% <0.00%> (ø)
.../Optical/ParaxialAnalysis/HeadEyeModel/Examples.jl 0.00% <0.00%> (ø)
...al/ParaxialAnalysis/HeadEyeModel/HeadEyeClasses.jl 0.00% <0.00%> (ø)
src/RepeatingStructures/RectangularLattice.jl 20.00% <20.00%> (-80.00%) ⬇️
src/Examples/repeating_structure_examples.jl 28.26% <28.26%> (ø)
src/RepeatingStructures/HexagonalLattice.jl 46.47% <40.00%> (+46.47%) ⬆️
src/RepeatingStructures/Cluster.jl 51.85% <51.85%> (ø)
src/RepeatingStructures/Lattice.jl 71.42% <90.90%> (+66.88%) ⬆️
src/Vis/VisRepeatingStructures.jl 93.02% <96.42%> (+93.02%) ⬆️
... and 3 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 1fce5a5...6cff034. Read the comment docs.

@BrianGun BrianGun requested a review from galran August 12, 2021 02:17
Fixes #257

fixed naming error for file repeating_structure_examples.jl

moved example cluster functions to the example file

added more examples for creating and drawing ClusterWithProperties
@BrianGun
Copy link
Contributor Author

@galran could you look over this PR and tell me if you think more examples are necessary (look in Examples directory, repeating_structures_examples.jl).

Copy link
Collaborator

@galran galran left a comment

Choose a reason for hiding this comment

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

didn't go too deep but looks fine as far as i can tell

@BrianGun BrianGun merged commit f3bfebb into main Aug 18, 2021
@BrianGun BrianGun deleted the BrianGun/issue257 branch August 18, 2021 18:30
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