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

Update BaseProfile #2

Merged
merged 3 commits into from
Mar 19, 2018
Merged

Update BaseProfile #2

merged 3 commits into from
Mar 19, 2018

Conversation

mahgadalla
Copy link
Collaborator

No description provided.

Copy link
Contributor

@mtezzele mtezzele left a 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

@@ -0,0 +1,3 @@
"""
utils init
Copy link
Contributor

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

Wendland :math:`C^2` basis and Polyharmonic splines all defined and
implemented below.
"""
def __init__(self, radius):
Copy link
Contributor

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


def reconstruct_f(basis, original_input, original_output, xx, yy, radius=10.0):
radial = RBF(radius=radius)
if basis == 'gaussian':
Copy link
Contributor

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

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):
Copy link
Contributor

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

@mtezzele
Copy link
Contributor

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
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

2 participants