usnistgov / pySCATMECH

pySCATMECH is a Python interface to SCATMECH: Polarized Light Scattering C++ Class Library
https://pages.nist.gov/pySCATMECH/index.html
Other
30 stars 12 forks source link

Cannot Calculate Jones matrices with RCW and CrossRCW models #6

Open jdavis712 opened 11 months ago

jdavis712 commented 11 months ago

In the documentation for the RCW_Model (https://pages.nist.gov/pySCATMECH/rcw.html) and CrossRCW_Model (https://pages.nist.gov/pySCATMECH/crossrcw.html), there is a method for calculating the Jones matrix for a given diffraction order. However, when I try to get the Jones matrix for a default set up, python returns an error:

model = RCW_Model() print(model.DiffractionAmplitude(0))

AttributeError: 'RCW_Model' object has no attribute 'DiffractionAmplitude'

Using print(dir(model)), I can see that the model has DiffractionEfficiency and Direction as possible methods, but no DiffractionAmplitude method. Am I doing something wrong, or has the Jones matrix method been removed?