-
Notifications
You must be signed in to change notification settings - Fork 30
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
Update BaseProfile #2
Conversation
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.
Use the numpy trig functions
bladex/utils/__init__.py
Outdated
@@ -0,0 +1,3 @@ | |||
""" | |||
utils init |
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 file can remain empty
bladex/utils/rbf.py
Outdated
Wendland :math:`C^2` basis and Polyharmonic splines all defined and | ||
implemented below. | ||
""" | ||
def __init__(self, radius): |
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.
add the basis as input parameter. See the corresponding module of pygem
bladex/utils/rbf.py
Outdated
|
||
def reconstruct_f(basis, original_input, original_output, xx, yy, radius=10.0): | ||
radial = RBF(radius=radius) | ||
if basis == 'gaussian': |
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.
modifying the init of RBF this if then else should go away
bladex/utils/rbf.py
Outdated
matrix[i][j] = self.basis(X1[i] - X2[j], self.radius) | ||
return matrix | ||
|
||
def reconstruct_f(basis, original_input, original_output, xx, yy, radius=10.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.
Use meaningful inputs name, and document the function
Ok, you can squash all the commits to one or few commits and then I'll merge. Don't worry for travis, I will fix it in another PR. |
Fix header title in the README check that outfile is string in plot method
add methods in BaseProfile for computing max thickness and max camber
…nstruct_f(), modify reconstruct_f() arguments to more meaningful names. Also provide documentation rbf provide example in the documentation cleaning __init__ in the subdirectory use numpy instead of math, for trig. functions apply code_formatter
No description provided.