Scripting and type hints
Scripting with WbW is much easier when you use a good Python editor. Python editors, or general purpose programming editors like Visual Studio Code, will provide syntax highlighting, line numbering, and if configured correctly, autocomplete. Autocomplete features in particular are useful when using WbW, and allow you to explore the WbW application programming interface (API).
This feature can also help the programmer to learn about the arguments that are required by a function as they type.
You may also want to take advantage of Python's built-in help
function to learn more about individual members of the WbW API, e.g. help(wbw.Raster.con)
can be used to provide the help documentation for the con
(conditional evaluation) method of the Raster
class.
WbW has been designed to provide Python editors with type hints and default values of arguments. These features can greatly enhance the programming experience.