fatiando / rockhound

NOTICE: This library is no longer being developed. Use Ensaio instead (https://www.fatiando.org/ensaio). -- Download geophysical models/datasets and load them in Python
BSD 3-Clause "New" or "Revised" License
34 stars 15 forks source link

Use positional only arguments in all functions #31

Closed leouieda closed 5 years ago

leouieda commented 5 years ago

Python has syntax for only allowing keyword arguments to be specified by users using the keyword. For example fetch_prem(load=False) would be valid while fetch_prem(False) would not. This is good because it prevents bugs down the line if we add or remove parameters.

We should adopt this for all our other projects.

Reminders