Skip to content

Commit

Permalink
bug fix in command-line
Browse files Browse the repository at this point in the history
  • Loading branch information
François Laurent committed Mar 19, 2018
1 parent 7d25b06 commit d80f0d4
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 13 deletions.
6 changes: 3 additions & 3 deletions examples/glycine_receptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@


methods = ['grid', 'kdtree', 'kmeans', 'gwr']
default_localization_error = 0.001
default_prior_diffusivity = 0.01
default_prior_potential = 0.1
default_localization_error = 0.03
default_prior_diffusivity = 0.05
default_prior_potential = 0.05


arguments = [
Expand Down
6 changes: 3 additions & 3 deletions examples/resolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@


methods = ['grid', 'kdtree', 'kmeans', 'gwr']
default_localization_error = 0.001
default_prior_diffusivity = 0.01
default_prior_potential = 0.1
default_localization_error = 0.03
default_prior_diffusivity = 0.05
default_prior_potential = 0.05

default_ref_distances = [.36, .27, .18, .09]
min_location_count = 20
Expand Down
6 changes: 3 additions & 3 deletions examples/sinks.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@


method = 'gwr'
localization_error = 0.001
priorD = 0.01
priorV = 0.01
localization_error = 0.03
priorD = 0.05
priorV = 0.05
minD = -localization_error


Expand Down
6 changes: 3 additions & 3 deletions examples/sliding_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
name = 'regular_temporal_mesh'

method = 'grid'
localization_error = 0.001
priorD = 0.01
#priorV = 0.1
localization_error = 0.03
priorD = 0.05
#priorV = 0.05
minD = -localization_error


Expand Down
8 changes: 7 additions & 1 deletion tramway/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,15 @@ def _parse_args(args):
except KeyError:
pass
try:
input_files += kwargs.pop('input_file')
more_input_files = kwargs.pop('input_file')
except KeyError:
pass
else:
if more_input_files:
if isinstance(more_input_files, list):
input_files += more_input_files
else:
input_files.append(more_input_files)
if not input_files:
print('please specify input file(s)')
sys.exit(1)
Expand Down

0 comments on commit d80f0d4

Please sign in to comment.