Your ROOT_URL in app.ini is https://git.hpc.odu.edu/ but you are visiting https://git.wahab.hpc.odu.edu/wirawan0/wpylib/commit/908a4e0682a91f2b002daf90f48b1322ae7b4374?style=split&whitespace=show-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
3 additions and
1 deletions
math/fitting/__init__.py
@ -13,6 +13,7 @@
import numpy
import numpy
import scipy . optimize
import scipy . optimize
from wpylib . db . result_base import result_base
last_fit_rslt = None
last_fit_rslt = None
last_chi_sqr = None
last_chi_sqr = None
@ -117,7 +118,7 @@ class Poly_order4(Poly_base):
for i in xrange ( len ( x ) ) ] )
for i in xrange ( len ( x ) ) ] )
class fit_result ( dict ) :
class fit_result ( result_base ) :
pass
pass
def fit_func ( Funct , Data = None , Guess = None , x = None , y = None ,
def fit_func ( Funct , Data = None , Guess = None , x = None , y = None ,
@ -235,5 +236,6 @@ def fit_func(Funct, Data=None, Guess=None, x=None, y=None,
for ( k , v ) in zip ( keys , rslt ) :
for ( k , v ) in zip ( keys , rslt ) :
rec [ k ] = v
rec [ k ] = v
rec [ ' chi_square ' ] = chi_sqr
rec [ ' chi_square ' ] = chi_sqr
rec [ ' fit_method ' ] = method
return rec
return rec