-
Notifications
You must be signed in to change notification settings - Fork 12
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
Create object-oriented version of source mesh generation #40
Conversation
src/sourcemesh.py
Outdated
create_if_missing = True | ||
) | ||
|
||
return |
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.
I think this return is just hanging out, rest looks good as far as I can tell
tests/test_sourcemesh.py
Outdated
num_phi_exp = 4 | ||
tor_ext = 90.0 | ||
|
||
source_mesh = SourceMesh(vmec, num_s_exp, num_theta_exp, num_phi_exp, |
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.
should this be something like src.sourcemesh.SourceMesh
?
tests/test_sourcemesh.py
Outdated
num_s_exp = 4 | ||
num_theta_exp = 8 | ||
num_phi_exp = 4 | ||
tor_ext = 90.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.
should this be tor_ext_exp
?
tests/test_sourcemesh.py
Outdated
|
||
def test_meshbasics(): | ||
|
||
vmec = read_vmec.read_vmec_data(vmec_file) |
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.
read_vmec.vmec_data
assert source_mesh.num_phi == num_phi_exp | ||
assert source_mesh.tor_ext == np.deg2rad(tor_ext_exp) | ||
|
||
def test_vertices(): |
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.
same changes as in test_meshbasics
got these tests working for me
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.
was able to test this in my env, confirmed tests pass with just a couple syntactical changes
Create object-oriented version of source mesh generation
closes #42