mesoOSU / Mart2Aust_Hackathon

Fork of Orix for developing tools necessary to make the AusRecon package in python
https://orix.readthedocs.io
GNU General Public License v3.0
2 stars 13 forks source link

Rewrite YardleyVariants.m in python #28

Open argerlt opened 2 years ago

argerlt commented 2 years ago

The old code is here: https://github.com/argerlt/Mart2Aust/blob/main/Mart2Aust/auxillary/YardleyVariants.m Need a new function called YardleyVariants.py, which should go in "orix/Reconstruction/auxillary.py" (if the file doesnt exist, make it)

Here are some example inputs: ksiKS = [5.26,10.30,10.53]; ksiNW = [0,9.74,9.74]; plug them into the Matlab code, you should get 24 3x3 matrices as an output. write a python code that makes the exact same 24 outputs for a given input (need to copy the ACTUAL math, in practice we will be throwing a range of ksi parameters as inputs, not jsut these two extreme cases)