Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

interact function arg names and range #39

Open
smith6jt-cop opened this issue Apr 13, 2024 · 1 comment
Open

interact function arg names and range #39

smith6jt-cop opened this issue Apr 13, 2024 · 1 comment

Comments

@smith6jt-cop
Copy link

Hello,

Thank you for the great tools! I ran into an issue with the interact function; I figured it out, but I thought I would make a note here in case someone else runs into the same issue.

When using a custom function if you choose certain args, you will get pre-defined ranges according to:

def guess_range(name, annotation):
if name == 'footprint' or name == 'selem' or name == 'structuring_element':
return 0, 100, 1
if 'sigma' in name:
return 0, 25, 1
if 'radius' in name:
return 0, 100, 1
if 'factor' in name:
return 0, 100, 1
if name == 'angle' or "degrees" in name:
return 0, 360, 15
return None, None, None

@haesleinhuepf
Copy link
Owner

Thanks for the feedback! I will add this to the documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants