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
Function signature can be used to determine what Tangible Landscape should compute automatically and pass to the function. Points seem to be a good candidate which would greatly reduce the user code required to use points.
importinspectparameters=inspect.signature(run_drain).parametersif"points"inparameters:
print("Need to compute points")
Possibly, other things can be computed automatically as well:
if"slope"inparameters:
print("Need to compute slope")
if"classified_areas_4"inparameters:
print("Need to classify colors into four classes")
The text was updated successfully, but these errors were encountered:
Given a user function:
Function signature can be used to determine what Tangible Landscape should compute automatically and pass to the function. Points seem to be a good candidate which would greatly reduce the user code required to use points.
Possibly, other things can be computed automatically as well:
The text was updated successfully, but these errors were encountered: