Skip to content

Commit

Permalink
fix for issue #152
Browse files Browse the repository at this point in the history
  • Loading branch information
bwallace committed Jan 17, 2012
1 parent 8221ae2 commit 573a4db
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ma_specs.py
Expand Up @@ -562,7 +562,7 @@ def add_plot_params(specs_form):
specs_form.current_param_vals["fp_show_summary_line"] = specs_form.show_summary_line.isChecked()


def seems_sane(specs_form, xticks):
def seems_sane(xticks):
num_list = xticks.split(",")
if len(num_list) == 1:
return False
Expand All @@ -572,9 +572,9 @@ def seems_sane(specs_form, xticks):
return False
return True

def check_plot_bound(specs_form, bound):
def check_plot_bound(bound):
try:
eval(bound)
return float(bound)
except:
return False
return True

0 comments on commit 573a4db

Please sign in to comment.