Skip to main content

Optional Inputs

There is no extra ArupCompute specific meta-data that is required to use optional inputs in your python libraries, they can be created in the normal python way:

def add(a: float, b: float = 2.5) -> float:
x = a + b
return x

During publishing/updating your library ArupCompute will be able to automatically pick up that the param b is an optional input and also pick up it's default value.