Skip to content

Commit

Permalink
Reverting pysal#766 which needs to go back upstream to spreg
Browse files Browse the repository at this point in the history
  • Loading branch information
sjsrey committed Apr 1, 2016
1 parent eb2f1f2 commit 0490b90
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pysal/spreg/user_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def set_name_multi(multireg, multi_set, name_multiID, y, x, name_y, name_x, name
def check_arrays(*arrays):
"""Check if the objects passed by a user to a regression class are
correctly structured. If the user's data is correctly formed this function
returns nothing, if not then an exception is raised. Note, this does not
returns nothing, if not then an exception is raised. Note, this does not
check for model setup, simply the shape and types of the objects.
Parameters
Expand Down Expand Up @@ -366,7 +366,7 @@ def check_arrays(*arrays):
def check_y(y, n):
"""Check if the y object passed by a user to a regression class is
correctly structured. If the user's data is correctly formed this function
returns nothing, if not then an exception is raised. Note, this does not
returns nothing, if not then an exception is raised. Note, this does not
check for model setup, simply the shape and types of the objects.
Parameters
Expand Down Expand Up @@ -466,7 +466,7 @@ def check_weights(w, y, w_required=False):

def check_robust(robust, wk):
"""Check if the combination of robust and wk parameters passed by the user
are valid. Note: this does not check if the W object is a valid adaptive
are valid. Note: this does not check if the W object is a valid adaptive
kernel weights matrix needed for the HAC.
Parameters
Expand Down Expand Up @@ -627,7 +627,7 @@ def check_constant(x):
(49, 3)
"""
if diagnostics.constant_check(x):
if not diagnostics.constant_check():
raise Exception, "x array cannot contain a constant vector; constant will be added automatically"
else:
x_constant = COPY.copy(x)
Expand Down

0 comments on commit 0490b90

Please sign in to comment.