Skip to content

Commit

Permalink
Complete list of possible input algorithms
Browse files Browse the repository at this point in the history
Change-Id: I4bb839344121522243d6f14a77f58438047adc1f
  • Loading branch information
lidakanari committed May 28, 2019
1 parent 92202b9 commit fa9f488
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions tns/extract_input/input_parameters.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
"""Input parameters functions"""

tmd_algos = ('tmd', 'tmd_path', 'tmd_gradient', 'tmd_gradient_path',
'tmd_apical', 'tmd_apical_path')


def parameters(origin=(0., 0., 0.),
method='trunk',
Expand All @@ -21,10 +24,10 @@ def merged_params(data):
ret = dict()
if method == 'trunk':
branching = 'random'
elif method in {'tmd', 'tmd_path'}:
elif method in tmd_algos:
branching = 'bio_oriented'
else:
raise KeyError('Method not recognized! Please select trunk, tmd or tmd_path.')
raise KeyError('Method not recognized! Please select from: {}.'.format(tmd_algos))

ret.update({"randomness": 0.15,
"targeting": 0.12,
Expand Down
2 changes: 1 addition & 1 deletion tns/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
""" tns version """
VERSION = "1.0.10.dev0"
VERSION = "1.0.11.dev0"

0 comments on commit fa9f488

Please sign in to comment.