File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -718,17 +718,16 @@ def minus_reduced_likelihood_function(log10t):
718718 else :
719719 # Generate a random starting point log10-uniformly
720720 # distributed between bounds
721- log10theta0 = np .log10 (self .thetaL ) \
722- + self .random_state .rand (self .theta0 .size ).reshape (
723- self .theta0 .shape ) * np .log10 (self .thetaU
724- / self .thetaL )
721+ log10theta0 = (np .log10 (self .thetaL )
722+ + self .random_state .rand (* self .theta0 .shape )
723+ * np .log10 (self .thetaU / self .thetaL ))
725724 theta0 = 10. ** log10theta0
726725
727726 # Run Cobyla
728727 try :
729728 log10_optimal_theta = \
730729 optimize .fmin_cobyla (minus_reduced_likelihood_function ,
731- np .log10 (theta0 ), constraints ,
730+ np .log10 (theta0 ). ravel () , constraints ,
732731 iprint = 0 )
733732 except ValueError as ve :
734733 print ("Optimization failed. Try increasing the ``nugget``" )
You can’t perform that action at this time.
0 commit comments