ISISComputingGroup / ISISComputingGroup/lewis

Improve check_limits decorator

Open
#159 0 comments 0 reactions 0 assignees View on GitHub
enhancement refactoring
Dominant language
Python
Stars
24
Forks
19
PR merge metrics
No merged PRs in 30d

Description

The `check_limits` decorator that was introduced in #157 has a few shortcomings. In its current form it can only be used on class methods with one numeric parameter.

However it should be extended to be usable on free functions and to decorate functions with multiple parameters that need limit checking.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.