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

only named arguments after *args #343

Merged
merged 3 commits into from Mar 15, 2019
Merged

Conversation

gdmcbain
Copy link
Contributor

Maybe just me, but I found having the named positional argument "2" after *args confusing.

return meshio.msh_io.write(*args, "2", write_binary=write_binary, **kwargs)

Ignore if you disagree.

@@ -78,8 +78,7 @@ def writer(*args, **kwargs):
)
@pytest.mark.parametrize("write_binary", [False, True])
def test_gmsh4(mesh, write_binary):
def writer(*args, **kwargs):
return meshio.msh_io.write(*args, "4", write_binary=write_binary, **kwargs)
writer = partial(meshio.msh_io.write, fmt_version="2", write_binary=write_binary)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be "4" here, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops!

@nschloe nschloe merged commit 20fa010 into nschloe:master Mar 15, 2019
@gdmcbain gdmcbain deleted the star-args branch March 15, 2019 00:05
gdmcbain added a commit to gdmcbain/meshio that referenced this pull request Mar 15, 2019
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