-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Bruggeman EMA and depolarisation_factor property #46
Conversation
@andyfaff all tests in test_refellips.py passed locally for me, but test 11 fails on test_linux - I'm not sure why. Perhaps the way I've implemented warnings isn't correct for the Bruggeman approach? |
Can you provide me with the equations/paper where the Bruggeman EMA is given? I'm not sure that you've implemented it correctly. A clue to why that test is failing can be found here. The sqrt calculation on Which brings me to a further point, are we doing any of the EMA calculations correctly?? Let's consider the
However, this is totally different to:
The averaging of the solvent and material is then done separately on Should we be performing these calculations using the first or second forms? I would hope that the test suite should detect this. |
Just for reference, both EMA calcs are drawn from this paper.
|
@andyfaff okay to merge? |
It looks ok to me. I think a little refactor might be in order in a later PR. I'm thinking about introducing a |
I haven't checked the maths, relying on you to do that. |
If you're happy then merge. |
I like the idea of the |
No description provided.