Skip to content

Commit

Permalink
Fixed '--seed' option conversion bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreysmelter committed Nov 8, 2017
1 parent e5a7be3 commit 77cdd9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nmrstarlib/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def cli(cmdargs):

plsplit = tuple(float(i) for i in cmdargs["--plsplit"].split(","))
distribution_name = cmdargs["--distribution"]
seed = int(cmdargs["--seed"])
seed = int(cmdargs["--seed"]) if cmdargs["--seed"] else None
distribution_parameter_names = noise.distributions[distribution_name]["parameters"]

if not distribution_parameter_names:
Expand Down

0 comments on commit 77cdd9b

Please sign in to comment.