Skip to content

Commit

Permalink
moo
Browse files Browse the repository at this point in the history
  • Loading branch information
andycasey committed Nov 21, 2015
1 parent 4ac5a42 commit 429016e
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions AnniesLasso/cannon.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,17 +227,9 @@ def function(coeffs, *labels):
{ label: [v] for label, v in zip(self.labels, labels) }
)).flatten()

labels_p0 = np.array([initial[label] for label in self.labels])
try:
function(coefficients, *labels_p0)
except:
logger.exception(
"Error occurred when using the initial values to test fn")
raise

# Solve for the parameters.
kwds = {
"p0": labels_p0,
"p0": np.array([initial[label] for label in self.labels]),
"maxfev": 10000,
"sigma": 1.0/np.sqrt(Cinv),
"absolute_sigma": True
Expand Down

0 comments on commit 429016e

Please sign in to comment.