-
-
Notifications
You must be signed in to change notification settings - Fork 421
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
Fix for issue #81: Add warning if w > 1. #97
Conversation
@thegyro So you see that it is an array like structure, which is great! but it's a numpy array. have a look for functions that test if any of the values are greater than 1 and then just issue one warning. |
Thanks for the reply! I am iterating over the ws array which was used in the statement self.ws = numpy.array(ws). So the ws I am iterating over is just a normal array right ? (That is I am iterating over a normal array ,which was used to create a numpy array ) |
@thegyro: It's an array, so what you have does work! But python |
Ah! Thanks for the clarification! I have tried a better way (hopefully) to check for warning > 1. Please let me know if this is correct. |
Close - use |
@wkerzendorf Is it alright now ? |
that looks good @ssim, have a quick look and merge if you agree. |
@mklauser do you have a moment to look at this? I'm a bit swamped right now. |
We're happy - thank you! - merge now. |
Fix for issue #81: Add warning if w > 1.
throw a warning if dilution factor is greater than 1