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
Thanks for reporting this! The error is likely caused by estimate_alpha_and_beta() not following the standard way (in morphman) of fetching the default arguments, thus the default parameter smooth is not required for this method.
Instead, you can get the default parameters for this particular method by importing them directly in your script. As an example, consider the following script – run_estimate.py:
Hello @hkjeldsberg ,
while trying to compute alpha/beta values, my arguments were:
default_values["quantity_to_compute"] = "angle"
default_values["region_points"] = []
default_values["value-change"] = 10
default_values["grid-size"] = 25
Set region of interest
default_values["region_of_interest"] = "manual"
default_values["region_points"] = []
Run manipulation
estimate_alpha_and_beta(**default_values)
But I get the error:
Traceback (most recent call last):
File "C:\Users\user\Desktop\morphman_dev2\estimate_curve_angle.py", line 29, in
estimate_alpha_and_beta(**default_values)
TypeError: estimate_alpha_and_beta() got an unexpected keyword argument 'smooth'
Best Regards,
Sadat
The text was updated successfully, but these errors were encountered: