diff options
| author | Selene ToyKeeper | 2019-05-18 03:33:40 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2019-05-18 03:33:40 -0600 |
| commit | 51d53d2b30dbd3c4c585834ad81de20745740f8e (patch) | |
| tree | 6e366b5cfe97f04181bc468aa06d710b7807be1d /bin | |
| parent | added link to HQ ProgKey, since it's increasingly important for newer drivers (diff) | |
| parent | merged in BLF Lantern branch, even though it's not quite finished, because it... (diff) | |
| download | anduril-51d53d2b30dbd3c4c585834ad81de20745740f8e.tar.gz anduril-51d53d2b30dbd3c4c585834ad81de20745740f8e.tar.bz2 anduril-51d53d2b30dbd3c4c585834ad81de20745740f8e.zip | |
merged updates from fsm branch, because it has been way too long since the last time
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/level_calc.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/level_calc.py b/bin/level_calc.py index 2edd5fd..f16f8ce 100755 --- a/bin/level_calc.py +++ b/bin/level_calc.py @@ -5,7 +5,7 @@ from __future__ import print_function import math interactive = False -# supported shapes: ninth, fifth, cube, square, log +# supported shapes: ninth, seventh, fifth, cube, square, log #ramp_shape = 'cube' @@ -14,7 +14,7 @@ def main(args): """ # Get parameters from the user questions_main = [ - (str, 'ramp_shape', 'cube', 'Ramp shape? [cube, square, fifth, ninth, log]'), + (str, 'ramp_shape', 'cube', 'Ramp shape? [cube, square, fifth, seventh, ninth, log]'), (int, 'num_channels', 1, 'How many power channels?'), (int, 'num_levels', 4, 'How many total levels do you want?'), ] @@ -169,6 +169,7 @@ def get_value(text, default, args): shapes = dict( ninth = (lambda x: x**9, lambda x: math.pow(x, 1/9.0)), + seventh= (lambda x: x**7, lambda x: math.pow(x, 1/7.0)), fifth = (lambda x: x**5, lambda x: math.pow(x, 1/5.0)), cube = (lambda x: x**3, lambda x: math.pow(x, 1/3.0)), square = (lambda x: x**2, lambda x: math.pow(x, 1/2.0)), |
