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

Passing None to optional G2S parameters #63

Open
pauwiersma opened this issue Mar 4, 2023 · 1 comment
Open

Passing None to optional G2S parameters #63

pauwiersma opened this issue Mar 4, 2023 · 1 comment

Comments

@pauwiersma
Copy link
Collaborator

For flexible use of g2s() in functions etc. it would be handy if you could pass None to the optional parameters (mostly -ki), which is currently not supported. I'm sure there are multiple workarounds to achieve this yourself but being able to pass None would save some effort.

@mgravey
Copy link
Member

mgravey commented Mar 4, 2023

The idea of allowing None to be passed to optional parameters in g2s() for flexible use in functions is certainly a good one. This would for sure make it easier for users to write functions and scripts that make use of the g2s() function.

However, it is important to consider how this change would affect the compatibility of g2s() with other languages, such as MATLAB and R. Both of these languages have different conventions for handling missing or optional function arguments.

What should then be use for R and MATLAB ?

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

No branches or pull requests

2 participants