You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Where you have to look at the function definition to know what 100 and 1e4 are referring to. Also, we can change the order of the kwargs without worrying about messing anything up.
The text was updated successfully, but these errors were encountered:
On the python and cython level we should use keyword arguments rather than required arguments wherever possible. As an example look at https://github.com/pele-python/mcpele/blob/master/mcpele/monte_carlo/_action_cpp.pyx#L18
most of the arguments could have reasonable default values. Besides making things easier to call, it makes it much clearer also:
is much clearer than
Where you have to look at the function definition to know what 100 and 1e4 are referring to. Also, we can change the order of the kwargs without worrying about messing anything up.
The text was updated successfully, but these errors were encountered: