Did I find the right examples for you? yes no

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)
validate steps

        def st_validator(omhe_value):
    """validate steps"""
    valdict={}
    
    if omhe_value.isdigit():
        valdict['st_numeric']=omhe_value
    try:
        x=float(valdict['st_numeric'])
        return valdict
    except:
        raise InvalidValueError("You didn't supply a number of steps")
        


src/p/y/python-omhe-0.6.1/omhe/core/parseomhe.py   python-omhe(Download)
from omhe.core.validators.bp_validator import bp_validator
from omhe.core.validators.sbp_validator import sbp_validator
from omhe.core.validators.st_validator import st_validator
from omhe.core.validators.wt_validator import wt_validator
from omhe.core.validators.ffm_validator import ffm_validator

src/p/y/python-omhe-HEAD/omhe/core/parseomhe.py   python-omhe(Download)
from omhe.core.validators.bp_validator import bp_validator
from omhe.core.validators.sbp_validator import sbp_validator
from omhe.core.validators.st_validator import st_validator
from omhe.core.validators.wt_validator import wt_validator
from omhe.core.validators.ffm_validator import ffm_validator