Skip to content
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

Resolving a problem that seems to be associated with the introduction… #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JohnKendrick
Copy link

… of AutoMie_ab into the MieS1S2 routine.

Looking at the code for AutoMie_ab there is a hard crossover and this seems to have introduced the problem.

There is also a check for a crossover in both MieQ and AutoMieQ which could cause a conflict.

I have introduced a module wide variable called crossover and given it a value of 0.01.
I have removed the crossover parameter from the AutoMieQ function call.
I now use the module wide parameter to test for crossover in AutoMieQ and AutoMie_ab
I have removed the crossover check in MieQ and left the full Mie expansion.

The user is now able to change the crossover value him or herself.

import PyMieScatt.Mie as Mie
Mie.crossover = 0.001

This allows the use some control over the crossover if they are unhappy with the default setting.

… of AutoMie_ab into the MieS1S2 routine.

Looking at the code for AutoMie_ab there is a  hard crossover and this seems to have introduced the problem.

There is also a check for a crossover in both MieQ and AutoMieQ which could cause a conflict.

I have introduced a module wide variable called crossover and given it a value of 0.01.
I have removed the crossover parameter from the AutoMieQ function call.
I now use the module wide parameter to test for crossover in AutoMieQ and AutoMie_ab
I have removed the crossover check in MieQ and left the full Mie expansion.

The user is now able to change the crossover value him or herself.

import PyMieScatt.Mie as Mie
Mie.crossover = 0.001

This allows the use some control over the crossover if they are unhappy with the default setting.
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.

None yet

1 participant