Skip to content

Commit

Permalink
np --> numpy
Browse files Browse the repository at this point in the history
  • Loading branch information
jGaboardi committed Oct 7, 2023
1 parent 9644f56 commit ab617f5
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions spreg/sur_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
Spatial Error SUR estimation
"""

__author__ = "Luc Anselin [email protected], \
Pedro V. Amaral [email protected]"
__author__ = """
Luc Anselin [[email protected]],
Pedro V. Amaral [[email protected]]
"""


import numpy
Expand Down Expand Up @@ -557,7 +559,7 @@ def __init__(self, bigy, bigX, w, epsilon=0.0000001):
bigE = sur_resids(self.bigy, self.bigX, b1)
res = minimize(
clik,
np.array(lam).flatten(),
numpy.array(lam).flatten(),
args=(self.n, self.n2, self.n_eq, bigE, I, WS),
method="L-BFGS-B",
bounds=lambdabounds,
Expand Down Expand Up @@ -1110,15 +1112,15 @@ def surerrvm(n, n_eq, w, lam, sig):
def _test():
import doctest

start_suppress = np.get_printoptions()["suppress"]
np.set_printoptions(suppress=True)
start_suppress = numpy.get_printoptions()["suppress"]
numpy.set_printoptions(suppress=True)
doctest.testmod()
np.set_printoptions(suppress=start_suppress)
numpy.set_printoptions(suppress=start_suppress)


if __name__ == "__main__":
_test()
import numpy as np
import numpy
import libpysal
from .sur_utils import sur_dictxy, sur_dictZ
from libpysal.examples import load_example
Expand Down

0 comments on commit ab617f5

Please sign in to comment.