haesleinhuepf / haesleinhuepf/stackview

interact function arg names and range

Open
#39 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
184
Forks
14
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.