-
Notifications
You must be signed in to change notification settings - Fork 339
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
Hollweg values test using arrays for k and theta #1549
Conversation
Co-authored-by: Dominik Stańczak <[email protected]>
Co-authored-by: Erik Everson <[email protected]>
Co-authored-by: Erik Everson <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #1549 +/- ##
==========================================
+ Coverage 97.09% 97.19% +0.09%
==========================================
Files 83 82 -1
Lines 7676 7902 +226
==========================================
+ Hits 7453 7680 +227
+ Misses 223 222 -1
Continue to review full report at Codecov.
|
@rocco8773 Hi Erik, I've added some tests ( I have finals to focus on for the next week or two so I may not be at the next meeting. If you feel the issue isn't an easy fix and we should discuss in person in two weeks or so I'm fine with that as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks to be your culprit. The default units for theta
in hollweg()
are radians, but you're specifying a value in degrees without the units attached. Thus, hollweg
is using 88 radians instead of 88 degrees.
Co-authored-by: Erik Everson <[email protected]>
Co-authored-by: Erik Everson <[email protected]>
( # array input for k, single value for theta | ||
{ | ||
**_kwargs_single_valued, | ||
"k": np.logspace(-7, -2, 2) * u.rad / u.m, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you using negative values for k
here? Since we're using k
and theta
as input arguments, I would think we would require k > 0
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's np.logspace
so it should range from [10^-7,10^-2] and be positive right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah...I see...my brain automatically read np.linspace
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good! Thank you for doing this.
I just made some minor tweaks to make a few things more explicit. Once I confirm the docs build correctly, I'll go ahead and merge the PR.
Closes #1542