Skip to content

Major rework of all nearly types and many methods#3

Open
EbertPaul wants to merge 7 commits intoawietek:mainfrom
EbertPaul:swap_column_to_row_convention
Open

Major rework of all nearly types and many methods#3
EbertPaul wants to merge 7 commits intoawietek:mainfrom
EbertPaul:swap_column_to_row_convention

Conversation

@EbertPaul
Copy link

Since from my experience 90% of bugs in such lattice calculations come from the erroneous usage of vectors in different bases, I introduced the EuclideanVector (standard vector), LatticeVector (vector in terms of lattice basis), and FiniteLatticeVector (vector in terms of finite lattice / torus basis) types. Nearly all internal function and method signatures now rely on explicit types for these vectors, which should prevent a lot of undesired behavior and makes the code much more understandable in my opinion. Sadly, this nearly completely breaks compatibility with previous scripts, but I think this was necessary to properly developped this into a package. I made sure that there a usually many function-aliases with different parameter types (such as the different vectors) which are properly handelled.

I also fixes all bugs currently known to me for 3D systems.

There is now a solid set of tests for the most important functionalities.

I (rather briefly) updated the examples and plotting functionalities.

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.

1 participant