In [1]:
%load_ext autoreload
%autoreload #Use this to reload modules if they are changed on disk while the notebook is running
from __future__ import division
from snmachine import sndata, snfeatures, snclassifier, tsne_plot
import numpy as np
import matplotlib.pyplot as plt
import time, os, pywt,subprocess
from sklearn.decomposition import PCA
from astropy.table import Table,join,vstack
from astropy.io import fits
import sklearn.metrics 
from functools import partial
from multiprocessing import Pool
import sncosmo
%matplotlib nbagg

from astropy.table import Column
# WARNING...
#Multinest uses a hardcoded character limit for the output file names. I believe it's a limit of 100 characters
#so avoid making this file path to lengthy if using nested sampling or multinest output file names will be truncated

#Change outdir to somewhere on your computer if you like
dataset='spcc'
outdir=os.path.join('output_%s_no_z' %dataset,'')
out_features=os.path.join(outdir,'features') #Where we save the extracted features to
out_class=os.path.join(outdir,'classifications') #Where we save the classification probabilities and ROC curves
out_int=os.path.join(outdir,'int') #Any intermediate files (such as multinest chains or GP fits)

subprocess.call(['mkdir',outdir])
subprocess.call(['mkdir',out_features])
subprocess.call(['mkdir',out_class])
subprocess.call(['mkdir',out_int])

read_from_file=False #True #We can use this flag to quickly rerun from saved features
run_name=os.path.join(out_features,'%s_all' %dataset)
rt=os.path.join('SPCC_SUBSET','')


Neural networks not available in this version of scikit-learn. Neural networks are available from development version 0.18.

In [ ]:


In [2]:
def make_new_data(filename, table, output, sntype):
    with open(filename) as f:
        data = f.read().split("\n")
    filters = data[5].split()
    survey = data[0].split()
    stuffRA = data[6].split()
    stuffDec = data[7].split()
    MWEBV = data[11].split()
    if sntype==1:
        typestring='SN Type = Ia , MODEL = mlcs2k2.SNchallenge'
    elif sntype==2:
        typestring='SN Type = II , MODEL = SDSS-017564'
    elif sntype==3:
        typestring='SN Type = Ic , MODEL = SDSS-014475'
    else:
        typestring='SOMETHING WENT HORRIBLY WRONG'
    table.meta = {survey[0][:-1]: survey[1], stuffRA[0][:-1]: stuffRA[1], stuffDec[0][:-1]: stuffDec[1],filters[0][:-1]: filters[1],
                 MWEBV[0][:-1]: MWEBV[1], 'SNTYPE': -9, 'SIM_COMMENT': typestring  }
    #table.rename_column('mjd', 'MJD')
    #table.rename_column('filter ', 'FLT')
    #table.rename_column('flux', 'FLUXCAL')
    #table.rename_column('flux_error', 'FLUXCALERR')
    sncosmo.write_lc(table, 'new_mocks/%s'%output,pedantic=True, format = 'snana')

In [3]:
prototypes_Ia=[ 'DES_SN002542.DAT', 'DES_SN013866.DAT', 'DES_SN023940.DAT', 'DES_SN024734.DAT', 'DES_SN030701.DAT', 'DES_SN045040.DAT']
prototypes_II=[ 'DES_SN002457.DAT', 'DES_SN005519.DAT', 'DES_SN006381.DAT', 'DES_SN008569.DAT', 'DES_SN013360.DAT', 'DES_SN013481.DAT']
prototypes_Ibc=['DES_SN005399.DAT', 'DES_SN013863.DAT', 'DES_SN027266.DAT', 'DES_SN030183.DAT', 'DES_SN065493.DAT', 'DES_SN078241.DAT']
len(prototypes_II)


Out[3]:
6

In [4]:
prototypes_II


Out[4]:
['DES_SN002457.DAT',
 'DES_SN005519.DAT',
 'DES_SN006381.DAT',
 'DES_SN008569.DAT',
 'DES_SN013360.DAT',
 'DES_SN013481.DAT']

In [5]:
def produce_mock_data_set(degrading_factor, realsperlc=100, prototypes_Ia=['DES_SN002542.DAT'], prototypes_II=['DES_SN002457.DAT'], prototypes_Ibc=['DES_SN005399.DAT']):
    #Data root
    dat=sndata.Dataset(rt)

    types=dat.get_types()
    types['Type'][np.floor(types['Type']/10)==2]=2
    types['Type'][np.floor(types['Type']/10)==3]=3
                             
    logfile=open('new_mocks/new_mocks.LIST', 'w')
    
    for prot in range(len(prototypes_II)):
        type_II = []
        for i in range(len(dat.data[prototypes_II[prot]]['flux'])):
            type_II.append(np.random.normal(dat.data[prototypes_II[prot]]['flux'][i], dat.data[prototypes_II[prot]]['flux_error'][i]*degrading_factor, realsperlc))
        type_II = np.array(type_II)
        filename_II = 'SPCC_SUBSET/'+prototypes_II[prot]
        test_table_II = dat.data[prototypes_II[prot]]
        test_table_II.rename_column('flux', 'FLUXCAL')
        test_table_II.rename_column('flux_error', 'FLUXCALERR')
        col_II = Table.Column(name='field',data=np.zeros(len(test_table_II)) )
        test_table_II.add_column(col_II, index = 2)
        for i in range(realsperlc):
            test_table_II.replace_column('FLUXCAL', type_II[:,i])
            test_table_II.replace_column('FLUXCALERR', test_table_II['FLUXCALERR']*degrading_factor)
            make_new_data(filename_II, test_table_II, 'II_%s_%s'%(i,prototypes_II[prot]), 2)
            logfile.write('II_'+str(i)+'_'+prototypes_II[prot]+'\n')

    for prot in range(len(prototypes_Ia)):
        type_Ia = []
        for i in range(len(dat.data[prototypes_Ia[prot]]['flux'])):
            type_Ia.append(np.random.normal(dat.data[prototypes_Ia[prot]]['flux'][i], dat.data[prototypes_Ia[prot]]['flux_error'][i]*degrading_factor, realsperlc))
        type_Ia = np.array(type_Ia)
        filename_Ia = 'SPCC_SUBSET/'+prototypes_Ia[prot]
        test_table_Ia = dat.data[prototypes_Ia[prot]]
        test_table_Ia.rename_column('flux', 'FLUXCAL')
        test_table_Ia.rename_column('flux_error', 'FLUXCALERR')
        col_Ia = Table.Column(name='field',data=np.zeros(len(test_table_Ia)) )
        test_table_Ia.add_column(col_Ia, index = 2)
        for i in range(realsperlc):
            test_table_Ia.replace_column('FLUXCAL', type_Ia[:,i])
            test_table_Ia.replace_column('FLUXCALERR', test_table_Ia['FLUXCALERR']*degrading_factor)
            make_new_data(filename_Ia, test_table_Ia, 'Ia_%s_%s'%(i,prototypes_Ia[prot]), 1)
            logfile.write('Ia_'+str(i)+'_'+prototypes_Ia[prot]+'\n')
        
    for prot in range(len(prototypes_Ibc)):
        type_Ibc = []
        for i in range(len(dat.data[prototypes_Ibc[prot]]['flux'])):
            type_Ibc.append(np.random.normal(dat.data[prototypes_Ibc[prot]]['flux'][i], dat.data[prototypes_Ibc[prot]]['flux_error'][i]*degrading_factor, realsperlc))
        type_Ibc = np.array(type_Ibc)
        filename_Ibc = 'SPCC_SUBSET/'+prototypes_Ibc[prot]
        test_table_Ibc = dat.data[prototypes_Ibc[prot]]
        test_table_Ibc.rename_column('flux', 'FLUXCAL')
        test_table_Ibc.rename_column('flux_error', 'FLUXCALERR')
        col_Ibc = Table.Column(name='field',data=np.zeros(len(test_table_Ibc)) )
        test_table_Ibc.add_column(col_Ibc, index = 3)
        for i in range(realsperlc):
            test_table_Ibc.replace_column('FLUXCAL', type_Ibc[:,i])
            test_table_Ibc.replace_column('FLUXCALERR', test_table_Ibc['FLUXCALERR']*degrading_factor)
            make_new_data(filename_Ibc, test_table_Ibc, 'Ibc_%s_%s'%(i,prototypes_Ibc[prot]), 3)
            logfile.write('Ibc_'+str(i)+'_'+prototypes_Ibc[prot]+'\n')

    logfile.close()

In [6]:
#produce_mock_data_set(1.1, 111, prototypes_Ia, prototypes_II, prototypes_Ibc)

In [ ]:


In [ ]:


In [7]:
def AUC_from_mock_data_set(classifiers=['nb','knn','svm','neural_network','boost_dt']):
    rt1=os.path.join('new_mocks','')
    dat1=sndata.Dataset(rt1)
    for obj in dat1.object_names:
        for i in range(len(dat1.data[obj])):
            dat1.data[obj]['filter'][i]=dat1.data[obj]['filter'][i][3:7]
    types=dat1.get_types()
    types['Type'][np.floor(types['Type']/10)==2]=2
    types['Type'][np.floor(types['Type']/10)==3]=3
    %%capture --no-stdout
 
    mod1Feats=snfeatures.ParametricFeatures('karpenka',sampler='leastsq')
    mod1_features=mod1Feats.extract_features(dat1,nprocesses=4,chain_directory=out_int)
    mod1_features.write('%s_karpenka.dat' %run_name, format='ascii')
    #Unfortunately, sometimes the fitting methods return NaN for some parameters for these models.
    for c in mod1_features.colnames[1:]:
        mod1_features[c][np.isnan(mod1_features[c])]=0
    mod1Feats.fit_sn
    dat1.set_model(mod1Feats.fit_sn,mod1_features)
    
    AUC=[]
    nprocesses=4
    return_classifier=False
    columns=[]
    training_set=0.7
    param_dict={}
    scale=True
    
    if isinstance(mod1_features,Table):
        #The features are in astropy table format and must be converted to a numpy array before passing to sklearn

        #We need to make sure we match the correct Y values to X values. The safest way to do this is to make types an
        #astropy table as well.

        if not isinstance(types,Table):
            types=Table(data=[mod1_features['Object'],types],names=['Object','Type'])
        feats=join(mod1_features,types,'Object')

        if len(columns)==0:
            columns=feats.columns[1:-1]

        #Split into training and validation sets
        if np.isscalar(training_set):
            objs=feats['Object']
            objs=np.random.permutation(objs)
            training_set=objs[:(int)(training_set*len(objs))]

        #Otherwise a training set has already been provided as a list of Object names and we can continue
        feats_train=feats[np.in1d(feats['Object'],training_set)]
        feats_test=feats[~np.in1d(feats['Object'],training_set)]

        X_train=np.array([feats_train[c] for c in columns]).T
        y_train=np.array(feats_train['Type'])
        X_test=np.array([feats_test[c] for c in columns]).T
        y_test=np.array(feats_test['Type'])

    else:
        #Otherwise the features are already in the form of a numpy array
        if np.isscalar(training_set):
            inds=np.random.permutation(range(len(features)))
            train_inds=inds[:(int)(len(inds)*training_set)]
            test_inds=inds[(int)(len(inds)*training_set):]

        else:
            #We assume the training set has been provided as indices
            train_inds=training_set
            test_inds=range(len(types))[~np.in1d(range(len(types)),training_set)]

        X_train=mod1_features[train_inds]
        y_train=types[train_inds]
        X_test=mod1_features[test_inds]
        y_test=types[test_inds]


    #Rescale the data (highly recommended)
    if scale:
        scaler = sklearn.preprocessing.StandardScaler()
        scaler.fit(np.vstack((X_train, X_test)))
        X_train = scaler.transform(X_train)
        X_test = scaler.transform(X_test)

    probabilities={}
    classifier_objects={}

    if nprocesses>1 and return_classifier:
        print "Due to limitations with python's multiprocessing module, classifier objects cannot be returned if " \
              "multiple processors are used. Continuing serially..."
        print

    if nprocesses>1 and not return_classifier:
        partial_func=partial(snclassifier.__call_classifier,X_train=X_train, y_train=y_train, X_test=X_test,
                             param_dict=param_dict,return_classifier=False)
        p=Pool(nprocesses)
        result=p.map(partial_func,classifiers)

        for i in range(len(result)):
            cls=classifiers[i]
            probabilities[cls]=result[i]

    else:
        for cls in classifiers:
            probs,clf=snclassifier.__call_classifier(cls, X_train, y_train, X_test, param_dict,return_classifier)
            probabilities[cls]=probs
            if return_classifier:
                classifier_objects[cls]=clf

    for i in range(len(classifiers)):
        cls=classifiers[i]
        probs=probabilities[cls]
        fpr, tpr, auc=snclassifier.roc(probs, y_test, true_class=1)
        AUC.append(auc)
    return AUC

In [8]:
classifiers=['nb','svm','boost_dt']
#replace model
#run with full size data set
#put classifier names into plot
auc_allclass={}

for cl in classifiers:
    auc_grid=[]
    for i in range(11):
        produce_mock_data_set(1.+i/10, 11, prototypes_Ia, prototypes_II, prototypes_Ibc)
        auc_grid=np.append(auc_grid, AUC_from_mock_data_set([cl]));
    auc_allclass[cl]=auc_grid


Reading data...
23 objects read into memory.
Reading data...
198 objects read into memory.
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in exp
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -7.447085
      logB = +3.397054
        t0 = +65.797844
        t1 = +83.536295
    T_rise = +0.029457
    T_fall = +0.037202

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in exp
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in exp
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.863455
      logB = -1.735954
        t0 = +26.627654
        t1 = +2.329111
    T_rise = +0.007022
    T_fall = +0.028234

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in exp
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.063516
      logB = +4.523280
        t0 = +9.539392
        t1 = +5.495805
    T_rise = +0.003805
    T_fall = +0.009201

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -3.025340
      logB = -0.484525
        t0 = +50.468098
        t1 = +0.224699
    T_rise = +0.048478
    T_fall = +0.041508

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -11.512889
      logB = +3.238594
        t0 = +70.487219
        t1 = +0.008632
    T_rise = +0.014465
    T_fall = +0.054817

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.487099
      logB = +3.778142
        t0 = +93.579666
        t1 = +49.271515
    T_rise = +0.074866
    T_fall = +0.045933

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.336661
      logB = -0.912674
        t0 = +34.912937
        t1 = +4.202860
    T_rise = +0.009017
    T_fall = +0.005947

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.936182
      logB = -3.099142
        t0 = +4.111414
        t1 = +67.108741
    T_rise = +0.001026
    T_fall = +0.004382

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.936182
      logB = -3.099142
        t0 = +4.111414
        t1 = +67.108741
    T_rise = +0.001026
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.852635
      logB = -9.462459
        t0 = +65.845302
        t1 = +96.105442
    T_rise = +0.087103
    T_fall = +0.022686

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.799054
      logB = -9.128419
        t0 = +52.110640
        t1 = +8.098858
    T_rise = +0.001088
    T_fall = +0.067465

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.455602
      logB = +3.096168
        t0 = +4.090010
        t1 = +5.434350
    T_rise = +0.000001
    T_fall = +0.001029

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.442211
      logB = +3.083082
        t0 = +4.090010
        t1 = +5.623505
    T_rise = +0.000001
    T_fall = +0.003665

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.442211
      logB = +3.083082
        t0 = +4.090010
        t1 = +5.623505
    T_rise = +0.000001
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -4.334273
      logB = +4.284346
        t0 = +66.133812
        t1 = +61.774702
    T_rise = +0.089677
    T_fall = +0.090849

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -6.212982
      logB = +1.346463
        t0 = +64.885423
        t1 = +24.941911
    T_rise = +0.048984
    T_fall = +0.057150

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.212472
      logB = +0.239883
        t0 = +22.000008
        t1 = +78.970920
    T_rise = +0.000001
    T_fall = +0.000815

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.173801
      logB = +0.203123
        t0 = +22.000008
        t1 = +77.255823
    T_rise = +0.000001
    T_fall = +0.028999

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.173801
      logB = +0.203123
        t0 = +22.000008
        t1 = +77.255823
    T_rise = +0.000001
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -9.805453
      logB = +4.481795
        t0 = +66.830532
        t1 = +46.681347
    T_rise = +0.006765
    T_fall = +0.015116

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.838627
      logB = -8.955296
        t0 = +66.656511
        t1 = +0.012977
    T_rise = +0.001113
    T_fall = +0.046719

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -11.034246
      logB = -2.346124
        t0 = +80.512251
        t1 = +51.495838
    T_rise = +0.034138
    T_fall = +0.001291

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -2.895992
      logB = +3.720953
        t0 = +66.479117
        t1 = +63.372009
    T_rise = +0.091500
    T_fall = +0.093159

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.944999
      logB = -1.289981
        t0 = +4.091163
        t1 = +32.271534
    T_rise = +0.000785
    T_fall = +0.000116

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.628404
      logB = +2.226708
        t0 = +74.021560
        t1 = +0.005428
    T_rise = +0.000003
    T_fall = +0.075110

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = -0.349362
        t0 = +91.917948
        t1 = +58.026698
    T_rise = +3.346468
    T_fall = +0.111523

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.387669
      logB = +nan
        t0 = +91.917948
        t1 = +58.026698
    T_rise = +3.346468
    T_fall = +0.111523

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.387669
      logB = -0.349362
        t0 = +nan
        t1 = +58.026698
    T_rise = +3.346468
    T_fall = +0.111523

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.387669
      logB = -0.349362
        t0 = +91.917948
        t1 = +nan
    T_rise = +3.346468
    T_fall = +0.111523

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.387669
      logB = -0.349362
        t0 = +91.917948
        t1 = +58.026698
    T_rise = +nan
    T_fall = +0.111523

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.387669
      logB = -0.349362
        t0 = +91.917948
        t1 = +58.026698
    T_rise = +3.346468
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = -0.349362
        t0 = +91.917948
        t1 = +58.026698
    T_rise = +3.346468
    T_fall = +0.111523

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.387669
      logB = +nan
        t0 = +91.917948
        t1 = +58.026698
    T_rise = +3.346468
    T_fall = +0.111523

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.387669
      logB = -0.349362
        t0 = +nan
        t1 = +58.026698
    T_rise = +3.346468
    T_fall = +0.111523

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.387669
      logB = -0.349362
        t0 = +91.917948
        t1 = +nan
    T_rise = +3.346468
    T_fall = +0.111523

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.387669
      logB = -0.349362
        t0 = +91.917948
        t1 = +58.026698
    T_rise = +nan
    T_fall = +0.111523

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.387669
      logB = -0.349362
        t0 = +91.917948
        t1 = +58.026698
    T_rise = +3.346468
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.300651
      logB = -11.457905
        t0 = +51.427332
        t1 = +5.094283
    T_rise = +0.000500
    T_fall = +0.009919

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.506781
      logB = +0.230616
        t0 = +2.016526
        t1 = +61.857629
    T_rise = +0.000054
    T_fall = +0.002390

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.501617
      logB = +0.225560
        t0 = +2.016529
        t1 = +61.905190
    T_rise = +0.000054
    T_fall = +0.001073

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.499290
      logB = +0.223283
        t0 = +2.016530
        t1 = +61.926605
    T_rise = +0.000054
    T_fall = +0.000649

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.061917
      logB = -1.185718
        t0 = +2.016577
        t1 = +97.832145
    T_rise = +0.000040
    T_fall = +0.001452

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.061917
      logB = -1.185718
        t0 = +2.016577
        t1 = +97.832145
    T_rise = +0.000040
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.286033
      logB = +2.213367
        t0 = +73.184358
        t1 = +69.324568
    T_rise = +0.065117
    T_fall = +0.065086

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.277132
      logB = +2.197555
        t0 = +74.486443
        t1 = +69.164113
    T_rise = +0.009930
    T_fall = +0.006268

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.260938
      logB = +0.840932
        t0 = +79.494499
        t1 = +71.047478
    T_rise = +0.096529
    T_fall = +0.097381

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.933657
      logB = -2.104706
        t0 = +70.223427
        t1 = +3.863823
    T_rise = +0.033283
    T_fall = +0.026951

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = -0.349362
        t0 = +91.917948
        t1 = +58.026698
    T_rise = +3.346468
    T_fall = +0.111523

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.387669
      logB = +nan
        t0 = +91.917948
        t1 = +58.026698
    T_rise = +3.346468
    T_fall = +0.111523

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.387669
      logB = -0.349362
        t0 = +nan
        t1 = +58.026698
    T_rise = +3.346468
    T_fall = +0.111523

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.387669
      logB = -0.349362
        t0 = +91.917948
        t1 = +nan
    T_rise = +3.346468
    T_fall = +0.111523

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.387669
      logB = -0.349362
        t0 = +91.917948
        t1 = +58.026698
    T_rise = +nan
    T_fall = +0.111523

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.387669
      logB = -0.349362
        t0 = +91.917948
        t1 = +58.026698
    T_rise = +3.346468
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = -0.349362
        t0 = +91.917948
        t1 = +58.026698
    T_rise = +3.346468
    T_fall = +0.111523

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.387669
      logB = +nan
        t0 = +91.917948
        t1 = +58.026698
    T_rise = +3.346468
    T_fall = +0.111523

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.652114
      logB = -1.562309
        t0 = +53.864740
        t1 = +75.448716
    T_rise = +0.000856
    T_fall = +0.013328

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.387669
      logB = -0.349362
        t0 = +nan
        t1 = +58.026698
    T_rise = +3.346468
    T_fall = +0.111523

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.387669
      logB = -0.349362
        t0 = +91.917948
        t1 = +nan
    T_rise = +3.346468
    T_fall = +0.111523

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.387669
      logB = -0.349362
        t0 = +91.917948
        t1 = +58.026698
    T_rise = +nan
    T_fall = +0.111523

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.387669
      logB = -0.349362
        t0 = +91.917948
        t1 = +58.026698
    T_rise = +3.346468
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.382494
      logB = +2.080453
        t0 = +5.004003
        t1 = +37.603492
    T_rise = +0.000000
    T_fall = +0.000051

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.559650
      logB = -10.491643
        t0 = +44.353440
        t1 = +22.792735
    T_rise = +0.037275
    T_fall = +0.000182

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.559650
      logB = -10.491643
        t0 = +44.353440
        t1 = +22.792735
    T_rise = +0.037275
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.559650
      logB = -9.161581
        t0 = +44.353440
        t1 = +22.792735
    T_rise = +0.037275
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.559650
      logB = -9.161581
        t0 = +44.353440
        t1 = +22.792735
    T_rise = +1.779087
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.559650
      logB = -6.451215
        t0 = +44.353440
        t1 = +22.792735
    T_rise = +1.779087
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.559650
      logB = -6.451215
        t0 = +47.642159
        t1 = +22.792735
    T_rise = +1.779087
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.657747
      logB = -10.290441
        t0 = +58.581465
        t1 = +99.654900
    T_rise = +0.010456
    T_fall = +0.039640

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = -5.338730
        t0 = +57.340411
        t1 = +98.929840
    T_rise = +69.686311
    T_fall = +0.057951

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.649882
      logB = +nan
        t0 = +57.340411
        t1 = +98.929840
    T_rise = +69.686311
    T_fall = +0.057951

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.649882
      logB = -5.338730
        t0 = +nan
        t1 = +98.929840
    T_rise = +69.686311
    T_fall = +0.057951

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.649882
      logB = -5.338730
        t0 = +57.340411
        t1 = +nan
    T_rise = +69.686311
    T_fall = +0.057951

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.649882
      logB = -5.338730
        t0 = +57.340411
        t1 = +98.929840
    T_rise = +nan
    T_fall = +0.057951

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.649882
      logB = -5.338730
        t0 = +57.340411
        t1 = +98.929840
    T_rise = +69.686311
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.050291
      logB = -5.924639
        t0 = +76.702814
        t1 = +44.402198
    T_rise = +0.000199
    T_fall = +0.007531

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.334894
      logB = +0.560543
        t0 = +50.431493
        t1 = +60.356229
    T_rise = +0.011225
    T_fall = +0.000007

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = -5.338730
        t0 = +57.340411
        t1 = +98.929840
    T_rise = +69.686311
    T_fall = +0.057951

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.649882
      logB = +nan
        t0 = +57.340411
        t1 = +98.929840
    T_rise = +69.686311
    T_fall = +0.057951

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.649882
      logB = -5.338730
        t0 = +nan
        t1 = +98.929840
    T_rise = +69.686311
    T_fall = +0.057951

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.649882
      logB = -5.338730
        t0 = +57.340411
        t1 = +nan
    T_rise = +69.686311
    T_fall = +0.057951

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.649882
      logB = -5.338730
        t0 = +57.340411
        t1 = +98.929840
    T_rise = +nan
    T_fall = +0.057951

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.649882
      logB = -5.338730
        t0 = +57.340411
        t1 = +98.929840
    T_rise = +69.686311
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = -5.338730
        t0 = +57.340411
        t1 = +98.929840
    T_rise = +69.686311
    T_fall = +0.057951

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.649882
      logB = +nan
        t0 = +57.340411
        t1 = +98.929840
    T_rise = +69.686311
    T_fall = +0.057951

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.649882
      logB = -5.338730
        t0 = +nan
        t1 = +98.929840
    T_rise = +69.686311
    T_fall = +0.057951

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.649882
      logB = -5.338730
        t0 = +57.340411
        t1 = +nan
    T_rise = +69.686311
    T_fall = +0.057951

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.649882
      logB = -5.338730
        t0 = +57.340411
        t1 = +98.929840
    T_rise = +nan
    T_fall = +0.057951

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.649882
      logB = -5.338730
        t0 = +57.340411
        t1 = +98.929840
    T_rise = +69.686311
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.375278
      logB = -2.544017
        t0 = +55.389113
        t1 = +7.309151
    T_rise = +0.007125
    T_fall = +0.015924

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.569462
      logB = -0.850621
        t0 = +11.359811
        t1 = +28.457640
    T_rise = +0.000001
    T_fall = +0.010161

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = -5.338730
        t0 = +57.340411
        t1 = +98.929840
    T_rise = +69.686311
    T_fall = +0.057951

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.649882
      logB = +nan
        t0 = +57.340411
        t1 = +98.929840
    T_rise = +69.686311
    T_fall = +0.057951

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.649882
      logB = -5.338730
        t0 = +nan
        t1 = +98.929840
    T_rise = +69.686311
    T_fall = +0.057951

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.649882
      logB = -5.338730
        t0 = +57.340411
        t1 = +nan
    T_rise = +69.686311
    T_fall = +0.057951

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.649882
      logB = -5.338730
        t0 = +57.340411
        t1 = +98.929840
    T_rise = +nan
    T_fall = +0.057951

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.649882
      logB = -5.338730
        t0 = +57.340411
        t1 = +98.929840
    T_rise = +69.686311
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -4.236660
      logB = -11.503958
        t0 = +15.743050
        t1 = +49.356787
    T_rise = +0.010614
    T_fall = +0.021076

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.407934
      logB = -8.677981
        t0 = +92.670854
        t1 = +28.543085
    T_rise = +0.075540
    T_fall = +0.007684

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.085185
      logB = +4.378747
        t0 = +59.712935
        t1 = +97.683224
    T_rise = +0.001969
    T_fall = +0.058529

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -3.034381
      logB = -1.317246
        t0 = +4.659380
        t1 = +2.864130
    T_rise = +0.003742
    T_fall = +0.005906

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.368452
      logB = -2.371206
        t0 = +3.471627
        t1 = +7.780008
    T_rise = +0.000127
    T_fall = +0.001691

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.368452
      logB = -2.371206
        t0 = +3.471627
        t1 = +7.780008
    T_rise = +0.000127
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -3.050386
      logB = -3.204249
        t0 = +97.515661
        t1 = +64.596122
    T_rise = +0.003713
    T_fall = +0.033028

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.582432
      logB = -0.379722
        t0 = +49.834435
        t1 = +42.151279
    T_rise = +0.067512
    T_fall = +0.068074

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.712254
      logB = +0.431529
        t0 = +5.007452
        t1 = +29.464971
    T_rise = +0.000568
    T_fall = +0.000197

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.356047
      logB = -6.602420
        t0 = +41.311854
        t1 = +0.283019
    T_rise = +0.042714
    T_fall = +0.002145

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.675940
      logB = -7.082036
        t0 = +70.318770
        t1 = +3.926310
    T_rise = +0.002603
    T_fall = +0.012562

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -2.320710
      logB = -5.372824
        t0 = +77.904486
        t1 = +0.796600
    T_rise = +0.098985
    T_fall = +0.042883

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -2.301852
      logB = -5.364788
        t0 = +78.224523
        t1 = +1.832374
    T_rise = +0.002484
    T_fall = +0.033251

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -7.888584
      logB = -10.720653
        t0 = +98.326996
        t1 = +7.768571
    T_rise = +0.009853
    T_fall = +0.020444

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.675961
      logB = -7.299521
        t0 = +78.635020
        t1 = +59.208029
    T_rise = +0.085933
    T_fall = +0.086638

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.619683
      logB = -6.965611
        t0 = +78.771350
        t1 = +60.553490
    T_rise = +0.060759
    T_fall = +0.060774

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.860266
      logB = -8.647966
        t0 = +99.923392
        t1 = +99.978467
    T_rise = +0.037575
    T_fall = +0.000020

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -11.408799
      logB = -7.387786
        t0 = +99.557356
        t1 = +17.179641
    T_rise = +0.106609
    T_fall = +0.068594

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -4.275337
      logB = +1.743293
        t0 = +39.444118
        t1 = +16.656886
    T_rise = +0.000000
    T_fall = +0.024477

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.898895
      logB = -11.445509
        t0 = +97.183018
        t1 = +33.501012
    T_rise = +0.003343
    T_fall = +0.057690

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.300530
      logB = -6.048431
        t0 = +69.430806
        t1 = +88.419285
    T_rise = +0.008495
    T_fall = +0.028951

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.032781
      logB = -8.632437
        t0 = +44.464738
        t1 = +13.565303
    T_rise = +0.001220
    T_fall = +0.005226

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.367215
      logB = -4.298181
        t0 = +98.697397
        t1 = +86.745862
    T_rise = +0.000002
    T_fall = +0.007293

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.585997
      logB = -5.231907
        t0 = +58.104015
        t1 = +99.944978
    T_rise = +0.076606
    T_fall = +0.008393

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.723759
      logB = -1.211285
        t0 = +56.365086
        t1 = +94.625652
    T_rise = +0.000002
    T_fall = +0.029925

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.503197
      logB = -1.152618
        t0 = +100.000000
        t1 = +91.649350
    T_rise = +0.093995
    T_fall = +0.089377

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.762854
      logB = +0.722534
        t0 = +86.771127
        t1 = +18.654216
    T_rise = +0.073182
    T_fall = +0.000033

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.485960
      logB = +1.524340
        t0 = +85.144035
        t1 = +85.009176
    T_rise = +0.094107
    T_fall = +0.026035

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.550014
      logB = -1.931277
        t0 = +99.104778
        t1 = +0.761108
    T_rise = +0.117944
    T_fall = +0.005655

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.679793
      logB = +1.676286
        t0 = +65.924430
        t1 = +6.522001
    T_rise = +0.016627
    T_fall = +0.006536

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.404816
      logB = -1.661933
        t0 = +96.320701
        t1 = +18.588343
    T_rise = +0.076798
    T_fall = +0.091518

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.408798
      logB = -2.444493
        t0 = +22.900116
        t1 = +5.349020
    T_rise = +0.014700
    T_fall = +0.014695

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -3.645841
      logB = -10.978652
        t0 = +6.307165
        t1 = +35.484020
    T_rise = +0.006873
    T_fall = +0.000004

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.546037
      logB = -3.819777
        t0 = +78.695172
        t1 = +0.000003
    T_rise = +0.013276
    T_fall = +0.019730

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.015230
      logB = -6.573469
        t0 = +89.353531
        t1 = +90.633474
    T_rise = +0.054778
    T_fall = +0.000908

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.594407
      logB = -3.406131
        t0 = +80.560257
        t1 = +3.528291
    T_rise = +0.010641
    T_fall = +0.015882

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.979418
      logB = -9.515010
        t0 = +59.925596
        t1 = +0.000025
    T_rise = +0.016676
    T_fall = +0.066650

  m.migrad()
198 objects fitted
Time taken is 1.94 minutes
Fitting supernova models...
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in exp
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
Models fitted.
Created classifier of type:
GaussianNB()

Optimised parameters: {}
Reading data...
23 objects read into memory.
Reading data...
198 objects read into memory.
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -2.167985
      logB = -6.035860
        t0 = +99.117269
        t1 = +5.520324
    T_rise = +0.013788
    T_fall = +0.000944

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.950524
      logB = -6.423083
        t0 = +82.891023
        t1 = +26.545243
    T_rise = +0.018528
    T_fall = +0.034644

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.009701
      logB = -10.599726
        t0 = +67.605841
        t1 = +43.122049
    T_rise = +0.007335
    T_fall = +0.067819

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.009701
      logB = -10.599726
        t0 = +67.605841
        t1 = +43.122049
    T_rise = +0.007335
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.104928
      logB = -7.696547
        t0 = +5.049078
        t1 = +6.889307
    T_rise = +0.002727
    T_fall = +0.000065

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.104928
      logB = -7.696547
        t0 = +5.049078
        t1 = +6.889307
    T_rise = +0.002727
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.402009
      logB = -0.802497
        t0 = +4.209833
        t1 = +16.049227
    T_rise = +0.000274
    T_fall = +0.002516

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.624751
      logB = -2.807423
        t0 = +4.092662
        t1 = +77.134891
    T_rise = +0.000001
    T_fall = +0.004694

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.886853
      logB = -0.224132
        t0 = +52.808021
        t1 = +58.747487
    T_rise = +0.000186
    T_fall = +0.017500

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.408607
      logB = -5.849030
        t0 = +48.317716
        t1 = +34.029925
    T_rise = +0.021658
    T_fall = +0.000442

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.835076
      logB = -1.395341
        t0 = +3.879876
        t1 = +31.575083
    T_rise = +0.001597
    T_fall = +0.001534

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.625165
      logB = +1.334591
        t0 = +5.047406
        t1 = +57.022233
    T_rise = +0.000046
    T_fall = +0.000391

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.628210
      logB = +1.337525
        t0 = +5.047399
        t1 = +56.733580
    T_rise = +0.000045
    T_fall = +0.005123

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.189008
      logB = +0.903560
        t0 = +2.028195
        t1 = +4.342898
    T_rise = +0.001047
    T_fall = +0.002179

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.189008
      logB = +0.903560
        t0 = +2.028195
        t1 = +4.342898
    T_rise = +0.001047
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.640313
      logB = +0.292337
        t0 = +31.143960
        t1 = +5.846998
    T_rise = +0.000741
    T_fall = +0.033691

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.215439
      logB = -11.425441
        t0 = +53.098606
        t1 = +49.046229
    T_rise = +0.016557
    T_fall = +0.015078

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.932343
      logB = -11.327547
        t0 = +84.435033
        t1 = +18.454667
    T_rise = +0.097955
    T_fall = +0.028577

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.729968
      logB = +0.448949
        t0 = +5.007490
        t1 = +29.489791
    T_rise = +0.000570
    T_fall = +0.006328

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.730143
      logB = +0.449121
        t0 = +5.007426
        t1 = +29.490390
    T_rise = +0.000549
    T_fall = +0.006438

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.814011
      logB = +0.538958
        t0 = +5.007599
        t1 = +5.083310
    T_rise = +0.000686
    T_fall = +0.006889

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.814011
      logB = +0.538958
        t0 = +5.007599
        t1 = +5.083310
    T_rise = +0.000686
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.777794
      logB = +1.577094
        t0 = +12.922118
        t1 = +24.861920
    T_rise = +0.000029
    T_fall = +0.004028

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.808176
      logB = +1.608405
        t0 = +12.922113
        t1 = +25.774031
    T_rise = +0.000027
    T_fall = +0.015613

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.772959
      logB = +1.572110
        t0 = +12.922116
        t1 = +24.717827
    T_rise = +0.000027
    T_fall = +0.002886

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.807158
      logB = +1.603460
        t0 = +12.922130
        t1 = +39.113257
    T_rise = +0.000012
    T_fall = +0.002019

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.807158
      logB = +1.603460
        t0 = +12.922130
        t1 = +39.113257
    T_rise = +0.000012
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -3.044981
      logB = +1.376609
        t0 = +41.777774
        t1 = +33.638804
    T_rise = +0.040623
    T_fall = +0.011782

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.047532
      logB = -8.725872
        t0 = +61.396244
        t1 = +47.889628
    T_rise = +0.016993
    T_fall = +0.014110

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -6.809753
      logB = +4.099424
        t0 = +83.843373
        t1 = +10.267455
    T_rise = +0.040919
    T_fall = +0.104222

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.026127
      logB = +2.320770
        t0 = +99.507790
        t1 = +99.907377
    T_rise = +0.023135
    T_fall = +0.102123

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.627454
      logB = -3.944031
        t0 = +26.768759
        t1 = +23.478550
    T_rise = +0.033587
    T_fall = +0.028315

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -3.815873
      logB = -0.301925
        t0 = +93.668218
        t1 = +0.000000
    T_rise = +0.012988
    T_fall = +0.095764

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.730768
      logB = +2.576454
        t0 = +4.324826
        t1 = +0.976128
    T_rise = +0.000155
    T_fall = +0.000491

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -9.381364
      logB = -3.526481
        t0 = +88.999943
        t1 = +0.028055
    T_rise = +0.027566
    T_fall = +0.000092

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.236840
      logB = -1.645575
        t0 = +95.558185
        t1 = +7.192958
    T_rise = +0.015897
    T_fall = +0.063993

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.988939
      logB = +2.284410
        t0 = +92.186737
        t1 = +99.860629
    T_rise = +0.020348
    T_fall = +0.085470

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.813713
      logB = +0.543302
        t0 = +5.013189
        t1 = +29.802382
    T_rise = +0.000426
    T_fall = +0.000683

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.822884
      logB = +0.551193
        t0 = +5.514566
        t1 = +29.748963
    T_rise = +0.000103
    T_fall = +0.000153

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.822884
      logB = +0.551193
        t0 = +5.514566
        t1 = +29.748963
    T_rise = +0.000103
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.745505
      logB = +2.443111
        t0 = +13.090022
        t1 = +8.319453
    T_rise = +0.000001
    T_fall = +0.002470

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.083417
      logB = -1.148684
        t0 = +4.107524
        t1 = +18.753956
    T_rise = +0.002776
    T_fall = +0.003769

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.066703
      logB = -1.164720
        t0 = +4.133569
        t1 = +18.464759
    T_rise = +0.001003
    T_fall = +0.004888

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.320813
      logB = +1.999769
        t0 = +26.027020
        t1 = +26.555343
    T_rise = +0.000242
    T_fall = +0.021505

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.690695
      logB = +2.388532
        t0 = +13.090004
        t1 = +8.790790
    T_rise = +0.000000
    T_fall = +0.004145

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.563018
      logB = +0.459832
        t0 = +84.356918
        t1 = +74.506121
    T_rise = +0.001044
    T_fall = +0.021050

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.965201
      logB = -5.473589
        t0 = +75.194722
        t1 = +85.734223
    T_rise = +0.041158
    T_fall = +0.000255

  m.migrad()
198 objects fitted
Time taken is 46.79 seconds
Fitting supernova models...
Models fitted.
Created classifier of type:
GaussianNB()

Optimised parameters: {}
Reading data...
23 objects read into memory.
Reading data...
198 objects read into memory.
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -3.770285
      logB = -1.539191
        t0 = +66.449300
        t1 = +4.652588
    T_rise = +0.013901
    T_fall = +0.014994

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -2.973704
      logB = -1.445439
        t0 = +70.059511
        t1 = +65.323590
    T_rise = +0.006619
    T_fall = +0.008739

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.063294
      logB = -3.303676
        t0 = +57.058931
        t1 = +11.979492
    T_rise = +0.000979
    T_fall = +0.070929

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.935297
      logB = +1.638597
        t0 = +2.016001
        t1 = +65.194999
    T_rise = +0.000000
    T_fall = +0.000530

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.474128
      logB = +2.860489
        t0 = +60.848032
        t1 = +2.449743
    T_rise = +0.012432
    T_fall = +0.020886

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.880138
      logB = -1.351515
        t0 = +4.082941
        t1 = +32.503386
    T_rise = +0.000557
    T_fall = +0.002367

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.898238
      logB = -1.334089
        t0 = +4.086041
        t1 = +32.601455
    T_rise = +0.001480
    T_fall = +0.004790

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.899491
      logB = -1.333288
        t0 = +3.888641
        t1 = +31.910826
    T_rise = +0.004431
    T_fall = +0.001136

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.757353
      logB = -1.461445
        t0 = +4.118539
        t1 = +3.571455
    T_rise = +0.001813
    T_fall = +0.000724

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.757353
      logB = -1.461445
        t0 = +4.118539
        t1 = +3.571455
    T_rise = +0.001813
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.627413
      logB = +0.361772
        t0 = +3.148262
        t1 = +56.435540
    T_rise = +0.001307
    T_fall = +0.003715

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.944639
      logB = +1.647872
        t0 = +2.016024
        t1 = +65.063522
    T_rise = +0.000002
    T_fall = +0.001773

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.997996
      logB = -11.464131
        t0 = +50.820618
        t1 = +0.055696
    T_rise = +0.036626
    T_fall = +0.067602

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.703338
      logB = -5.679823
        t0 = +51.653778
        t1 = +10.127519
    T_rise = +0.001640
    T_fall = +0.002177

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.749730
      logB = +0.468289
        t0 = +5.008797
        t1 = +29.769179
    T_rise = +0.000323
    T_fall = +0.002776

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.749730
      logB = +0.468289
        t0 = +5.008797
        t1 = +29.769179
    T_rise = +0.000323
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.931267
      logB = +0.681165
        t0 = +9.514210
        t1 = +26.947448
    T_rise = +0.012118
    T_fall = +0.001912

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.285521
      logB = -4.927119
        t0 = +87.394080
        t1 = +43.881878
    T_rise = +0.020856
    T_fall = +0.000477

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -6.632294
      logB = -0.456731
        t0 = +68.685662
        t1 = +99.479748
    T_rise = +0.075702
    T_fall = +0.043480

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -9.865260
      logB = -7.164062
        t0 = +91.587161
        t1 = +10.338010
    T_rise = +0.020966
    T_fall = +0.013258

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.893073
      logB = +1.303195
        t0 = +99.999283
        t1 = +96.111213
    T_rise = +0.015189
    T_fall = +0.050658

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.215139
      logB = +2.352019
        t0 = +27.855595
        t1 = +12.334747
    T_rise = +0.000006
    T_fall = +0.002674

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = -6.984940
        t0 = +64.343703
        t1 = +71.400440
    T_rise = +33.140124
    T_fall = +0.179292

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.190187
      logB = +nan
        t0 = +64.343703
        t1 = +71.400440
    T_rise = +33.140124
    T_fall = +0.179292

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.190187
      logB = -6.984940
        t0 = +nan
        t1 = +71.400440
    T_rise = +33.140124
    T_fall = +0.179292

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.190187
      logB = -6.984940
        t0 = +64.343703
        t1 = +nan
    T_rise = +33.140124
    T_fall = +0.179292

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.190187
      logB = -6.984940
        t0 = +64.343703
        t1 = +71.400440
    T_rise = +nan
    T_fall = +0.179292

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.190187
      logB = -6.984940
        t0 = +64.343703
        t1 = +71.400440
    T_rise = +33.140124
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = -6.984940
        t0 = +64.343703
        t1 = +71.400440
    T_rise = +33.140124
    T_fall = +0.179292

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.190187
      logB = +nan
        t0 = +64.343703
        t1 = +71.400440
    T_rise = +33.140124
    T_fall = +0.179292

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.190187
      logB = -6.984940
        t0 = +nan
        t1 = +71.400440
    T_rise = +33.140124
    T_fall = +0.179292

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.190187
      logB = -6.984940
        t0 = +64.343703
        t1 = +nan
    T_rise = +33.140124
    T_fall = +0.179292

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.190187
      logB = -6.984940
        t0 = +64.343703
        t1 = +71.400440
    T_rise = +nan
    T_fall = +0.179292

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.190187
      logB = -6.984940
        t0 = +64.343703
        t1 = +71.400440
    T_rise = +33.140124
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.110486
      logB = -11.046787
        t0 = +61.030313
        t1 = +2.162133
    T_rise = +0.028642
    T_fall = +0.011405

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.690580
      logB = +2.388413
        t0 = +13.090002
        t1 = +8.791899
    T_rise = +0.000000
    T_fall = +0.004172

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.901499
      logB = -2.121098
        t0 = +0.935814
        t1 = +22.389096
    T_rise = +0.000011
    T_fall = +0.000382

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.365239
      logB = -10.410813
        t0 = +18.903017
        t1 = +33.093825
    T_rise = +0.001085
    T_fall = +0.000946

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.091185
      logB = -1.140994
        t0 = +3.984495
        t1 = +17.161884
    T_rise = +0.003186
    T_fall = +0.000414

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.966352
      logB = +2.261147
        t0 = +61.453559
        t1 = +99.827177
    T_rise = +0.017350
    T_fall = +0.077744

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.629413
      logB = -0.619355
        t0 = +9.036298
        t1 = +19.823519
    T_rise = +0.001505
    T_fall = +0.010145

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.570085
      logB = -0.676654
        t0 = +8.979472
        t1 = +19.505017
    T_rise = +0.001215
    T_fall = +0.002565

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.975097
      logB = -0.647352
        t0 = +13.236273
        t1 = +16.124853
    T_rise = +0.000437
    T_fall = +0.010435

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.372371
      logB = +1.714951
        t0 = +21.296127
        t1 = +98.141469
    T_rise = +0.022976
    T_fall = +0.001037

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.680609
      logB = +2.378501
        t0 = +13.090001
        t1 = +8.877971
    T_rise = +0.000007
    T_fall = +0.007274

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.832778
      logB = +4.226451
        t0 = +15.948178
        t1 = +23.965632
    T_rise = +0.000138
    T_fall = +0.000032

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.912402
      logB = -2.104616
        t0 = +0.935073
        t1 = +22.316809
    T_rise = +0.000001
    T_fall = +0.000507

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.629930
      logB = -0.618851
        t0 = +9.036453
        t1 = +19.826208
    T_rise = +0.001535
    T_fall = +0.010270

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.568601
      logB = -0.678098
        t0 = +8.978132
        t1 = +19.497370
    T_rise = +0.001299
    T_fall = +0.003115

  m.migrad()
198 objects fitted
Time taken is 35.33 seconds
Fitting supernova models...
Models fitted.
Created classifier of type:
GaussianNB()

Optimised parameters: {}
Reading data...
23 objects read into memory.
Reading data...
198 objects read into memory.
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.482233
      logB = +0.206593
        t0 = +2.018351
        t1 = +62.157742
    T_rise = +0.000205
    T_fall = +0.001047

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.495726
      logB = +0.219799
        t0 = +2.018325
        t1 = +62.032730
    T_rise = +0.000202
    T_fall = +0.000096

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.063094
      logB = +0.780492
        t0 = +2.018113
        t1 = +2.189771
    T_rise = +0.000206
    T_fall = +0.000413

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.063094
      logB = +0.780492
        t0 = +2.018113
        t1 = +2.189771
    T_rise = +0.000206
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.717063
      logB = +4.547841
        t0 = +8.608962
        t1 = +6.770037
    T_rise = +0.000674
    T_fall = +0.009655

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.936194
      logB = -1.298086
        t0 = +4.071125
        t1 = +33.436216
    T_rise = +0.005573
    T_fall = +0.000843

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.180146
      logB = -1.100040
        t0 = +4.038473
        t1 = +92.166813
    T_rise = +0.001021
    T_fall = +0.001048

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.195637
      logB = -1.089399
        t0 = +4.039733
        t1 = +95.570460
    T_rise = +0.001021
    T_fall = +0.001325

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.513037
      logB = -1.272509
        t0 = +76.245105
        t1 = +5.341398
    T_rise = +0.000276
    T_fall = +0.032832

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.408358
      logB = -1.332462
        t0 = +81.395715
        t1 = +5.099400
    T_rise = +0.000303
    T_fall = +0.057004

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.408358
      logB = -1.332462
        t0 = +81.395715
        t1 = +5.099400
    T_rise = +0.000303
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.016982
      logB = -2.164983
        t0 = +87.305377
        t1 = +3.601093
    T_rise = +0.080244
    T_fall = +0.019187

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.983892
      logB = -1.252313
        t0 = +4.156901
        t1 = +33.747043
    T_rise = +0.000541
    T_fall = +0.002720

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.596212
      logB = -2.505567
        t0 = +32.472277
        t1 = +20.775037
    T_rise = +0.024228
    T_fall = +0.000578

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -11.402136
      logB = +2.727335
        t0 = +53.675225
        t1 = +27.563435
    T_rise = +0.007364
    T_fall = +0.012226

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.429463
      logB = +3.108731
        t0 = +5.005457
        t1 = +17.697492
    T_rise = +0.001762
    T_fall = +0.001347

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.248114
      logB = -2.448686
        t0 = +4.107434
        t1 = +48.385292
    T_rise = +0.001089
    T_fall = +0.000721

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.248114
      logB = -2.448686
        t0 = +4.107434
        t1 = +48.385292
    T_rise = +0.001089
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.915820
      logB = -1.318118
        t0 = +4.001078
        t1 = +33.294946
    T_rise = +0.000917
    T_fall = +0.002957

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.943190
      logB = +1.646401
        t0 = +2.016002
        t1 = +64.824002
    T_rise = +0.000000
    T_fall = +0.000076

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.019186
      logB = -0.504715
        t0 = +91.871871
        t1 = +2.154734
    T_rise = +0.024696
    T_fall = +0.000032

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.846317
      logB = +0.563124
        t0 = +5.008863
        t1 = +29.544434
    T_rise = +0.000369
    T_fall = +0.002188

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.846317
      logB = +0.563124
        t0 = +5.008863
        t1 = +29.544434
    T_rise = +0.000369
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.265108
      logB = -11.021306
        t0 = +18.568613
        t1 = +37.023754
    T_rise = +0.000017
    T_fall = +0.003591

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.265108
      logB = -11.021306
        t0 = +18.568613
        t1 = +37.023754
    T_rise = +0.000017
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.016379
      logB = +1.412586
        t0 = +99.350933
        t1 = +96.523294
    T_rise = +0.023822
    T_fall = +0.056658

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.659295
      logB = +4.044513
        t0 = +79.935460
        t1 = +43.731362
    T_rise = +0.030458
    T_fall = +0.018882

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.555901
      logB = -9.436796
        t0 = +28.453168
        t1 = +99.888901
    T_rise = +0.002398
    T_fall = +0.002795

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.802219
      logB = +4.445918
        t0 = +99.215128
        t1 = +8.239598
    T_rise = +0.043463
    T_fall = +0.084131

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.801041
      logB = -2.269030
        t0 = +0.941986
        t1 = +23.009424
    T_rise = +0.000679
    T_fall = +0.000066

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.150633
      logB = +0.589331
        t0 = +60.537049
        t1 = +91.694652
    T_rise = +0.000149
    T_fall = +0.067968

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -6.830783
      logB = +2.847464
        t0 = +30.196718
        t1 = +5.846592
    T_rise = +0.040979
    T_fall = +0.041130

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.068409
      logB = -1.162938
        t0 = +4.137318
        t1 = +17.024534
    T_rise = +0.004404
    T_fall = +0.004716

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.078634
      logB = -1.153084
        t0 = +4.137317
        t1 = +17.057569
    T_rise = +0.004146
    T_fall = +0.002112

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.126672
      logB = -1.106771
        t0 = +4.137309
        t1 = +17.216741
    T_rise = +0.003919
    T_fall = +0.003665

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.073058
      logB = -1.158458
        t0 = +4.137318
        t1 = +17.039158
    T_rise = +0.004174
    T_fall = +0.003399

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.128474
      logB = -1.105222
        t0 = +4.136134
        t1 = +18.787905
    T_rise = +0.000757
    T_fall = +0.002330

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.128770
      logB = -1.104959
        t0 = +4.082709
        t1 = +18.789911
    T_rise = +0.005652
    T_fall = +0.002384

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -9.154976
      logB = +3.109565
        t0 = +97.216973
        t1 = +75.489241
    T_rise = +0.024338
    T_fall = +0.106361

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.303895
      logB = -0.932770
        t0 = +18.985447
        t1 = +21.329708
    T_rise = +0.013496
    T_fall = +0.012724

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.690487
      logB = +2.388330
        t0 = +13.090053
        t1 = +8.792472
    T_rise = +0.000001
    T_fall = +0.004204

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.303999
      logB = -0.932669
        t0 = +18.983693
        t1 = +21.330881
    T_rise = +0.010969
    T_fall = +0.012711

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.911672
      logB = -2.105717
        t0 = +0.935124
        t1 = +22.321635
    T_rise = +0.000001
    T_fall = +0.000498

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -11.081752
      logB = +1.942896
        t0 = +27.479074
        t1 = +9.426170
    T_rise = +0.037392
    T_fall = +0.002511

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.629896
      logB = -0.618883
        t0 = +9.036443
        t1 = +19.826034
    T_rise = +0.001533
    T_fall = +0.010262

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.568698
      logB = -0.678003
        t0 = +8.978219
        t1 = +19.497869
    T_rise = +0.001293
    T_fall = +0.003078

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.895015
      logB = -2.130873
        t0 = +0.936244
        t1 = +22.431702
    T_rise = +0.000023
    T_fall = +0.000316

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.842470
      logB = -2.208961
        t0 = +0.939550
        t1 = +22.763723
    T_rise = +0.000280
    T_fall = +0.000012

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.872691
      logB = -2.164299
        t0 = +0.937685
        t1 = +22.575617
    T_rise = +0.000098
    T_fall = +0.000137

  m.migrad()
198 objects fitted
Time taken is 35.87 seconds
Fitting supernova models...
Models fitted.
Created classifier of type:
GaussianNB()

Optimised parameters: {}
Reading data...
23 objects read into memory.
Reading data...
198 objects read into memory.
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.009415
      logB = -1.227791
        t0 = +4.098889
        t1 = +33.706570
    T_rise = +0.000658
    T_fall = +0.005528

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.011161
      logB = -1.226102
        t0 = +4.098929
        t1 = +33.709373
    T_rise = +0.000700
    T_fall = +0.005411

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.011161
      logB = -1.226102
        t0 = +4.098929
        t1 = +33.709373
    T_rise = +0.000700
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.847654
      logB = +1.569861
        t0 = +73.407556
        t1 = +62.904606
    T_rise = +0.000424
    T_fall = +0.010885

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.095657
      logB = -1.144525
        t0 = +78.362888
        t1 = +26.432101
    T_rise = +0.096701
    T_fall = +0.109513

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.433550
      logB = -11.250962
        t0 = +99.815062
        t1 = +97.148963
    T_rise = +0.000664
    T_fall = +0.002604

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.859269
      logB = -1.376833
        t0 = +2.666237
        t1 = +32.082285
    T_rise = +0.000680
    T_fall = +0.000559

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.738187
      logB = +0.456971
        t0 = +5.012460
        t1 = +29.684922
    T_rise = +0.002575
    T_fall = +0.006866

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.086029
      logB = +0.803144
        t0 = +5.016612
        t1 = +7.231332
    T_rise = +0.001338
    T_fall = +0.006832

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.086029
      logB = +0.803144
        t0 = +5.016612
        t1 = +7.231332
    T_rise = +0.001338
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.787993
      logB = +4.405273
        t0 = +65.704041
        t1 = +5.538653
    T_rise = +0.019043
    T_fall = +0.017808

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.241975
      logB = +0.901014
        t0 = +17.078281
        t1 = +0.002135
    T_rise = +0.002120
    T_fall = +0.004815

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.836079
      logB = +2.090905
        t0 = +42.493667
        t1 = +99.588138
    T_rise = +0.039145
    T_fall = +0.003893

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.635643
      logB = -1.494683
        t0 = +57.402366
        t1 = +60.902577
    T_rise = +0.053163
    T_fall = +0.030117

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.121103
      logB = +0.839133
        t0 = +5.010917
        t1 = +5.034413
    T_rise = +0.001015
    T_fall = +0.001595

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.121103
      logB = +0.839133
        t0 = +5.010917
        t1 = +5.034413
    T_rise = +0.001015
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.901800
      logB = +4.129431
        t0 = +90.691443
        t1 = +7.211825
    T_rise = +0.096487
    T_fall = +0.000071

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.597506
      logB = -1.698929
        t0 = +97.906288
        t1 = +64.917382
    T_rise = +0.011417
    T_fall = +0.137997

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.069361
      logB = -1.163743
        t0 = +19.396825
        t1 = +12.981212
    T_rise = +0.009433
    T_fall = +0.000150

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.902611
      logB = -10.133374
        t0 = +11.672507
        t1 = +99.475990
    T_rise = +0.010405
    T_fall = +0.000001

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.900629
      logB = -2.122426
        t0 = +0.935869
        t1 = +22.394957
    T_rise = +0.000013
    T_fall = +0.000373

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.629370
      logB = -0.619396
        t0 = +9.036285
        t1 = +19.823296
    T_rise = +0.001503
    T_fall = +0.010135

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.570205
      logB = -0.676537
        t0 = +8.979582
        t1 = +19.505638
    T_rise = +0.001209
    T_fall = +0.002522

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.919435
      logB = -2.093914
        t0 = +0.934591
        t1 = +22.269413
    T_rise = +0.000001
    T_fall = +0.000596

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.832973
      logB = -2.222871
        t0 = +0.940114
        t1 = +22.821424
    T_rise = +0.000356
    T_fall = +0.000001

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.873270
      logB = -2.163429
        t0 = +0.937650
        t1 = +22.571871
    T_rise = +0.000096
    T_fall = +0.000140

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.772198
      logB = -2.310044
        t0 = +0.943626
        t1 = +23.172790
    T_rise = +0.001059
    T_fall = +0.000266

  m.migrad()
198 objects fitted
Time taken is 32.12 seconds
Fitting supernova models...
Models fitted.
Created classifier of type:
GaussianNB()

Optimised parameters: {}
Reading data...
23 objects read into memory.
Reading data...
198 objects read into memory.
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.238331
      logB = +0.915326
        t0 = +9.710769
        t1 = +8.159642
    T_rise = +0.004264
    T_fall = +0.001301

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.338877
      logB = -1.737301
        t0 = +9.665095
        t1 = +97.208584
    T_rise = +0.007058
    T_fall = +0.001463

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.712259
      logB = +1.441523
        t0 = +63.581843
        t1 = +66.691875
    T_rise = +0.048888
    T_fall = +0.079321

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.034249
      logB = -2.184064
        t0 = +4.026913
        t1 = +14.549039
    T_rise = +0.004773
    T_fall = +0.005665

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.247147
      logB = -1.972837
        t0 = +4.026228
        t1 = +14.639011
    T_rise = +0.004772
    T_fall = +0.005253

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.247147
      logB = -1.972837
        t0 = +4.026228
        t1 = +14.639011
    T_rise = +0.004772
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.692553
      logB = -8.609097
        t0 = +53.689675
        t1 = +95.992893
    T_rise = +0.012657
    T_fall = +0.007407

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.953736
      logB = -1.281342
        t0 = +4.039722
        t1 = +33.937046
    T_rise = +0.000444
    T_fall = +0.000410

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -5.592297
      logB = +2.558277
        t0 = +20.787953
        t1 = +4.927978
    T_rise = +0.020395
    T_fall = +0.020563

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.993220
      logB = -9.940297
        t0 = +71.112451
        t1 = +53.456835
    T_rise = +0.013996
    T_fall = +0.019945

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.225568
      logB = -9.981176
        t0 = +53.001108
        t1 = +98.670083
    T_rise = +0.052364
    T_fall = +0.000207

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.566934
      logB = -1.721960
        t0 = +87.472158
        t1 = +64.884651
    T_rise = +0.011717
    T_fall = +0.029170

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.322510
      logB = +2.089421
        t0 = +87.314273
        t1 = +13.223956
    T_rise = +0.000245
    T_fall = +0.060798

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.322510
      logB = +2.089421
        t0 = +87.314273
        t1 = +13.223956
    T_rise = +0.000245
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -10.140369
      logB = -4.517254
        t0 = +36.378316
        t1 = +5.195283
    T_rise = +0.015260
    T_fall = +0.010325

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.865356
      logB = -2.175208
        t0 = +0.938145
        t1 = +22.622017
    T_rise = +0.000134
    T_fall = +0.000094

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.900039
      logB = -2.123293
        t0 = +0.935913
        t1 = +22.398655
    T_rise = +0.000014
    T_fall = +0.000366

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.629343
      logB = -0.619424
        t0 = +9.036278
        t1 = +19.823151
    T_rise = +0.001501
    T_fall = +0.010129

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.570282
      logB = -0.676463
        t0 = +8.979653
        t1 = +19.506035
    T_rise = +0.001204
    T_fall = +0.002495

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.809587
      logB = -2.256719
        t0 = +0.941499
        t1 = +22.959609
    T_rise = +0.000583
    T_fall = +0.000033

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.349105
      logB = -1.237104
        t0 = +9.596981
        t1 = +54.632379
    T_rise = +0.001089
    T_fall = +0.008656

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.349105
      logB = -1.237104
        t0 = +nan
        t1 = +54.632379
    T_rise = +0.001089
    T_fall = +0.008656

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.690850
      logB = +2.388685
        t0 = +13.090003
        t1 = +8.789471
    T_rise = +0.000000
    T_fall = +0.004100

  m.migrad()
198 objects fitted
Time taken is 23.73 seconds
Fitting supernova models...
Models fitted.
Created classifier of type:
GaussianNB()

Optimised parameters: {}
Reading data...
23 objects read into memory.
Reading data...
198 objects read into memory.
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.127017
      logB = -5.151161
        t0 = +44.340302
        t1 = +14.969244
    T_rise = +0.000401
    T_fall = +0.039791

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.944769
      logB = +1.647982
        t0 = +2.016004
        t1 = +65.023334
    T_rise = +0.000001
    T_fall = +0.000615

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.933966
      logB = +1.637224
        t0 = +2.016059
        t1 = +64.773676
    T_rise = +0.000004
    T_fall = +0.001890

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.237991
      logB = +3.934356
        t0 = +2.016056
        t1 = +67.361062
    T_rise = +0.000007
    T_fall = +0.000032

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.647095
      logB = -2.801786
        t0 = +2.016053
        t1 = +28.203301
    T_rise = +0.000009
    T_fall = +0.002346

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.647095
      logB = -2.801786
        t0 = +2.016053
        t1 = +28.203301
    T_rise = +0.000009
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.048541
      logB = +1.176276
        t0 = +2.400444
        t1 = +4.093814
    T_rise = +0.000416
    T_fall = +0.000531

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.603406
      logB = -7.074091
        t0 = +93.271687
        t1 = +53.635598
    T_rise = +0.128226
    T_fall = +0.024850

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.123703
      logB = +0.807803
        t0 = +41.944926
        t1 = +76.547483
    T_rise = +0.000418
    T_fall = +0.026355

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.926446
      logB = -1.307947
        t0 = +4.090104
        t1 = +32.820245
    T_rise = +0.000176
    T_fall = +0.002976

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.701966
      logB = -2.811040
        t0 = +44.640115
        t1 = +0.000012
    T_rise = +0.008455
    T_fall = +0.023150

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.725952
      logB = +0.445036
        t0 = +5.005939
        t1 = +29.363962
    T_rise = +0.000221
    T_fall = +0.006859

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.717625
      logB = +0.436869
        t0 = +5.005952
        t1 = +29.325290
    T_rise = +0.000216
    T_fall = +0.002738

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.718863
      logB = +0.438083
        t0 = +5.005983
        t1 = +29.331107
    T_rise = +0.000221
    T_fall = +0.003231

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.324548
      logB = -11.117936
        t0 = +99.493462
        t1 = +45.549650
    T_rise = +0.045148
    T_fall = +0.000581

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.862712
      logB = -4.795669
        t0 = +18.614680
        t1 = +99.979885
    T_rise = +0.000109
    T_fall = +0.016256

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -2.010829
      logB = -6.648113
        t0 = +74.769964
        t1 = +93.145635
    T_rise = +0.014368
    T_fall = +0.033890

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.065305
      logB = -1.165932
        t0 = +4.042605
        t1 = +16.958571
    T_rise = +0.000001
    T_fall = +0.004089

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.430086
      logB = -0.754543
        t0 = +4.137132
        t1 = +8.255679
    T_rise = +0.000019
    T_fall = +0.000207

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.430086
      logB = -0.754543
        t0 = +4.137132
        t1 = +8.255679
    T_rise = +0.000019
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.909211
      logB = -2.109418
        t0 = +0.935298
        t1 = +22.337825
    T_rise = +0.000003
    T_fall = +0.000468

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.629782
      logB = -0.618994
        t0 = +9.036407
        t1 = +19.825442
    T_rise = +0.001526
    T_fall = +0.010234

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.569030
      logB = -0.677680
        t0 = +8.978516
        t1 = +19.499577
    T_rise = +0.001275
    T_fall = +0.002952

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.688619
      logB = +2.386463
        t0 = +13.090011
        t1 = +8.808871
    T_rise = +0.000001
    T_fall = +0.004716

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.084592
      logB = -1.147542
        t0 = +4.140778
        t1 = +18.718152
    T_rise = +0.003892
    T_fall = +0.003034

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.812752
      logB = -2.252184
        t0 = +0.941309
        t1 = +22.941318
    T_rise = +0.000549
    T_fall = +0.000024

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.873787
      logB = -2.162660
        t0 = +0.937617
        t1 = +22.568601
    T_rise = +0.000093
    T_fall = +0.000144

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.805537
      logB = +0.383152
        t0 = +1.366856
        t1 = +38.441737
    T_rise = +0.000118
    T_fall = +0.000241

  m.migrad()
198 objects fitted
Time taken is 30.64 seconds
Fitting supernova models...
Models fitted.
Created classifier of type:
GaussianNB()

Optimised parameters: {}
Reading data...
23 objects read into memory.
Reading data...
198 objects read into memory.
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.794014
      logB = +4.301025
        t0 = +99.671497
        t1 = +3.145126
    T_rise = +0.051221
    T_fall = +0.002121

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.391434
      logB = -3.083585
        t0 = +54.213333
        t1 = +46.655690
    T_rise = +0.076375
    T_fall = +0.076741

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.913795
      logB = -1.320116
        t0 = +4.050720
        t1 = +34.097255
    T_rise = +0.004245
    T_fall = +0.005584

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.912965
      logB = -1.320918
        t0 = +4.050552
        t1 = +34.095844
    T_rise = +0.004192
    T_fall = +0.005745

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.912965
      logB = -1.320918
        t0 = +4.050552
        t1 = +34.095844
    T_rise = +0.004192
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.982172
      logB = -8.759638
        t0 = +62.522643
        t1 = +98.902275
    T_rise = +0.001423
    T_fall = +0.024070

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.305066
      logB = +4.367855
        t0 = +10.533272
        t1 = +8.137145
    T_rise = +0.000484
    T_fall = +0.009069

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -2.469080
      logB = +4.579919
        t0 = +96.892724
        t1 = +1.633081
    T_rise = +0.027909
    T_fall = +0.118700

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.349258
      logB = +3.564844
        t0 = +7.372296
        t1 = +14.017646
    T_rise = +0.001217
    T_fall = +0.005287

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.682425
      logB = -7.617038
        t0 = +24.433596
        t1 = +77.626672
    T_rise = +0.022393
    T_fall = +0.017728

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.929806
      logB = +1.633182
        t0 = +2.016034
        t1 = +65.738706
    T_rise = +0.000003
    T_fall = +0.000060

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.924875
      logB = +1.628274
        t0 = +2.016034
        t1 = +65.533034
    T_rise = +0.000003
    T_fall = +0.002669

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.924875
      logB = +1.628274
        t0 = +2.016034
        t1 = +65.533034
    T_rise = +0.000003
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -10.335584
      logB = +4.257908
        t0 = +38.024588
        t1 = +66.343058
    T_rise = +0.043377
    T_fall = +0.003477

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.885145
      logB = +0.613115
        t0 = +95.329439
        t1 = +30.139870
    T_rise = +0.000003
    T_fall = +0.013414

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +4.229704
        t0 = +46.209858
        t1 = +53.391962
    T_rise = +61.079901
    T_fall = +0.019000

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.155726
      logB = +nan
        t0 = +46.209858
        t1 = +53.391962
    T_rise = +61.079901
    T_fall = +0.019000

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.155726
      logB = +4.229704
        t0 = +nan
        t1 = +53.391962
    T_rise = +61.079901
    T_fall = +0.019000

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.155726
      logB = +4.229704
        t0 = +46.209858
        t1 = +nan
    T_rise = +61.079901
    T_fall = +0.019000

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.155726
      logB = +4.229704
        t0 = +46.209858
        t1 = +53.391962
    T_rise = +nan
    T_fall = +0.019000

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +4.229704
        t0 = +46.209858
        t1 = +53.391962
    T_rise = +61.079901
    T_fall = +0.407196

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.155726
      logB = +nan
        t0 = +46.209858
        t1 = +53.391962
    T_rise = +61.079901
    T_fall = +0.407196

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.155726
      logB = +4.229704
        t0 = +nan
        t1 = +53.391962
    T_rise = +61.079901
    T_fall = +0.407196

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.155726
      logB = +4.229704
        t0 = +46.209858
        t1 = +nan
    T_rise = +61.079901
    T_fall = +0.407196

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.155726
      logB = +4.229704
        t0 = +46.209858
        t1 = +53.391962
    T_rise = +nan
    T_fall = +0.407196

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.835938
      logB = -11.430541
        t0 = +76.387148
        t1 = +63.305366
    T_rise = +0.105543
    T_fall = +0.069490

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +4.229704
        t0 = +46.209858
        t1 = +53.391962
    T_rise = +61.079901
    T_fall = +0.019000

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.155726
      logB = +nan
        t0 = +46.209858
        t1 = +53.391962
    T_rise = +61.079901
    T_fall = +0.019000

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.155726
      logB = +4.229704
        t0 = +nan
        t1 = +53.391962
    T_rise = +61.079901
    T_fall = +0.019000

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.155726
      logB = +4.229704
        t0 = +46.209858
        t1 = +nan
    T_rise = +61.079901
    T_fall = +0.019000

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.155726
      logB = +4.229704
        t0 = +46.209858
        t1 = +53.391962
    T_rise = +nan
    T_fall = +0.019000

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +4.229704
        t0 = +46.209858
        t1 = +53.391962
    T_rise = +61.079901
    T_fall = +0.407196

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.155726
      logB = +nan
        t0 = +46.209858
        t1 = +53.391962
    T_rise = +61.079901
    T_fall = +0.407196

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.155726
      logB = +4.229704
        t0 = +nan
        t1 = +53.391962
    T_rise = +61.079901
    T_fall = +0.407196

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.155726
      logB = +4.229704
        t0 = +46.209858
        t1 = +nan
    T_rise = +61.079901
    T_fall = +0.407196

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.155726
      logB = +4.229704
        t0 = +46.209858
        t1 = +53.391962
    T_rise = +nan
    T_fall = +0.407196

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.727552
      logB = -0.567503
        t0 = +29.418298
        t1 = +5.613282
    T_rise = +0.020753
    T_fall = +0.007048

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.986109
      logB = +3.255256
        t0 = +33.473344
        t1 = +3.638326
    T_rise = +0.015976
    T_fall = +0.000621

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.145333
      logB = -1.107342
        t0 = +35.458019
        t1 = +58.822493
    T_rise = +0.040093
    T_fall = +0.032232

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.737423
      logB = -8.495406
        t0 = +39.169380
        t1 = +52.881852
    T_rise = +0.000019
    T_fall = +0.017058

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.036293
      logB = -4.862344
        t0 = +57.727362
        t1 = +13.439731
    T_rise = +0.008899
    T_fall = +0.038967

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.024109
      logB = +2.705869
        t0 = +4.137008
        t1 = +4.059974
    T_rise = +0.000000
    T_fall = +0.005283

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.240305
      logB = +2.920692
        t0 = +26.668579
        t1 = +2.839481
    T_rise = +0.000023
    T_fall = +0.002100

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.240305
      logB = +2.920692
        t0 = +26.668579
        t1 = +2.839481
    T_rise = +0.000023
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.272847
      logB = -1.275801
        t0 = +98.101385
        t1 = +15.002596
    T_rise = +0.000002
    T_fall = +0.002937

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.275749
      logB = -0.960088
        t0 = +12.020217
        t1 = +25.162715
    T_rise = +0.000651
    T_fall = +0.002399

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.893243
      logB = -2.133511
        t0 = +0.936367
        t1 = +22.443052
    T_rise = +0.000028
    T_fall = +0.000298

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.353543
      logB = +1.533351
        t0 = +85.963148
        t1 = +9.770676
    T_rise = +0.025112
    T_fall = +0.090159

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -3.521804
      logB = -4.600730
        t0 = +72.679622
        t1 = +55.569646
    T_rise = +0.044287
    T_fall = +0.042381

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.838456
      logB = -2.214851
        t0 = +0.939789
        t1 = +22.788216
    T_rise = +0.000311
    T_fall = +0.000005

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.979097
      logB = -0.285116
        t0 = +12.022989
        t1 = +32.337405
    T_rise = +0.000151
    T_fall = +0.013797

  m.migrad()
198 objects fitted
Time taken is 36.86 seconds
Fitting supernova models...
Models fitted.
Created classifier of type:
GaussianNB()

Optimised parameters: {}
Reading data...
23 objects read into memory.
Reading data...
198 objects read into memory.
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.807234
      logB = -2.639987
        t0 = +25.333518
        t1 = +43.311751
    T_rise = +0.000040
    T_fall = +0.007825

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.705183
      logB = -4.684988
        t0 = +53.695373
        t1 = +26.603132
    T_rise = +0.004605
    T_fall = +0.014116

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -10.846697
      logB = +4.160371
        t0 = +98.724353
        t1 = +0.023152
    T_rise = +0.000441
    T_fall = +0.018074

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -5.414349
      logB = -0.268742
        t0 = +67.321535
        t1 = +7.394534
    T_rise = +0.093931
    T_fall = +0.093673

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.322106
      logB = -1.883473
        t0 = +4.074345
        t1 = +15.973239
    T_rise = +0.004028
    T_fall = +0.003966

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.304681
      logB = +1.018827
        t0 = +5.009732
        t1 = +5.287561
    T_rise = +0.000647
    T_fall = +0.000140

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.304681
      logB = +1.018827
        t0 = +5.009732
        t1 = +5.287561
    T_rise = +0.000647
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.756626
      logB = +2.014685
        t0 = +93.200905
        t1 = +99.458218
    T_rise = +0.010599
    T_fall = +0.012625

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.845944
      logB = +0.583909
        t0 = +5.007804
        t1 = +30.151600
    T_rise = +0.000424
    T_fall = +0.007144

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.702547
      logB = +0.422058
        t0 = +5.021037
        t1 = +29.354470
    T_rise = +0.000051
    T_fall = +0.000329

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.690989
      logB = +2.388843
        t0 = +13.090002
        t1 = +8.787815
    T_rise = +0.000004
    T_fall = +0.004076

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -11.508565
      logB = -9.568234
        t0 = +63.093339
        t1 = +86.783191
    T_rise = +0.033122
    T_fall = +0.016151

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.887383
      logB = +2.582925
        t0 = +74.509734
        t1 = +4.706672
    T_rise = +0.000000
    T_fall = +0.002913

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = -3.833663
        t0 = +68.674775
        t1 = +41.239726
    T_rise = +92.701989
    T_fall = +0.170218

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.982727
      logB = +nan
        t0 = +68.674775
        t1 = +41.239726
    T_rise = +92.701989
    T_fall = +0.170218

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.982727
      logB = -3.833663
        t0 = +nan
        t1 = +41.239726
    T_rise = +92.701989
    T_fall = +0.170218

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.982727
      logB = -3.833663
        t0 = +68.674775
        t1 = +nan
    T_rise = +92.701989
    T_fall = +0.170218

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.982727
      logB = -3.833663
        t0 = +68.674775
        t1 = +41.239726
    T_rise = +nan
    T_fall = +0.170218

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.982727
      logB = -3.833663
        t0 = +68.674775
        t1 = +41.239726
    T_rise = +92.701989
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.915516
      logB = -2.099874
        t0 = +0.934862
        t1 = +22.295810
    T_rise = +0.000000
    T_fall = +0.000546

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.504841
      logB = -1.145518
        t0 = +82.619938
        t1 = +17.019854
    T_rise = +0.000026
    T_fall = +0.044613

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.630072
      logB = -0.618712
        t0 = +9.036498
        t1 = +19.826952
    T_rise = +0.001543
    T_fall = +0.010306

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.568182
      logB = -0.678506
        t0 = +8.977757
        t1 = +19.495214
    T_rise = +0.001323
    T_fall = +0.003278

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.873707
      logB = -2.162815
        t0 = +0.937615
        t1 = +22.569384
    T_rise = +0.000094
    T_fall = +0.000144

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.180350
      logB = -1.051475
        t0 = +12.354650
        t1 = +19.108231
    T_rise = +0.000050
    T_fall = +0.000614

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.790900
      logB = -2.283507
        t0 = +0.942571
        t1 = +23.067408
    T_rise = +0.000803
    T_fall = +0.000121

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.690495
      logB = +2.388335
        t0 = +13.090003
        t1 = +8.792498
    T_rise = +0.000000
    T_fall = +0.004196

  m.migrad()
198 objects fitted
Time taken is 34.42 seconds
Fitting supernova models...
Models fitted.
Created classifier of type:
GaussianNB()

Optimised parameters: {}
Reading data...
23 objects read into memory.
Reading data...
198 objects read into memory.
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.164121
      logB = +1.072855
        t0 = +55.474349
        t1 = +73.621664
    T_rise = +0.000088
    T_fall = +0.005992

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.769096
      logB = +4.604397
        t0 = +10.764606
        t1 = +7.613020
    T_rise = +0.000457
    T_fall = +0.007541

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -5.622886
      logB = +4.593051
        t0 = +28.933218
        t1 = +54.744585
    T_rise = +0.023062
    T_fall = +0.013895

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.225969
      logB = -4.988133
        t0 = +76.463707
        t1 = +76.277291
    T_rise = +0.033047
    T_fall = +0.002325

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.203025
      logB = +1.947511
        t0 = +87.264635
        t1 = +67.085702
    T_rise = +0.000317
    T_fall = +0.001987

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.945956
      logB = +3.587799
        t0 = +5.004003
        t1 = +8.395023
    T_rise = +0.000288
    T_fall = +0.002626

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.053030
      logB = +0.763385
        t0 = +99.767992
        t1 = +98.595070
    T_rise = +0.000317
    T_fall = +0.073266

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.982759
      logB = +0.705083
        t0 = +2.016014
        t1 = +45.112262
    T_rise = +0.000002
    T_fall = +0.001159

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.977386
      logB = +0.699878
        t0 = +2.016014
        t1 = +45.052617
    T_rise = +0.000002
    T_fall = +0.000007

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.173617
      logB = +3.836589
        t0 = +5.013205
        t1 = +11.255381
    T_rise = +0.000371
    T_fall = +0.000051

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.942140
      logB = +1.645354
        t0 = +2.016005
        t1 = +64.781426
    T_rise = +0.000001
    T_fall = +0.000342

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.964161
      logB = +3.641075
        t0 = +5.083898
        t1 = +15.125954
    T_rise = +0.002132
    T_fall = +0.001834

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.719836
      logB = +0.438988
        t0 = +5.004243
        t1 = +29.050308
    T_rise = +0.000000
    T_fall = +0.000522

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.828821
      logB = +0.546689
        t0 = +5.005579
        t1 = +29.046683
    T_rise = +0.000201
    T_fall = +0.000712

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.828821
      logB = +0.546689
        t0 = +5.005579
        t1 = +29.046683
    T_rise = +0.000201
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.690612
      logB = +2.388446
        t0 = +13.090003
        t1 = +8.791595
    T_rise = +0.000000
    T_fall = +0.004165

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.906584
      logB = -2.113460
        t0 = +0.935463
        t1 = +22.355823
    T_rise = +0.000005
    T_fall = +0.000439

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.849772
      logB = -2.198252
        t0 = +0.939103
        t1 = +22.719116
    T_rise = +0.000228
    T_fall = +0.000029

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.424681
      logB = -3.234051
        t0 = +0.053938
        t1 = +4.340154
    T_rise = +0.000057
    T_fall = +0.000065

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.424681
      logB = -3.234051
        t0 = +nan
        t1 = +4.340154
    T_rise = +0.000057
    T_fall = +0.000065

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.424681
      logB = -3.234051
        t0 = +0.042565
        t1 = +4.340154
    T_rise = +0.000057
    T_fall = +0.000012

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.424681
      logB = -3.234051
        t0 = +0.042565
        t1 = +4.340154
    T_rise = +0.000057
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.629656
      logB = -0.619118
        t0 = +9.036369
        t1 = +19.824781
    T_rise = +0.001519
    T_fall = +0.010203

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.569393
      logB = -0.677327
        t0 = +8.978845
        t1 = +19.501448
    T_rise = +0.001254
    T_fall = +0.002816

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.713175
      logB = +1.415818
        t0 = +7.801175
        t1 = +30.552370
    T_rise = +0.007503
    T_fall = +0.001112

  m.migrad()
198 objects fitted
Time taken is 32.00 seconds
Fitting supernova models...
Models fitted.
Created classifier of type:
GaussianNB()

Optimised parameters: {}
Reading data...
23 objects read into memory.
Reading data...
198 objects read into memory.
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.386276
      logB = -0.817415
        t0 = +69.052613
        t1 = +8.241392
    T_rise = +0.046433
    T_fall = +0.011825

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.899368
      logB = -1.333903
        t0 = +4.036724
        t1 = +33.687341
    T_rise = +0.000001
    T_fall = +0.005155

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.545030
      logB = +2.204056
        t0 = +44.119976
        t1 = +71.045557
    T_rise = +0.001864
    T_fall = +0.014392

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.174046
      logB = -4.866305
        t0 = +4.144675
        t1 = +0.025933
    T_rise = +0.004511
    T_fall = +0.000147

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.174046
      logB = -4.866305
        t0 = +4.144675
        t1 = +0.025933
    T_rise = +0.004511
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.916373
      logB = +1.623846
        t0 = +78.117954
        t1 = +65.590717
    T_rise = +0.070786
    T_fall = +0.008873

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.705512
      logB = +0.424946
        t0 = +5.025978
        t1 = +28.966649
    T_rise = +0.000571
    T_fall = +0.001032

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.718146
      logB = +0.437338
        t0 = +5.029985
        t1 = +29.027924
    T_rise = +0.001318
    T_fall = +0.000206

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -10.747070
      logB = +4.573571
        t0 = +47.534193
        t1 = +0.019308
    T_rise = +0.019050
    T_fall = +0.000782

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.954547
      logB = -6.540691
        t0 = +49.535689
        t1 = +33.507678
    T_rise = +0.001930
    T_fall = +0.039660

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -5.966315
      logB = +0.326668
        t0 = +93.119567
        t1 = +12.748626
    T_rise = +0.080365
    T_fall = +0.093843

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -5.920101
      logB = +0.308505
        t0 = +93.082988
        t1 = +12.866264
    T_rise = +0.062138
    T_fall = +0.075458

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.728443
      logB = +0.447437
        t0 = +5.025133
        t1 = +29.439283
    T_rise = +0.000284
    T_fall = +0.004247

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.460324
      logB = +1.782199
        t0 = +50.147420
        t1 = +98.473200
    T_rise = +0.021814
    T_fall = +0.000996

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -11.158349
      logB = -6.106662
        t0 = +45.477032
        t1 = +18.025353
    T_rise = +0.000358
    T_fall = +0.000982

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.820591
      logB = -2.240843
        t0 = +0.940853
        t1 = +22.895096
    T_rise = +0.000469
    T_fall = +0.000007

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.391765
      logB = +1.199891
        t0 = +23.503082
        t1 = +27.236480
    T_rise = +0.020870
    T_fall = +0.009359

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.896411
      logB = -2.128756
        t0 = +0.936155
        t1 = +22.422438
    T_rise = +0.000020
    T_fall = +0.000329

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.629165
      logB = -0.619596
        t0 = +9.036228
        t1 = +19.822229
    T_rise = +0.001491
    T_fall = +0.010088

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.570774
      logB = -0.675984
        t0 = +8.980106
        t1 = +19.508583
    T_rise = +0.001177
    T_fall = +0.002324

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.898123
      logB = +2.593608
        t0 = +98.165728
        t1 = +4.639384
    T_rise = +0.000000
    T_fall = +0.028864

  m.migrad()
198 objects fitted
Time taken is 25.36 seconds
Fitting supernova models...
Models fitted.
Created classifier of type:
GaussianNB()

Optimised parameters: {}
Reading data...
23 objects read into memory.
Reading data...
198 objects read into memory.
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -3.534220
      logB = -1.536812
        t0 = +64.593488
        t1 = +10.006986
    T_rise = +0.019587
    T_fall = +0.010832

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.805059
      logB = -9.947237
        t0 = +56.754864
        t1 = +0.208087
    T_rise = +0.004349
    T_fall = +0.038973

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.740182
      logB = -2.158134
        t0 = +25.955008
        t1 = +0.544356
    T_rise = +0.000219
    T_fall = +0.006189

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.842507
      logB = +0.561198
        t0 = +5.031291
        t1 = +5.059351
    T_rise = +0.000080
    T_fall = +0.006316

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.842507
      logB = +0.561198
        t0 = +5.031291
        t1 = +5.059351
    T_rise = +0.000080
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -6.640490
      logB = +4.098225
        t0 = +31.243151
        t1 = +0.000632
    T_rise = +0.029618
    T_fall = +0.032113

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.914465
      logB = +2.816098
        t0 = +99.983703
        t1 = +98.371169
    T_rise = +0.000760
    T_fall = +0.044219

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = -5.633546
        t0 = +40.623309
        t1 = +32.792974
    T_rise = +45.487407
    T_fall = +0.097954

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.570708
      logB = +nan
        t0 = +40.623309
        t1 = +32.792974
    T_rise = +45.487407
    T_fall = +0.097954

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.570708
      logB = -5.633546
        t0 = +nan
        t1 = +32.792974
    T_rise = +45.487407
    T_fall = +0.097954

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.570708
      logB = -5.633546
        t0 = +40.623309
        t1 = +nan
    T_rise = +45.487407
    T_fall = +0.097954

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = -5.633546
        t0 = +40.623309
        t1 = +32.792974
    T_rise = +45.487407
    T_fall = +0.097954

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.570708
      logB = +nan
        t0 = +40.623309
        t1 = +32.792974
    T_rise = +45.487407
    T_fall = +0.097954

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.570708
      logB = -5.633546
        t0 = +40.623309
        t1 = +32.792974
    T_rise = +nan
    T_fall = +0.097954

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.570708
      logB = -5.633546
        t0 = +nan
        t1 = +32.792974
    T_rise = +45.487407
    T_fall = +0.097954

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.570708
      logB = -5.633546
        t0 = +40.623309
        t1 = +nan
    T_rise = +45.487407
    T_fall = +0.097954

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.570708
      logB = -5.633546
        t0 = +40.623309
        t1 = +32.792974
    T_rise = +45.487407
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.570708
      logB = -5.633546
        t0 = +40.623309
        t1 = +32.792974
    T_rise = +nan
    T_fall = +0.097954

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.570708
      logB = -5.633546
        t0 = +40.623309
        t1 = +32.792974
    T_rise = +45.487407
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -2.642965
      logB = -3.444584
        t0 = +90.459722
        t1 = +0.683383
    T_rise = +0.001031
    T_fall = +0.110197

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = -5.633546
        t0 = +40.623309
        t1 = +32.792974
    T_rise = +45.487407
    T_fall = +0.097954

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.570708
      logB = +nan
        t0 = +40.623309
        t1 = +32.792974
    T_rise = +45.487407
    T_fall = +0.097954

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.570708
      logB = -5.633546
        t0 = +nan
        t1 = +32.792974
    T_rise = +45.487407
    T_fall = +0.097954

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.570708
      logB = -5.633546
        t0 = +40.623309
        t1 = +nan
    T_rise = +45.487407
    T_fall = +0.097954

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.570708
      logB = -5.633546
        t0 = +40.623309
        t1 = +32.792974
    T_rise = +nan
    T_fall = +0.097954

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.570708
      logB = -5.633546
        t0 = +40.623309
        t1 = +32.792974
    T_rise = +45.487407
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.810958
      logB = +3.435645
        t0 = +85.128233
        t1 = +20.150613
    T_rise = +0.072847
    T_fall = +0.078503

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.968778
      logB = -10.780408
        t0 = +10.474406
        t1 = +17.344646
    T_rise = +0.010658
    T_fall = +0.001061

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.869187
      logB = -7.558550
        t0 = +4.793502
        t1 = +40.623467
    T_rise = +0.003296
    T_fall = +0.005657

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = -5.633546
        t0 = +40.623309
        t1 = +32.792974
    T_rise = +45.487407
    T_fall = +0.097954

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.570708
      logB = +nan
        t0 = +40.623309
        t1 = +32.792974
    T_rise = +45.487407
    T_fall = +0.097954

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.570708
      logB = -5.633546
        t0 = +nan
        t1 = +32.792974
    T_rise = +45.487407
    T_fall = +0.097954

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.570708
      logB = -5.633546
        t0 = +40.623309
        t1 = +nan
    T_rise = +45.487407
    T_fall = +0.097954

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.570708
      logB = -5.633546
        t0 = +40.623309
        t1 = +32.792974
    T_rise = +nan
    T_fall = +0.097954

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.570708
      logB = -5.633546
        t0 = +40.623309
        t1 = +32.792974
    T_rise = +45.487407
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.893306
      logB = -1.339342
        t0 = +4.090093
        t1 = +24.545123
    T_rise = +0.000432
    T_fall = +0.000710

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.848942
      logB = -1.382192
        t0 = +4.090093
        t1 = +24.364073
    T_rise = +0.000443
    T_fall = +0.002059

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.139245
      logB = -4.230999
        t0 = +63.218012
        t1 = +99.627091
    T_rise = +0.003109
    T_fall = +0.026931

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.334581
      logB = -2.618005
        t0 = +1.218765
        t1 = +55.981549
    T_rise = +0.000925
    T_fall = +0.000020

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.334581
      logB = -2.618005
        t0 = +1.218765
        t1 = +55.981549
    T_rise = +0.000925
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.049764
      logB = -11.509825
        t0 = +25.761705
        t1 = +33.002258
    T_rise = +0.001660
    T_fall = +0.025113

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.049764
      logB = -11.509825
        t0 = +25.761705
        t1 = +33.002258
    T_rise = +0.001660
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.018357
      logB = -8.955109
        t0 = +95.878591
        t1 = +41.234885
    T_rise = +0.122795
    T_fall = +0.000270

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.592645
      logB = -4.997312
        t0 = +66.319749
        t1 = +0.387820
    T_rise = +0.028984
    T_fall = +0.029955

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.567508
      logB = -4.944510
        t0 = +66.374883
        t1 = +0.829590
    T_rise = +0.056009
    T_fall = +0.056886

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -4.846068
      logB = -1.246718
        t0 = +66.870706
        t1 = +7.681039
    T_rise = +0.062296
    T_fall = +0.062146

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.139371
      logB = +4.568508
        t0 = +66.593962
        t1 = +85.176505
    T_rise = +0.089696
    T_fall = +0.090339

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.186410
      logB = +4.574061
        t0 = +66.594357
        t1 = +85.487219
    T_rise = +0.085686
    T_fall = +0.086252

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.593229
      logB = -4.559777
        t0 = +66.834150
        t1 = +66.897118
    T_rise = +0.081430
    T_fall = +0.079496

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.567019
      logB = -4.513443
        t0 = +66.798787
        t1 = +66.830575
    T_rise = +0.082715
    T_fall = +0.080894

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.969256
      logB = -5.373265
        t0 = +69.635772
        t1 = +76.665205
    T_rise = +0.097269
    T_fall = +0.087696

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -6.903049
      logB = +0.967243
        t0 = +66.698651
        t1 = +11.197857
    T_rise = +0.067212
    T_fall = +0.066998

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -6.916839
      logB = +1.043940
        t0 = +66.662265
        t1 = +10.971294
    T_rise = +0.085438
    T_fall = +0.085112

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -10.428463
      logB = +4.565005
        t0 = +66.309495
        t1 = +5.974779
    T_rise = +0.028052
    T_fall = +0.028549

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -10.448510
      logB = +4.566515
        t0 = +66.339396
        t1 = +6.090687
    T_rise = +0.035423
    T_fall = +0.035883

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -7.827834
      logB = +2.028768
        t0 = +66.631893
        t1 = +10.819276
    T_rise = +0.086366
    T_fall = +0.086119

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.316981
      logB = -7.961365
        t0 = +66.622353
        t1 = +83.911719
    T_rise = +0.083097
    T_fall = +0.083362

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.316024
      logB = -7.856902
        t0 = +66.621221
        t1 = +83.550189
    T_rise = +0.079959
    T_fall = +0.080226

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.704591
      logB = -3.934216
        t0 = +66.600608
        t1 = +71.997976
    T_rise = +0.005195
    T_fall = +0.003258

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.823826
      logB = -5.699985
        t0 = +66.782912
        t1 = +74.728729
    T_rise = +0.071503
    T_fall = +0.093804

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.950578
      logB = -5.521042
        t0 = +61.906237
        t1 = +74.016222
    T_rise = +0.072868
    T_fall = +0.069226

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -5.200577
      logB = -7.480983
        t0 = +50.166580
        t1 = +27.338435
    T_rise = +0.000983
    T_fall = +0.002028

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.447703
      logB = -6.646663
        t0 = +30.681858
        t1 = +97.051812
    T_rise = +0.001356
    T_fall = +0.042721

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.197092
      logB = +0.532397
        t0 = +0.771140
        t1 = +9.575576
    T_rise = +0.000004
    T_fall = +0.000001

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.855477
      logB = +0.716287
        t0 = +59.825844
        t1 = +69.636121
    T_rise = +0.038261
    T_fall = +0.062593

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.679502
      logB = +2.444987
        t0 = +66.449704
        t1 = +0.508552
    T_rise = +0.003385
    T_fall = +0.004099

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.895244
      logB = -1.337519
        t0 = +4.092972
        t1 = +32.859374
    T_rise = +0.003020
    T_fall = +0.000176

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.923569
      logB = -1.310159
        t0 = +4.094617
        t1 = +32.920889
    T_rise = +0.002090
    T_fall = +0.001008

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -2.172084
      logB = -4.044829
        t0 = +93.282957
        t1 = +21.889158
    T_rise = +0.040838
    T_fall = +0.040817

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.362407
      logB = -1.845171
        t0 = +4.088959
        t1 = +15.155246
    T_rise = +0.004954
    T_fall = +0.002289

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.944306
      logB = +1.647524
        t0 = +2.016004
        t1 = +65.022773
    T_rise = +0.000000
    T_fall = +0.000505

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.379170
      logB = -1.974469
        t0 = +36.160773
        t1 = +18.901167
    T_rise = +0.005881
    T_fall = +0.010439

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.911431
      logB = +4.395575
        t0 = +77.750916
        t1 = +70.223254
    T_rise = +0.022884
    T_fall = +0.101460

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.775812
      logB = -0.578612
        t0 = +28.368054
        t1 = +38.768996
    T_rise = +0.004421
    T_fall = +0.021972

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.933122
      logB = +1.630945
        t0 = +5.550458
        t1 = +4.400296
    T_rise = +0.000145
    T_fall = +0.000483

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.354240
      logB = -10.491932
        t0 = +33.548868
        t1 = +95.062609
    T_rise = +0.014688
    T_fall = +0.000975

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.485049
      logB = -4.975798
        t0 = +58.403218
        t1 = +61.088006
    T_rise = +0.012652
    T_fall = +0.004257

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.576532
      logB = -9.853636
        t0 = +17.917667
        t1 = +99.999966
    T_rise = +0.007374
    T_fall = +0.004972

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.841936
      logB = +2.213654
        t0 = +79.631160
        t1 = +61.886057
    T_rise = +0.092066
    T_fall = +0.092509

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.763729
      logB = +4.268667
        t0 = +2.041357
        t1 = +5.252108
    T_rise = +0.000440
    T_fall = +0.000008

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.907509
      logB = -1.427944
        t0 = +2.043425
        t1 = +4.208584
    T_rise = +0.000351
    T_fall = +0.000137

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.907509
      logB = -1.427944
        t0 = +2.043425
        t1 = +4.208584
    T_rise = +0.000351
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.326516
      logB = -5.836498
        t0 = +69.967319
        t1 = +7.024764
    T_rise = +0.061671
    T_fall = +0.009865

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -11.511240
      logB = +3.141795
        t0 = +93.459538
        t1 = +77.673535
    T_rise = +0.097858
    T_fall = +0.076927

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.930055
      logB = -10.662425
        t0 = +98.977873
        t1 = +1.491489
    T_rise = +0.086340
    T_fall = +0.062827

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -4.335357
      logB = -7.682108
        t0 = +37.503944
        t1 = +36.920949
    T_rise = +0.000004
    T_fall = +0.047703

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.693813
      logB = -7.098248
        t0 = +65.794866
        t1 = +3.760267
    T_rise = +0.002602
    T_fall = +0.004299

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -4.345760
      logB = -7.740640
        t0 = +3.788920
        t1 = +2.413635
    T_rise = +0.000100
    T_fall = +0.004531

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -4.345760
      logB = -7.740640
        t0 = +3.788920
        t1 = +2.413635
    T_rise = +0.000100
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.111126
      logB = -11.506824
        t0 = +57.386536
        t1 = +59.517440
    T_rise = +0.041635
    T_fall = +0.004536

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.940053
      logB = +0.359060
        t0 = +96.496101
        t1 = +73.333382
    T_rise = +0.115450
    T_fall = +0.054324

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.337305
      logB = -10.799402
        t0 = +59.748943
        t1 = +47.924772
    T_rise = +0.036183
    T_fall = +0.072271

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.907201
      logB = -3.223086
        t0 = +12.581187
        t1 = +60.515583
    T_rise = +0.000127
    T_fall = +0.000196

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -2.271807
      logB = -4.269205
        t0 = +39.436399
        t1 = +56.808890
    T_rise = +0.015768
    T_fall = +0.000007

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -2.763744
      logB = -4.749076
        t0 = +38.704697
        t1 = +56.493067
    T_rise = +0.020388
    T_fall = +0.013738

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.756028
      logB = -2.707126
        t0 = +59.532257
        t1 = +14.821247
    T_rise = +0.072812
    T_fall = +0.072762

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -9.995145
      logB = -1.372253
        t0 = +56.839997
        t1 = +81.452103
    T_rise = +0.075808
    T_fall = +0.066992

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.557541
      logB = -1.104583
        t0 = +59.456439
        t1 = +62.843091
    T_rise = +0.080237
    T_fall = +0.080409

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -2.145838
      logB = +1.723901
        t0 = +1.893379
        t1 = +99.817839
    T_rise = +0.002489
    T_fall = +0.000660

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.873694
      logB = -2.918704
        t0 = +96.396722
        t1 = +3.111286
    T_rise = +0.004010
    T_fall = +0.000283

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.787740
      logB = -8.523574
        t0 = +69.728450
        t1 = +87.867606
    T_rise = +0.004551
    T_fall = +0.002261

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.910270
      logB = -4.113957
        t0 = +71.457556
        t1 = +66.578931
    T_rise = +0.098899
    T_fall = +0.099367

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -3.533668
      logB = -4.362465
        t0 = +76.423906
        t1 = +2.295373
    T_rise = +0.044359
    T_fall = +0.022192

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.196875
      logB = -0.586606
        t0 = +99.996614
        t1 = +1.042420
    T_rise = +0.008942
    T_fall = +0.027245

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.506354
      logB = -3.707483
        t0 = +98.293931
        t1 = +8.682435
    T_rise = +0.000116
    T_fall = +0.033389

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -5.808215
      logB = -9.714732
        t0 = +62.981398
        t1 = +30.515456
    T_rise = +0.000615
    T_fall = +0.002948

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.471959
      logB = -10.695798
        t0 = +99.624254
        t1 = +12.671712
    T_rise = +0.006356
    T_fall = +0.013417

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.545091
      logB = +4.386140
        t0 = +15.985891
        t1 = +76.910264
    T_rise = +0.006702
    T_fall = +0.010311

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.288805
      logB = +1.271662
        t0 = +97.915115
        t1 = +99.218173
    T_rise = +0.025013
    T_fall = +0.026081

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -4.156894
      logB = -3.081134
        t0 = +5.039912
        t1 = +98.874716
    T_rise = +0.001517
    T_fall = +0.001430

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.396928
      logB = +1.886852
        t0 = +95.598071
        t1 = +93.172778
    T_rise = +0.035359
    T_fall = +0.033020

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -11.317459
      logB = -11.207610
        t0 = +94.767093
        t1 = +88.427475
    T_rise = +0.037415
    T_fall = +0.094206

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -2.467003
      logB = +2.018235
        t0 = +39.351311
        t1 = +6.732643
    T_rise = +0.011588
    T_fall = +0.003688

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -11.331549
      logB = -10.264933
        t0 = +73.066616
        t1 = +1.314939
    T_rise = +0.087632
    T_fall = +0.075839

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -4.391776
      logB = -0.821439
        t0 = +70.319099
        t1 = +96.181554
    T_rise = +0.000848
    T_fall = +0.099070

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.057093
      logB = +0.002983
        t0 = +74.635100
        t1 = +0.129413
    T_rise = +0.038283
    T_fall = +0.000394

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -7.887681
      logB = +2.369070
        t0 = +94.377763
        t1 = +0.000033
    T_rise = +0.008421
    T_fall = +0.001497

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.809048
      logB = +0.079595
        t0 = +38.789326
        t1 = +99.867247
    T_rise = +0.007607
    T_fall = +0.016417

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -5.135727
      logB = +4.348558
        t0 = +57.393086
        t1 = +91.398279
    T_rise = +0.040176
    T_fall = +0.006736

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.930300
      logB = -1.790680
        t0 = +94.245326
        t1 = +40.628230
    T_rise = +0.052209
    T_fall = +0.000359

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.819032
      logB = +1.456328
        t0 = +57.733292
        t1 = +85.629698
    T_rise = +0.053084
    T_fall = +0.015166

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.833144
      logB = +0.547425
        t0 = +93.681110
        t1 = +5.068501
    T_rise = +0.053523
    T_fall = +0.086541

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.410086
      logB = -8.561586
        t0 = +52.430518
        t1 = +1.948696
    T_rise = +0.071304
    T_fall = +0.030635

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.537336
      logB = -9.196910
        t0 = +53.880880
        t1 = +66.689275
    T_rise = +0.037608
    T_fall = +0.042498

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.287944
      logB = +0.034145
        t0 = +83.463448
        t1 = +83.371516
    T_rise = +0.001498
    T_fall = +0.093234

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.781054
      logB = -0.646418
        t0 = +46.250090
        t1 = +41.812763
    T_rise = +0.027950
    T_fall = +0.029420

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.981760
      logB = -9.679055
        t0 = +95.436901
        t1 = +95.779333
    T_rise = +0.117409
    T_fall = +0.014501

  m.migrad()
198 objects fitted
Time taken is 1.74 minutes
Fitting supernova models...
Models fitted.
Created classifier of type:
SVC(C=1.0, cache_size=200, class_weight=None, coef0=0.0,
  decision_function_shape=None, degree=3, gamma='auto', kernel='rbf',
  max_iter=-1, probability=True, random_state=None, shrinking=True,
  tol=0.001, verbose=False)

Optimised parameters: {'C': 100000.0, 'gamma': 0.0031622776601683794}

WARNING: Upper boundary on parameter C may be too low. Optimum may not have been reached.

Reading data...
23 objects read into memory.
Reading data...
198 objects read into memory.
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -4.797545
      logB = +4.479964
        t0 = +38.357636
        t1 = +72.373977
    T_rise = +0.008908
    T_fall = +0.008553

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.336669
      logB = +2.094021
        t0 = +27.457292
        t1 = +12.299085
    T_rise = +0.025949
    T_fall = +0.005191

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.447328
      logB = -9.113747
        t0 = +0.725396
        t1 = +10.013857
    T_rise = +0.000636
    T_fall = +0.000008

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -9.236133
      logB = +3.600254
        t0 = +66.596273
        t1 = +7.963700
    T_rise = +0.084750
    T_fall = +0.084566

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.386711
      logB = -9.036002
        t0 = +44.136081
        t1 = +87.629687
    T_rise = +0.030517
    T_fall = +0.035569

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -5.503606
      logB = +4.191747
        t0 = +42.543287
        t1 = +82.490267
    T_rise = +0.000284
    T_fall = +0.023039

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -2.651123
      logB = +3.103920
        t0 = +20.874428
        t1 = +93.115112
    T_rise = +0.001099
    T_fall = +0.000141

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -2.764808
      logB = -7.273650
        t0 = +36.733370
        t1 = +6.137860
    T_rise = +0.001726
    T_fall = +0.014173

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -9.818945
      logB = -6.836795
        t0 = +99.979023
        t1 = +36.837919
    T_rise = +0.101392
    T_fall = +0.005747

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.879899
      logB = -1.314499
        t0 = +97.522858
        t1 = +8.273487
    T_rise = +0.000256
    T_fall = +0.127404

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.789570
      logB = -2.953921
        t0 = +4.126311
        t1 = +78.564015
    T_rise = +0.002138
    T_fall = +0.004916

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.789570
      logB = -2.953921
        t0 = +4.126311
        t1 = +78.564015
    T_rise = +0.002138
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.370178
      logB = +0.383339
        t0 = +98.038992
        t1 = +10.276959
    T_rise = +0.009607
    T_fall = +0.031337

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -10.411915
      logB = -7.697370
        t0 = +18.848692
        t1 = +59.262443
    T_rise = +0.014064
    T_fall = +0.003826

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.968355
      logB = -9.405118
        t0 = +58.249278
        t1 = +1.668640
    T_rise = +0.008040
    T_fall = +0.000105

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -5.046851
      logB = -2.917338
        t0 = +96.732889
        t1 = +0.000009
    T_rise = +0.135786
    T_fall = +0.134218

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.847680
      logB = +0.717658
        t0 = +6.461953
        t1 = +19.421722
    T_rise = +0.001570
    T_fall = +0.000001

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.738778
      logB = +0.457569
        t0 = +5.008234
        t1 = +29.205140
    T_rise = +0.000465
    T_fall = +0.006947

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.505968
      logB = +1.215094
        t0 = +5.008123
        t1 = +3.813602
    T_rise = +0.000495
    T_fall = +0.006178

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.505968
      logB = +1.215094
        t0 = +5.008123
        t1 = +3.813602
    T_rise = +0.000495
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -4.954520
      logB = +1.036078
        t0 = +98.485621
        t1 = +10.697102
    T_rise = +0.041730
    T_fall = +0.022562

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.065157
      logB = -6.072435
        t0 = +70.062894
        t1 = +74.151769
    T_rise = +0.016245
    T_fall = +0.006956

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -9.991519
      logB = +3.495433
        t0 = +27.907248
        t1 = +26.012871
    T_rise = +0.008479
    T_fall = +0.020526

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.330284
      logB = +2.263013
        t0 = +70.936825
        t1 = +94.612925
    T_rise = +0.000000
    T_fall = +0.100959

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -11.499413
      logB = -4.058375
        t0 = +26.182444
        t1 = +4.451552
    T_rise = +0.018861
    T_fall = +0.018889

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.755861
      logB = +2.055293
        t0 = +97.304693
        t1 = +99.407282
    T_rise = +0.020192
    T_fall = +0.034836

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.850703
      logB = -10.090766
        t0 = +87.621443
        t1 = +77.161820
    T_rise = +0.003742
    T_fall = +0.000334

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.459838
      logB = -1.983367
        t0 = +25.187666
        t1 = +72.833230
    T_rise = +0.007216
    T_fall = +0.001473

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.454156
      logB = -1.988706
        t0 = +25.202060
        t1 = +72.692792
    T_rise = +0.000435
    T_fall = +0.026139

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.736663
      logB = +0.455470
        t0 = +5.004481
        t1 = +29.606628
    T_rise = +0.000051
    T_fall = +0.005743

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.739585
      logB = +0.458336
        t0 = +5.004481
        t1 = +29.619796
    T_rise = +0.000053
    T_fall = +0.006064

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.739585
      logB = +0.458336
        t0 = +5.004481
        t1 = +29.619796
    T_rise = +0.000053
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.886312
      logB = -1.500921
        t0 = +69.812411
        t1 = +1.208259
    T_rise = +0.001548
    T_fall = +0.046341

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.092592
      logB = +1.101207
        t0 = +54.394828
        t1 = +72.762281
    T_rise = +0.000001
    T_fall = +0.007380

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.472122
      logB = -11.118334
        t0 = +88.908771
        t1 = +76.474950
    T_rise = +0.023060
    T_fall = +0.024236

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.588099
      logB = -8.654234
        t0 = +63.326370
        t1 = +0.187025
    T_rise = +0.000958
    T_fall = +0.004201

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.806396
      logB = -6.583705
        t0 = +58.158676
        t1 = +0.000869
    T_rise = +0.075723
    T_fall = +0.069901

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -3.417392
      logB = +1.272092
        t0 = +92.898494
        t1 = +57.190611
    T_rise = +0.000957
    T_fall = +0.066753

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.318506
      logB = -0.924760
        t0 = +91.993630
        t1 = +21.514186
    T_rise = +0.002758
    T_fall = +0.055450

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.527982
      logB = +4.086322
        t0 = +6.541718
        t1 = +90.939352
    T_rise = +0.000516
    T_fall = +0.003152

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.066703
      logB = -1.164720
        t0 = +4.133569
        t1 = +18.464759
    T_rise = +0.001003
    T_fall = +0.004888

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.935241
      logB = -1.322352
        t0 = +95.157177
        t1 = +98.012500
    T_rise = +0.120230
    T_fall = +0.068094

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.745505
      logB = +2.443111
        t0 = +13.090022
        t1 = +8.319453
    T_rise = +0.000001
    T_fall = +0.002470

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.083417
      logB = -1.148684
        t0 = +4.107524
        t1 = +18.753956
    T_rise = +0.002776
    T_fall = +0.003769

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.690695
      logB = +2.388532
        t0 = +13.090004
        t1 = +8.790790
    T_rise = +0.000000
    T_fall = +0.004145

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.320813
      logB = +1.999769
        t0 = +26.027020
        t1 = +26.555343
    T_rise = +0.000242
    T_fall = +0.021505

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.058621
      logB = +2.357019
        t0 = +90.609600
        t1 = +99.936991
    T_rise = +0.015338
    T_fall = +0.104136

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.169370
      logB = -1.256830
        t0 = +39.849081
        t1 = +62.932211
    T_rise = +0.051339
    T_fall = +0.008818

  m.migrad()
198 objects fitted
Time taken is 45.47 seconds
Fitting supernova models...
Models fitted.
Created classifier of type:
SVC(C=1.0, cache_size=200, class_weight=None, coef0=0.0,
  decision_function_shape=None, degree=3, gamma='auto', kernel='rbf',
  max_iter=-1, probability=True, random_state=None, shrinking=True,
  tol=0.001, verbose=False)

Optimised parameters: {'C': 31.622776601683793, 'gamma': 0.0031622776601683794}
Reading data...
23 objects read into memory.
Reading data...
198 objects read into memory.
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.626119
      logB = -9.396600
        t0 = +99.833773
        t1 = +74.321925
    T_rise = +0.000188
    T_fall = +0.016982

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.142306
      logB = -9.853764
        t0 = +52.503726
        t1 = +22.838627
    T_rise = +0.038968
    T_fall = +0.039453

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -6.139505
      logB = +0.057855
        t0 = +66.393442
        t1 = +22.885727
    T_rise = +0.012448
    T_fall = +0.000057

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.615180
      logB = -1.604803
        t0 = +4.088500
        t1 = +18.720095
    T_rise = +0.002859
    T_fall = +0.000073

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.745201
      logB = -1.480859
        t0 = +92.467338
        t1 = +19.546719
    T_rise = +0.000000
    T_fall = +0.026694

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.841106
      logB = -11.512925
        t0 = +70.821914
        t1 = +86.693484
    T_rise = +0.092934
    T_fall = +0.002316

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.841106
      logB = -11.512925
        t0 = +70.821914
        t1 = +86.693484
    T_rise = +0.092934
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.717189
      logB = +0.452265
        t0 = +58.768895
        t1 = +58.926161
    T_rise = +0.000006
    T_fall = +0.000144

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.216293
      logB = +1.314104
        t0 = +72.287049
        t1 = +77.458463
    T_rise = +0.000001
    T_fall = +0.012556

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.478530
      logB = -1.742222
        t0 = +16.389493
        t1 = +58.496437
    T_rise = +0.018934
    T_fall = +0.000607

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.274586
      logB = -1.941796
        t0 = +4.098978
        t1 = +45.472296
    T_rise = +0.000640
    T_fall = +0.003055

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.274586
      logB = -1.941796
        t0 = +4.098978
        t1 = +45.472296
    T_rise = +0.000640
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.853218
      logB = -1.378284
        t0 = +4.071097
        t1 = +31.210238
    T_rise = +0.002815
    T_fall = +0.003006

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.931210
      logB = -1.302970
        t0 = +4.085249
        t1 = +31.432566
    T_rise = +0.002280
    T_fall = +0.004310

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.960367
      logB = -1.275180
        t0 = +4.094674
        t1 = +32.882676
    T_rise = +0.001545
    T_fall = +0.000006

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.496530
      logB = -1.718281
        t0 = +3.958537
        t1 = +25.300439
    T_rise = +0.003599
    T_fall = +0.003353

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -2.920647
      logB = -2.944126
        t0 = +72.679334
        t1 = +0.609981
    T_rise = +0.005287
    T_fall = +0.061041

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -7.325279
      logB = +4.198536
        t0 = +53.969287
        t1 = +42.860455
    T_rise = +0.074254
    T_fall = +0.074063

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.394572
      logB = -2.304048
        t0 = +47.899793
        t1 = +8.166234
    T_rise = +0.004890
    T_fall = +0.009140

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.596982
      logB = -4.391112
        t0 = +46.482702
        t1 = +10.026745
    T_rise = +0.016162
    T_fall = +0.000515

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.632155
      logB = -4.436171
        t0 = +96.682677
        t1 = +79.380831
    T_rise = +0.000685
    T_fall = +0.050691

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -7.290812
      logB = +2.576765
        t0 = +38.533649
        t1 = +49.170660
    T_rise = +0.000765
    T_fall = +0.029409

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.984247
      logB = -4.168126
        t0 = +74.867827
        t1 = +90.824935
    T_rise = +0.029449
    T_fall = +0.003679

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -10.073454
      logB = -10.869806
        t0 = +73.630523
        t1 = +21.114161
    T_rise = +0.031039
    T_fall = +0.004578

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -7.943491
      logB = -8.167764
        t0 = +86.515713
        t1 = +0.011384
    T_rise = +0.000786
    T_fall = +0.010735

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.979060
      logB = -8.933233
        t0 = +51.488713
        t1 = +87.418062
    T_rise = +0.016066
    T_fall = +0.037621

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.153251
      logB = -4.416729
        t0 = +42.731364
        t1 = +9.945677
    T_rise = +0.016066
    T_fall = +0.030047

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = -3.226158
        t0 = +44.800074
        t1 = +2.059128
    T_rise = +94.937670
    T_fall = +0.106995

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -7.245825
      logB = +nan
        t0 = +44.800074
        t1 = +2.059128
    T_rise = +94.937670
    T_fall = +0.106995

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -7.245825
      logB = -3.226158
        t0 = +nan
        t1 = +2.059128
    T_rise = +94.937670
    T_fall = +0.106995

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -7.245825
      logB = -3.226158
        t0 = +44.800074
        t1 = +nan
    T_rise = +94.937670
    T_fall = +0.106995

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -7.245825
      logB = -3.226158
        t0 = +44.800074
        t1 = +2.059128
    T_rise = +nan
    T_fall = +0.106995

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -7.245825
      logB = -3.226158
        t0 = +44.800074
        t1 = +2.059128
    T_rise = +94.937670
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.128227
      logB = -11.500752
        t0 = +82.724240
        t1 = +0.932120
    T_rise = +0.000386
    T_fall = +0.055106

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = -3.226158
        t0 = +44.800074
        t1 = +2.059128
    T_rise = +94.937670
    T_fall = +0.106995

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -7.245825
      logB = +nan
        t0 = +44.800074
        t1 = +2.059128
    T_rise = +94.937670
    T_fall = +0.106995

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -7.245825
      logB = -3.226158
        t0 = +nan
        t1 = +2.059128
    T_rise = +94.937670
    T_fall = +0.106995

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -7.245825
      logB = -3.226158
        t0 = +44.800074
        t1 = +nan
    T_rise = +94.937670
    T_fall = +0.106995

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -7.245825
      logB = -3.226158
        t0 = +44.800074
        t1 = +2.059128
    T_rise = +nan
    T_fall = +0.106995

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -7.245825
      logB = -3.226158
        t0 = +44.800074
        t1 = +2.059128
    T_rise = +94.937670
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.192603
      logB = -10.195628
        t0 = +88.946241
        t1 = +1.531244
    T_rise = +0.110238
    T_fall = +0.066736

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.684071
      logB = +0.403978
        t0 = +5.034985
        t1 = +28.936282
    T_rise = +0.000224
    T_fall = +0.003746

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.723844
      logB = +0.442974
        t0 = +5.041988
        t1 = +29.165295
    T_rise = +0.003937
    T_fall = +0.006065

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.725671
      logB = +0.444765
        t0 = +5.042551
        t1 = +29.176929
    T_rise = +0.004405
    T_fall = +0.007072

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.690580
      logB = +2.388413
        t0 = +13.090002
        t1 = +8.791899
    T_rise = +0.000000
    T_fall = +0.004172

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.629413
      logB = -0.619355
        t0 = +9.036298
        t1 = +19.823519
    T_rise = +0.001505
    T_fall = +0.010145

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.570085
      logB = -0.676654
        t0 = +8.979472
        t1 = +19.505017
    T_rise = +0.001215
    T_fall = +0.002565

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.901499
      logB = -2.121098
        t0 = +0.935814
        t1 = +22.389096
    T_rise = +0.000011
    T_fall = +0.000382

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.975097
      logB = -0.647352
        t0 = +13.236273
        t1 = +16.124853
    T_rise = +0.000437
    T_fall = +0.010435

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.365239
      logB = -10.410813
        t0 = +18.903017
        t1 = +33.093825
    T_rise = +0.001085
    T_fall = +0.000946

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.091185
      logB = -1.140994
        t0 = +3.984495
        t1 = +17.161884
    T_rise = +0.003186
    T_fall = +0.000414

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.680609
      logB = +2.378501
        t0 = +13.090001
        t1 = +8.877971
    T_rise = +0.000007
    T_fall = +0.007274

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.832778
      logB = +4.226451
        t0 = +15.948178
        t1 = +23.965632
    T_rise = +0.000138
    T_fall = +0.000032

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.912402
      logB = -2.104616
        t0 = +0.935073
        t1 = +22.316809
    T_rise = +0.000001
    T_fall = +0.000507

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.629930
      logB = -0.618851
        t0 = +9.036453
        t1 = +19.826208
    T_rise = +0.001535
    T_fall = +0.010270

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.568601
      logB = -0.678098
        t0 = +8.978132
        t1 = +19.497370
    T_rise = +0.001299
    T_fall = +0.003115

  m.migrad()
198 objects fitted
Time taken is 35.03 seconds
Fitting supernova models...
Models fitted.
Created classifier of type:
SVC(C=1.0, cache_size=200, class_weight=None, coef0=0.0,
  decision_function_shape=None, degree=3, gamma='auto', kernel='rbf',
  max_iter=-1, probability=True, random_state=None, shrinking=True,
  tol=0.001, verbose=False)

Optimised parameters: {'C': 31.622776601683793, 'gamma': 0.0031622776601683794}
Reading data...
23 objects read into memory.
Reading data...
198 objects read into memory.
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.563346
      logB = -8.980483
        t0 = +78.851096
        t1 = +79.510604
    T_rise = +0.104123
    T_fall = +0.104137

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.614186
      logB = -9.137316
        t0 = +85.878615
        t1 = +82.510067
    T_rise = +0.120632
    T_fall = +0.120655

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -4.680163
      logB = -2.225833
        t0 = +47.840520
        t1 = +0.011638
    T_rise = +0.020960
    T_fall = +0.016860

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -2.968800
      logB = -2.368307
        t0 = +50.412383
        t1 = +0.008614
    T_rise = +0.032632
    T_fall = +0.042585

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.945324
      logB = +1.648533
        t0 = +2.016007
        t1 = +65.025941
    T_rise = +0.000001
    T_fall = +0.000794

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.944783
      logB = +1.647997
        t0 = +2.016005
        t1 = +65.039140
    T_rise = +0.000001
    T_fall = +0.000693

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.690204
      logB = -2.384435
        t0 = +53.991550
        t1 = +50.806891
    T_rise = +0.034278
    T_fall = +0.023558

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.959722
      logB = -11.401344
        t0 = +91.657733
        t1 = +97.834713
    T_rise = +0.085078
    T_fall = +0.101744

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.946161
      logB = +1.649369
        t0 = +2.016004
        t1 = +65.118983
    T_rise = +0.000000
    T_fall = +0.001781

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.912713
      logB = -1.320610
        t0 = +4.094916
        t1 = +32.663198
    T_rise = +0.003779
    T_fall = +0.000602

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -7.076591
      logB = -8.718261
        t0 = +2.016000
        t1 = +25.475826
    T_rise = +0.000000
    T_fall = +0.000928

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.728324
      logB = +4.546421
        t0 = +95.521172
        t1 = +0.872479
    T_rise = +0.004727
    T_fall = +0.006465

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -11.313366
      logB = +4.102348
        t0 = +67.868408
        t1 = +13.295655
    T_rise = +0.011339
    T_fall = +0.094701

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -4.076033
      logB = +4.598824
        t0 = +34.520433
        t1 = +30.413554
    T_rise = +0.047773
    T_fall = +0.026028

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.798129
      logB = -0.570281
        t0 = +35.553539
        t1 = +77.586859
    T_rise = +0.038349
    T_fall = +0.000997

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.244520
      logB = +0.979813
        t0 = +71.610878
        t1 = +68.783561
    T_rise = +0.098885
    T_fall = +0.101808

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.244425
      logB = +0.979730
        t0 = +71.612223
        t1 = +68.782733
    T_rise = +0.098425
    T_fall = +0.101325

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.016886
      logB = -2.453662
        t0 = +36.589358
        t1 = +36.031717
    T_rise = +0.040753
    T_fall = +0.004469

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.737992
      logB = +0.456772
        t0 = +5.004901
        t1 = +29.606576
    T_rise = +0.001336
    T_fall = +0.006534

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.732557
      logB = +0.451442
        t0 = +5.004835
        t1 = +29.581977
    T_rise = +0.000388
    T_fall = +0.003757

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.704933
      logB = +0.424347
        t0 = +5.004832
        t1 = +29.457502
    T_rise = +0.000338
    T_fall = +0.001670

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.710459
      logB = +0.429767
        t0 = +5.004831
        t1 = +29.482354
    T_rise = +0.000335
    T_fall = +0.000418

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.353959
      logB = +4.066907
        t0 = +5.006758
        t1 = +98.770346
    T_rise = +0.005766
    T_fall = +0.001583

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.577114
      logB = -5.602446
        t0 = +55.593205
        t1 = +43.282665
    T_rise = +0.003370
    T_fall = +0.016458

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.950317
      logB = +1.359329
        t0 = +85.837671
        t1 = +96.357592
    T_rise = +0.015987
    T_fall = +0.048420

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -5.579475
      logB = +2.090544
        t0 = +29.206198
        t1 = +4.741199
    T_rise = +0.025561
    T_fall = +0.025522

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.841563
      logB = +4.336789
        t0 = +27.855007
        t1 = +53.460216
    T_rise = +0.000000
    T_fall = +0.021052

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.545730
      logB = +4.509282
        t0 = +82.789678
        t1 = +6.947382
    T_rise = +0.001551
    T_fall = +0.024781

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.801041
      logB = -2.269030
        t0 = +0.941986
        t1 = +23.009424
    T_rise = +0.000679
    T_fall = +0.000066

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.128474
      logB = -1.105222
        t0 = +4.136134
        t1 = +18.787905
    T_rise = +0.000757
    T_fall = +0.002330

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.466370
      logB = +3.401885
        t0 = +32.787837
        t1 = +65.044833
    T_rise = +0.036374
    T_fall = +0.016514

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.128770
      logB = -1.104959
        t0 = +4.082709
        t1 = +18.789911
    T_rise = +0.005652
    T_fall = +0.002384

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.068409
      logB = -1.162938
        t0 = +4.137318
        t1 = +17.024534
    T_rise = +0.004404
    T_fall = +0.004716

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.078634
      logB = -1.153084
        t0 = +4.137317
        t1 = +17.057569
    T_rise = +0.004146
    T_fall = +0.002112

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.126672
      logB = -1.106771
        t0 = +4.137309
        t1 = +17.216741
    T_rise = +0.003919
    T_fall = +0.003665

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.073058
      logB = -1.158458
        t0 = +4.137318
        t1 = +17.039158
    T_rise = +0.004174
    T_fall = +0.003399

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.303895
      logB = -0.932770
        t0 = +18.985447
        t1 = +21.329708
    T_rise = +0.013496
    T_fall = +0.012724

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.303999
      logB = -0.932669
        t0 = +18.983693
        t1 = +21.330881
    T_rise = +0.010969
    T_fall = +0.012711

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.690487
      logB = +2.388330
        t0 = +13.090053
        t1 = +8.792472
    T_rise = +0.000001
    T_fall = +0.004204

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.911672
      logB = -2.105717
        t0 = +0.935124
        t1 = +22.321635
    T_rise = +0.000001
    T_fall = +0.000498

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.895015
      logB = -2.130873
        t0 = +0.936244
        t1 = +22.431702
    T_rise = +0.000023
    T_fall = +0.000316

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.629896
      logB = -0.618883
        t0 = +9.036443
        t1 = +19.826034
    T_rise = +0.001533
    T_fall = +0.010262

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.568698
      logB = -0.678003
        t0 = +8.978219
        t1 = +19.497869
    T_rise = +0.001293
    T_fall = +0.003078

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.842470
      logB = -2.208961
        t0 = +0.939550
        t1 = +22.763723
    T_rise = +0.000280
    T_fall = +0.000012

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.872691
      logB = -2.164299
        t0 = +0.937685
        t1 = +22.575617
    T_rise = +0.000098
    T_fall = +0.000137

  m.migrad()
198 objects fitted
Time taken is 30.77 seconds
Fitting supernova models...
Models fitted.
Created classifier of type:
SVC(C=1.0, cache_size=200, class_weight=None, coef0=0.0,
  decision_function_shape=None, degree=3, gamma='auto', kernel='rbf',
  max_iter=-1, probability=True, random_state=None, shrinking=True,
  tol=0.001, verbose=False)

Optimised parameters: {'C': 31.622776601683793, 'gamma': 0.0031622776601683794}
Reading data...
23 objects read into memory.
Reading data...
198 objects read into memory.
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.466230
      logB = +4.601536
        t0 = +57.755412
        t1 = +22.639982
    T_rise = +0.003844
    T_fall = +0.006123

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -7.622085
      logB = +3.179097
        t0 = +89.797422
        t1 = +8.121682
    T_rise = +0.005211
    T_fall = +0.061214

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.553573
      logB = -4.056697
        t0 = +98.314030
        t1 = +88.700789
    T_rise = +0.117635
    T_fall = +0.105613

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.999489
      logB = -1.237315
        t0 = +4.093492
        t1 = +32.605713
    T_rise = +0.000957
    T_fall = +0.005724

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.283633
      logB = -2.629121
        t0 = +95.546411
        t1 = +8.207482
    T_rise = +0.014368
    T_fall = +0.000037

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.881811
      logB = -1.350480
        t0 = +4.011874
        t1 = +32.456901
    T_rise = +0.002321
    T_fall = +0.000565

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.505675
      logB = -11.461795
        t0 = +94.567988
        t1 = +19.698081
    T_rise = +0.001187
    T_fall = +0.113247

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.450332
      logB = -1.373686
        t0 = +91.321091
        t1 = +63.897884
    T_rise = +0.003005
    T_fall = +0.008824

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.359950
      logB = -11.247862
        t0 = +50.273950
        t1 = +71.488145
    T_rise = +0.022820
    T_fall = +0.014053

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.961028
      logB = -6.870282
        t0 = +47.225850
        t1 = +1.884787
    T_rise = +0.001507
    T_fall = +0.002379

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.613581
      logB = -2.770254
        t0 = +4.077052
        t1 = +3.770799
    T_rise = +0.004355
    T_fall = +0.004029

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -10.277416
      logB = -0.506294
        t0 = +92.471960
        t1 = +65.305886
    T_rise = +0.005044
    T_fall = +0.004280

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.953951
      logB = -2.982535
        t0 = +93.100041
        t1 = +15.035799
    T_rise = +0.131107
    T_fall = +0.130380

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.782177
      logB = -3.598676
        t0 = +28.271262
        t1 = +0.314187
    T_rise = +0.021626
    T_fall = +0.012843

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.635643
      logB = -1.494683
        t0 = +57.402366
        t1 = +60.902577
    T_rise = +0.053163
    T_fall = +0.030117

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.900969
      logB = +2.137830
        t0 = +74.129723
        t1 = +99.703664
    T_rise = +0.083317
    T_fall = +0.000344

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = -4.382174
        t0 = +95.291881
        t1 = +46.585265
    T_rise = +2.889924
    T_fall = +0.213379

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.698544
      logB = +nan
        t0 = +95.291881
        t1 = +46.585265
    T_rise = +2.889924
    T_fall = +0.213379

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.698544
      logB = -4.382174
        t0 = +nan
        t1 = +46.585265
    T_rise = +2.889924
    T_fall = +0.213379

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.698544
      logB = -4.382174
        t0 = +95.291881
        t1 = +nan
    T_rise = +2.889924
    T_fall = +0.213379

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.698544
      logB = -4.382174
        t0 = +95.291881
        t1 = +46.585265
    T_rise = +nan
    T_fall = +0.213379

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.698544
      logB = -4.382174
        t0 = +95.291881
        t1 = +46.585265
    T_rise = +2.889924
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -2.977507
      logB = -5.512720
        t0 = +99.910231
        t1 = +0.122807
    T_rise = +0.016229
    T_fall = +0.010555

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.902611
      logB = -10.133374
        t0 = +11.672507
        t1 = +99.475990
    T_rise = +0.010405
    T_fall = +0.000001

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.900629
      logB = -2.122426
        t0 = +0.935869
        t1 = +22.394957
    T_rise = +0.000013
    T_fall = +0.000373

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.629370
      logB = -0.619396
        t0 = +9.036285
        t1 = +19.823296
    T_rise = +0.001503
    T_fall = +0.010135

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.570205
      logB = -0.676537
        t0 = +8.979582
        t1 = +19.505638
    T_rise = +0.001209
    T_fall = +0.002522

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.919435
      logB = -2.093914
        t0 = +0.934591
        t1 = +22.269413
    T_rise = +0.000001
    T_fall = +0.000596

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.832973
      logB = -2.222871
        t0 = +0.940114
        t1 = +22.821424
    T_rise = +0.000356
    T_fall = +0.000001

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.873270
      logB = -2.163429
        t0 = +0.937650
        t1 = +22.571871
    T_rise = +0.000096
    T_fall = +0.000140

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.772198
      logB = -2.310044
        t0 = +0.943626
        t1 = +23.172790
    T_rise = +0.001059
    T_fall = +0.000266

  m.migrad()
198 objects fitted
Time taken is 29.92 seconds
Fitting supernova models...
Models fitted.
Created classifier of type:
SVC(C=1.0, cache_size=200, class_weight=None, coef0=0.0,
  decision_function_shape=None, degree=3, gamma='auto', kernel='rbf',
  max_iter=-1, probability=True, random_state=None, shrinking=True,
  tol=0.001, verbose=False)

Optimised parameters: {'C': 31.622776601683793, 'gamma': 0.0031622776601683794}
Reading data...
23 objects read into memory.
Reading data...
198 objects read into memory.
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.608292
      logB = -6.963711
        t0 = +94.012678
        t1 = +71.959565
    T_rise = +0.007060
    T_fall = +0.000639

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.608612
      logB = -0.081954
        t0 = +5.027626
        t1 = +22.433800
    T_rise = +0.002821
    T_fall = +0.002244

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.883108
      logB = +0.599646
        t0 = +16.798445
        t1 = +5.400769
    T_rise = +0.000995
    T_fall = +0.010769

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.860658
      logB = -1.370932
        t0 = +4.075306
        t1 = +33.203097
    T_rise = +0.005014
    T_fall = +0.005612

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.872640
      logB = -1.359367
        t0 = +4.076080
        t1 = +33.232530
    T_rise = +0.005422
    T_fall = +0.003200

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.865566
      logB = -1.366195
        t0 = +4.075221
        t1 = +33.214654
    T_rise = +0.005021
    T_fall = +0.004531

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.105054
      logB = +2.261343
        t0 = +99.602968
        t1 = +99.073731
    T_rise = +0.001695
    T_fall = +0.021150

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.983197
      logB = -1.253075
        t0 = +4.091787
        t1 = +32.623990
    T_rise = +0.000464
    T_fall = +0.002220

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.997394
      logB = -1.239344
        t0 = +4.091775
        t1 = +32.651463
    T_rise = +0.000461
    T_fall = +0.005020

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -11.245942
      logB = -8.311145
        t0 = +57.002369
        t1 = +70.546561
    T_rise = +0.000014
    T_fall = +0.003732

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.500412
      logB = -5.113602
        t0 = +57.369686
        t1 = +0.587702
    T_rise = +0.025397
    T_fall = +0.001143

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -4.171613
      logB = +4.179247
        t0 = +85.452967
        t1 = +99.250636
    T_rise = +0.094356
    T_fall = +0.001108

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -5.065862
      logB = -3.318705
        t0 = +92.321198
        t1 = +79.565406
    T_rise = +0.053728
    T_fall = +0.037854

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.322510
      logB = +2.089421
        t0 = +87.314273
        t1 = +13.223956
    T_rise = +0.000245
    T_fall = +0.060798

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.322510
      logB = +2.089421
        t0 = +87.314273
        t1 = +13.223956
    T_rise = +0.000245
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.865356
      logB = -2.175208
        t0 = +0.938145
        t1 = +22.622017
    T_rise = +0.000134
    T_fall = +0.000094

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.900039
      logB = -2.123293
        t0 = +0.935913
        t1 = +22.398655
    T_rise = +0.000014
    T_fall = +0.000366

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.809587
      logB = -2.256719
        t0 = +0.941499
        t1 = +22.959609
    T_rise = +0.000583
    T_fall = +0.000033

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.629343
      logB = -0.619424
        t0 = +9.036278
        t1 = +19.823151
    T_rise = +0.001501
    T_fall = +0.010129

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.570282
      logB = -0.676463
        t0 = +8.979653
        t1 = +19.506035
    T_rise = +0.001204
    T_fall = +0.002495

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.349105
      logB = -1.237104
        t0 = +9.596981
        t1 = +54.632379
    T_rise = +0.001089
    T_fall = +0.008656

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.690850
      logB = +2.388685
        t0 = +13.090003
        t1 = +8.789471
    T_rise = +0.000000
    T_fall = +0.004100

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.349105
      logB = -1.237104
        t0 = +nan
        t1 = +54.632379
    T_rise = +0.001089
    T_fall = +0.008656

  m.migrad()
198 objects fitted
Time taken is 27.41 seconds
Fitting supernova models...
Models fitted.
Created classifier of type:
SVC(C=1.0, cache_size=200, class_weight=None, coef0=0.0,
  decision_function_shape=None, degree=3, gamma='auto', kernel='rbf',
  max_iter=-1, probability=True, random_state=None, shrinking=True,
  tol=0.001, verbose=False)

Optimised parameters: {'C': 100000.0, 'gamma': 0.0031622776601683794}

WARNING: Upper boundary on parameter C may be too low. Optimum may not have been reached.

Reading data...
23 objects read into memory.
Reading data...
198 objects read into memory.
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.201019
      logB = -4.358572
        t0 = +59.408676
        t1 = +78.004249
    T_rise = +0.011852
    T_fall = +0.015608

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -2.658491
      logB = -6.063699
        t0 = +99.999622
        t1 = +86.288961
    T_rise = +0.069093
    T_fall = +0.029227

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.221301
      logB = -1.182960
        t0 = +6.414419
        t1 = +30.630084
    T_rise = +0.007281
    T_fall = +0.008618

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.837048
      logB = -0.648102
        t0 = +99.518502
        t1 = +3.792791
    T_rise = +0.095013
    T_fall = +0.040452

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -7.908274
      logB = -7.924093
        t0 = +12.801828
        t1 = +99.591111
    T_rise = +0.000001
    T_fall = +0.011920

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.823965
      logB = +4.574207
        t0 = +5.239060
        t1 = +19.395636
    T_rise = +0.000732
    T_fall = +0.000219

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.573255
      logB = +0.286843
        t0 = +4.094355
        t1 = +67.580587
    T_rise = +0.000327
    T_fall = +0.005841

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.625507
      logB = +0.346538
        t0 = +5.004045
        t1 = +2.288679
    T_rise = +0.000015
    T_fall = +0.001163

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.028115
      logB = -1.722742
        t0 = +5.004052
        t1 = +5.101079
    T_rise = +0.000005
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.028115
      logB = -1.722742
        t0 = +5.004052
        t1 = +5.101079
    T_rise = +0.000005
    T_fall = +0.006669

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.429777
      logB = -4.732010
        t0 = +99.812476
        t1 = +19.274707
    T_rise = +0.004960
    T_fall = +0.060940

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.114803
      logB = -1.132730
        t0 = +94.905761
        t1 = +32.207960
    T_rise = +0.027778
    T_fall = +0.099265

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.506544
      logB = +1.834262
        t0 = +99.681338
        t1 = +98.612897
    T_rise = +0.017392
    T_fall = +0.000540

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.828786
      logB = +2.127975
        t0 = +99.719565
        t1 = +99.522852
    T_rise = +0.000406
    T_fall = +0.013050

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.227051
      logB = +0.983221
        t0 = +28.000278
        t1 = +0.480547
    T_rise = +0.022527
    T_fall = +0.000070

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -10.409161
      logB = -11.276195
        t0 = +23.440988
        t1 = +95.801474
    T_rise = +0.019478
    T_fall = +0.000149

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.366632
      logB = -9.243253
        t0 = +14.252590
        t1 = +76.366830
    T_rise = +0.005711
    T_fall = +0.000712

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.441056
      logB = -0.773217
        t0 = +92.111606
        t1 = +13.564658
    T_rise = +0.000111
    T_fall = +0.000361

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.441056
      logB = -0.773217
        t0 = +92.111606
        t1 = +13.564658
    T_rise = +0.000111
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.680967
      logB = -11.512903
        t0 = +57.874138
        t1 = +75.506645
    T_rise = +0.047411
    T_fall = +0.001328

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.082825
      logB = +2.373515
        t0 = +87.521191
        t1 = +99.955526
    T_rise = +0.011676
    T_fall = +0.123891

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.728749
      logB = +3.528830
        t0 = +20.500022
        t1 = +60.341174
    T_rise = +0.005545
    T_fall = +0.002967

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.065305
      logB = -1.165932
        t0 = +4.042605
        t1 = +16.958571
    T_rise = +0.000001
    T_fall = +0.004089

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.366415
      logB = +2.641934
        t0 = +97.477661
        t1 = +89.077372
    T_rise = +0.080700
    T_fall = +0.035723

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.430086
      logB = -0.754543
        t0 = +4.137132
        t1 = +8.255679
    T_rise = +0.000019
    T_fall = +0.000207

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.430086
      logB = -0.754543
        t0 = +4.137132
        t1 = +8.255679
    T_rise = +0.000019
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.909211
      logB = -2.109418
        t0 = +0.935298
        t1 = +22.337825
    T_rise = +0.000003
    T_fall = +0.000468

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.629782
      logB = -0.618994
        t0 = +9.036407
        t1 = +19.825442
    T_rise = +0.001526
    T_fall = +0.010234

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.569030
      logB = -0.677680
        t0 = +8.978516
        t1 = +19.499577
    T_rise = +0.001275
    T_fall = +0.002952

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.688619
      logB = +2.386463
        t0 = +13.090011
        t1 = +8.808871
    T_rise = +0.000001
    T_fall = +0.004716

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.084592
      logB = -1.147542
        t0 = +4.140778
        t1 = +18.718152
    T_rise = +0.003892
    T_fall = +0.003034

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.873787
      logB = -2.162660
        t0 = +0.937617
        t1 = +22.568601
    T_rise = +0.000093
    T_fall = +0.000144

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.812752
      logB = -2.252184
        t0 = +0.941309
        t1 = +22.941318
    T_rise = +0.000549
    T_fall = +0.000024

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.805537
      logB = +0.383152
        t0 = +1.366856
        t1 = +38.441737
    T_rise = +0.000118
    T_fall = +0.000241

  m.migrad()
198 objects fitted
Time taken is 23.12 seconds
Fitting supernova models...
Models fitted.
Created classifier of type:
SVC(C=1.0, cache_size=200, class_weight=None, coef0=0.0,
  decision_function_shape=None, degree=3, gamma='auto', kernel='rbf',
  max_iter=-1, probability=True, random_state=None, shrinking=True,
  tol=0.001, verbose=False)

Optimised parameters: {'C': 1778.2794100389228, 'gamma': 0.0031622776601683794}
Reading data...
23 objects read into memory.
Reading data...
198 objects read into memory.
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.238863
      logB = +3.212422
        t0 = +95.849097
        t1 = +64.913163
    T_rise = +0.018543
    T_fall = +0.003635

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.169171
      logB = -0.644241
        t0 = +99.731972
        t1 = +94.456436
    T_rise = +0.132301
    T_fall = +0.072355

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -6.175951
      logB = -3.840291
        t0 = +22.602828
        t1 = +88.011763
    T_rise = +0.000213
    T_fall = +0.015840

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.265925
      logB = +1.741641
        t0 = +50.763358
        t1 = +50.291521
    T_rise = +0.013009
    T_fall = +0.032866

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.484990
      logB = -2.700355
        t0 = +50.498951
        t1 = +78.843404
    T_rise = +0.069602
    T_fall = +0.071358

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.540286
      logB = -2.805784
        t0 = +50.501690
        t1 = +79.743968
    T_rise = +0.065751
    T_fall = +0.067328

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.190470
      logB = -3.333205
        t0 = +50.508167
        t1 = +95.297644
    T_rise = +0.069861
    T_fall = +0.071532

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.201535
      logB = -3.498186
        t0 = +50.508032
        t1 = +97.545523
    T_rise = +0.069450
    T_fall = +0.071084

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.638529
      logB = -11.357584
        t0 = +5.740434
        t1 = +6.042030
    T_rise = +0.007424
    T_fall = +0.000479

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.821822
      logB = +0.559482
        t0 = +76.985383
        t1 = +29.396418
    T_rise = +0.001048
    T_fall = +0.027529

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.386625
      logB = +4.598382
        t0 = +95.554215
        t1 = +97.078305
    T_rise = +0.033383
    T_fall = +0.082027

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.031730
      logB = +4.341633
        t0 = +95.414032
        t1 = +96.252594
    T_rise = +0.028964
    T_fall = +0.107022

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.932351
      logB = +0.625841
        t0 = +3.186512
        t1 = +58.837462
    T_rise = +0.003020
    T_fall = +0.003186

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.188779
      logB = -0.122700
        t0 = +46.671890
        t1 = +0.000131
    T_rise = +0.008642
    T_fall = +0.037393

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -10.843516
      logB = +4.474523
        t0 = +86.878148
        t1 = +96.236848
    T_rise = +0.000644
    T_fall = +0.031527

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.275749
      logB = -0.960088
        t0 = +12.020217
        t1 = +25.162715
    T_rise = +0.000651
    T_fall = +0.002399

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.893243
      logB = -2.133511
        t0 = +0.936367
        t1 = +22.443052
    T_rise = +0.000028
    T_fall = +0.000298

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.024109
      logB = +2.705869
        t0 = +4.137008
        t1 = +4.059974
    T_rise = +0.000000
    T_fall = +0.005283

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.353543
      logB = +1.533351
        t0 = +85.963148
        t1 = +9.770676
    T_rise = +0.025112
    T_fall = +0.090159

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.240305
      logB = +2.920692
        t0 = +26.668579
        t1 = +2.839481
    T_rise = +0.000023
    T_fall = +0.002100

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.240305
      logB = +2.920692
        t0 = +26.668579
        t1 = +2.839481
    T_rise = +0.000023
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -3.521804
      logB = -4.600730
        t0 = +72.679622
        t1 = +55.569646
    T_rise = +0.044287
    T_fall = +0.042381

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.272847
      logB = -1.275801
        t0 = +98.101385
        t1 = +15.002596
    T_rise = +0.000002
    T_fall = +0.002937

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.838456
      logB = -2.214851
        t0 = +0.939789
        t1 = +22.788216
    T_rise = +0.000311
    T_fall = +0.000005

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.979097
      logB = -0.285116
        t0 = +12.022989
        t1 = +32.337405
    T_rise = +0.000151
    T_fall = +0.013797

  m.migrad()
198 objects fitted
Time taken is 22.87 seconds
Fitting supernova models...
Models fitted.
Created classifier of type:
SVC(C=1.0, cache_size=200, class_weight=None, coef0=0.0,
  decision_function_shape=None, degree=3, gamma='auto', kernel='rbf',
  max_iter=-1, probability=True, random_state=None, shrinking=True,
  tol=0.001, verbose=False)

Optimised parameters: {'C': 100000.0, 'gamma': 0.0031622776601683794}

WARNING: Upper boundary on parameter C may be too low. Optimum may not have been reached.

Reading data...
23 objects read into memory.
Reading data...
198 objects read into memory.
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -9.699564
      logB = -3.250743
        t0 = +46.690976
        t1 = +28.964095
    T_rise = +0.000661
    T_fall = +0.007600

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.034926
      logB = +2.578105
        t0 = +8.642852
        t1 = +35.554814
    T_rise = +0.000989
    T_fall = +0.000205

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.409037
      logB = +4.144488
        t0 = +8.741767
        t1 = +1.434605
    T_rise = +0.003899
    T_fall = +0.004535

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.689106
      logB = +0.889486
        t0 = +9.789773
        t1 = +61.404445
    T_rise = +0.005772
    T_fall = +0.007493

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.581993
      logB = +4.268586
        t0 = +5.016910
        t1 = +8.917885
    T_rise = +0.000560
    T_fall = +0.000002

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.155477
      logB = +3.753700
        t0 = +70.684733
        t1 = +67.810893
    T_rise = +0.006595
    T_fall = +0.000300

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -11.474453
      logB = +1.148834
        t0 = +87.803563
        t1 = +93.762671
    T_rise = +0.000023
    T_fall = +0.015859

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.591767
      logB = -8.062858
        t0 = +35.136873
        t1 = +4.003536
    T_rise = +0.004019
    T_fall = +0.029342

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.651746
      logB = -4.821033
        t0 = +78.846364
        t1 = +91.125737
    T_rise = +0.035983
    T_fall = +0.004977

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.078025
      logB = -9.654079
        t0 = +61.571977
        t1 = +59.258979
    T_rise = +0.082546
    T_fall = +0.004610

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -11.508565
      logB = -9.568234
        t0 = +63.093339
        t1 = +86.783191
    T_rise = +0.033122
    T_fall = +0.016151

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.690989
      logB = +2.388843
        t0 = +13.090002
        t1 = +8.787815
    T_rise = +0.000004
    T_fall = +0.004076

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.887383
      logB = +2.582925
        t0 = +74.509734
        t1 = +4.706672
    T_rise = +0.000000
    T_fall = +0.002913

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.873707
      logB = -2.162815
        t0 = +0.937615
        t1 = +22.569384
    T_rise = +0.000094
    T_fall = +0.000144

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.915516
      logB = -2.099874
        t0 = +0.934862
        t1 = +22.295810
    T_rise = +0.000000
    T_fall = +0.000546

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.504841
      logB = -1.145518
        t0 = +82.619938
        t1 = +17.019854
    T_rise = +0.000026
    T_fall = +0.044613

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.630072
      logB = -0.618712
        t0 = +9.036498
        t1 = +19.826952
    T_rise = +0.001543
    T_fall = +0.010306

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.568182
      logB = -0.678506
        t0 = +8.977757
        t1 = +19.495214
    T_rise = +0.001323
    T_fall = +0.003278

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.732161
      logB = +0.451089
        t0 = +5.007013
        t1 = +29.035876
    T_rise = +0.001280
    T_fall = +0.004104

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.180350
      logB = -1.051475
        t0 = +12.354650
        t1 = +19.108231
    T_rise = +0.000050
    T_fall = +0.000614

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.790900
      logB = -2.283507
        t0 = +0.942571
        t1 = +23.067408
    T_rise = +0.000803
    T_fall = +0.000121

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.690495
      logB = +2.388335
        t0 = +13.090003
        t1 = +8.792498
    T_rise = +0.000000
    T_fall = +0.004196

  m.migrad()
198 objects fitted
Time taken is 21.95 seconds
Fitting supernova models...
Models fitted.
Created classifier of type:
SVC(C=1.0, cache_size=200, class_weight=None, coef0=0.0,
  decision_function_shape=None, degree=3, gamma='auto', kernel='rbf',
  max_iter=-1, probability=True, random_state=None, shrinking=True,
  tol=0.001, verbose=False)

Optimised parameters: {'C': 1778.2794100389228, 'gamma': 0.0031622776601683794}
Reading data...
23 objects read into memory.
Reading data...
198 objects read into memory.
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -11.339836
      logB = +4.593899
        t0 = +67.831411
        t1 = +0.907259
    T_rise = +0.003664
    T_fall = +0.003826

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -11.493485
      logB = +3.298859
        t0 = +98.362607
        t1 = +97.482306
    T_rise = +0.120203
    T_fall = +0.009302

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.236362
      logB = +4.448424
        t0 = +5.193455
        t1 = +7.269978
    T_rise = +0.001185
    T_fall = +0.001113

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.303609
      logB = -1.449651
        t0 = +17.329398
        t1 = +12.851056
    T_rise = +0.009561
    T_fall = +0.007060

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.826169
      logB = -1.404076
        t0 = +6.527239
        t1 = +31.714473
    T_rise = +0.001003
    T_fall = +0.006499

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.826169
      logB = -1.404076
        t0 = +18.769157
        t1 = +31.714473
    T_rise = +0.001003
    T_fall = +0.006499

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -10.126248
      logB = +4.604111
        t0 = +37.927276
        t1 = +0.166171
    T_rise = +0.002277
    T_fall = +0.006403

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.928452
      logB = +3.167933
        t0 = +94.531884
        t1 = +12.625901
    T_rise = +0.041797
    T_fall = +0.012438

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.792903
      logB = +2.027154
        t0 = +45.115482
        t1 = +99.535701
    T_rise = +0.046059
    T_fall = +0.004689

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -8.207243
      logB = +4.068390
        t0 = +20.773335
        t1 = +71.208620
    T_rise = +0.026802
    T_fall = +0.009060

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -5.294196
      logB = +2.704441
        t0 = +96.940899
        t1 = +37.946020
    T_rise = +0.005666
    T_fall = +0.067598

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -5.509458
      logB = +3.160058
        t0 = +79.381498
        t1 = +1.795475
    T_rise = +0.045916
    T_fall = +0.107246

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.844011
      logB = +3.862579
        t0 = +69.590948
        t1 = +98.616494
    T_rise = +0.000934
    T_fall = +0.017409

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -10.174875
      logB = -1.484290
        t0 = +83.026041
        t1 = +39.462199
    T_rise = +0.001899
    T_fall = +0.050143

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.906584
      logB = -2.113460
        t0 = +0.935463
        t1 = +22.355823
    T_rise = +0.000005
    T_fall = +0.000439

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.424681
      logB = -3.234051
        t0 = +0.053938
        t1 = +4.340154
    T_rise = +0.000057
    T_fall = +0.000065

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.424681
      logB = -3.234051
        t0 = +nan
        t1 = +4.340154
    T_rise = +0.000057
    T_fall = +0.000065

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.424681
      logB = -3.234051
        t0 = +0.042565
        t1 = +4.340154
    T_rise = +0.000057
    T_fall = +0.000012

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.424681
      logB = -3.234051
        t0 = +0.042565
        t1 = +4.340154
    T_rise = +0.000057
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.629656
      logB = -0.619118
        t0 = +9.036369
        t1 = +19.824781
    T_rise = +0.001519
    T_fall = +0.010203

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.569393
      logB = -0.677327
        t0 = +8.978845
        t1 = +19.501448
    T_rise = +0.001254
    T_fall = +0.002816

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.690612
      logB = +2.388446
        t0 = +13.090003
        t1 = +8.791595
    T_rise = +0.000000
    T_fall = +0.004165

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.849772
      logB = -2.198252
        t0 = +0.939103
        t1 = +22.719116
    T_rise = +0.000228
    T_fall = +0.000029

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.713175
      logB = +1.415818
        t0 = +7.801175
        t1 = +30.552370
    T_rise = +0.007503
    T_fall = +0.001112

  m.migrad()
198 objects fitted
Time taken is 19.59 seconds
Fitting supernova models...
Models fitted.
Created classifier of type:
SVC(C=1.0, cache_size=200, class_weight=None, coef0=0.0,
  decision_function_shape=None, degree=3, gamma='auto', kernel='rbf',
  max_iter=-1, probability=True, random_state=None, shrinking=True,
  tol=0.001, verbose=False)

Optimised parameters: {'C': 100000.0, 'gamma': 0.0031622776601683794}

WARNING: Upper boundary on parameter C may be too low. Optimum may not have been reached.

Reading data...
23 objects read into memory.
Reading data...
198 objects read into memory.
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.595571
      logB = +4.537952
        t0 = +25.555916
        t1 = +79.650658
    T_rise = +0.027318
    T_fall = +0.015588

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.991882
      logB = -1.244586
        t0 = +4.049749
        t1 = +34.093810
    T_rise = +0.003037
    T_fall = +0.003761

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.282717
      logB = +3.717584
        t0 = +2.529270
        t1 = +12.177377
    T_rise = +0.000135
    T_fall = +0.000428

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.911325
      logB = +3.540562
        t0 = +5.004001
        t1 = +9.051658
    T_rise = +0.000000
    T_fall = +0.000199

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.884869
      logB = +3.514359
        t0 = +5.004001
        t1 = +9.252007
    T_rise = +0.000000
    T_fall = +0.004931

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.874163
      logB = +0.605808
        t0 = +84.835067
        t1 = +29.917002
    T_rise = +0.000014
    T_fall = +0.044760

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.765889
      logB = +2.022523
        t0 = +75.954566
        t1 = +99.473501
    T_rise = +0.012730
    T_fall = +0.012354

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -10.057904
      logB = -4.474768
        t0 = +98.904962
        t1 = +5.910520
    T_rise = +0.100214
    T_fall = +0.050523

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.478905
      logB = -1.217622
        t0 = +80.514455
        t1 = +32.741318
    T_rise = +0.018867
    T_fall = +0.019858

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.147988
      logB = -1.088112
        t0 = +17.391404
        t1 = +14.110325
    T_rise = +0.003955
    T_fall = +0.012730

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -11.158349
      logB = -6.106662
        t0 = +45.477032
        t1 = +18.025353
    T_rise = +0.000358
    T_fall = +0.000982

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.820591
      logB = -2.240843
        t0 = +0.940853
        t1 = +22.895096
    T_rise = +0.000469
    T_fall = +0.000007

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.896411
      logB = -2.128756
        t0 = +0.936155
        t1 = +22.422438
    T_rise = +0.000020
    T_fall = +0.000329

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.391765
      logB = +1.199891
        t0 = +23.503082
        t1 = +27.236480
    T_rise = +0.020870
    T_fall = +0.009359

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.629165
      logB = -0.619596
        t0 = +9.036228
        t1 = +19.822229
    T_rise = +0.001491
    T_fall = +0.010088

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.570774
      logB = -0.675984
        t0 = +8.980106
        t1 = +19.508583
    T_rise = +0.001177
    T_fall = +0.002324

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.898123
      logB = +2.593608
        t0 = +98.165728
        t1 = +4.639384
    T_rise = +0.000000
    T_fall = +0.028864

  m.migrad()
198 objects fitted
Time taken is 20.39 seconds
Fitting supernova models...
Models fitted.
Created classifier of type:
SVC(C=1.0, cache_size=200, class_weight=None, coef0=0.0,
  decision_function_shape=None, degree=3, gamma='auto', kernel='rbf',
  max_iter=-1, probability=True, random_state=None, shrinking=True,
  tol=0.001, verbose=False)

Optimised parameters: {'C': 31.622776601683793, 'gamma': 0.0031622776601683794}
Reading data...
23 objects read into memory.
Reading data...
198 objects read into memory.
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.308459
      logB = +3.420788
        t0 = +37.666588
        t1 = +58.318722
    T_rise = +0.010679
    T_fall = +0.000764

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.444856
      logB = -10.301438
        t0 = +16.271161
        t1 = +22.965704
    T_rise = +0.000185
    T_fall = +0.000580

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.591855
      logB = -2.790368
        t0 = +4.109128
        t1 = +61.154411
    T_rise = +0.000895
    T_fall = +0.000025

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.591855
      logB = -2.790368
        t0 = +4.109128
        t1 = +61.154411
    T_rise = +0.000895
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.670547
      logB = -0.635701
        t0 = +77.004497
        t1 = +7.933810
    T_rise = +0.000257
    T_fall = +0.014073

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.280680
      logB = -10.867869
        t0 = +9.273722
        t1 = +71.585832
    T_rise = +0.000288
    T_fall = +0.002795

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.018309
      logB = +3.325709
        t0 = +18.585388
        t1 = +73.095648
    T_rise = +0.006365
    T_fall = +0.017747

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.277112
      logB = -1.737740
        t0 = +72.424569
        t1 = +74.890038
    T_rise = +0.098268
    T_fall = +0.076659

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.996649
      logB = -1.240126
        t0 = +4.099691
        t1 = +33.299956
    T_rise = +0.002474
    T_fall = +0.003083

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.944117
      logB = -1.290923
        t0 = +4.099847
        t1 = +33.208672
    T_rise = +0.002541
    T_fall = +0.001055

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.956689
      logB = -1.278769
        t0 = +4.099810
        t1 = +33.230492
    T_rise = +0.002525
    T_fall = +0.000131

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.874579
      logB = -7.915749
        t0 = +18.759043
        t1 = +32.969392
    T_rise = +0.001938
    T_fall = +0.002705

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.903980
      logB = -7.907757
        t0 = +18.772330
        t1 = +33.561688
    T_rise = +0.019262
    T_fall = +0.000439

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.903980
      logB = -7.907757
        t0 = +18.772330
        t1 = +33.561688
    T_rise = +0.019262
    T_fall = +0.011641

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.435686
      logB = -7.448932
        t0 = +48.793480
        t1 = +10.267164
    T_rise = +0.003266
    T_fall = +0.009431

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.339982
      logB = -2.523161
        t0 = +4.098897
        t1 = +66.330155
    T_rise = +0.000474
    T_fall = +0.003120

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.339982
      logB = -2.523161
        t0 = +4.098897
        t1 = +66.330155
    T_rise = +0.000474
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -6.430315
      logB = -2.725288
        t0 = +99.804152
        t1 = +12.971677
    T_rise = +0.006262
    T_fall = +0.043673

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -6.412700
      logB = -2.690020
        t0 = +99.818390
        t1 = +12.819864
    T_rise = +0.004613
    T_fall = +0.000022

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -6.412700
      logB = -2.690020
        t0 = +99.818390
        t1 = +12.819864
    T_rise = +0.004613
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -4.711544
      logB = -0.555412
        t0 = +67.801298
        t1 = +88.069465
    T_rise = +0.013061
    T_fall = +0.021672

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -3.491749
      logB = +0.208046
        t0 = +88.780869
        t1 = +85.988281
    T_rise = +0.033951
    T_fall = +0.000023

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.783526
      logB = -0.143977
        t0 = +70.866009
        t1 = +65.018743
    T_rise = +0.096538
    T_fall = +0.000061

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.945037
      logB = +1.648253
        t0 = +2.016006
        t1 = +65.060569
    T_rise = +0.000001
    T_fall = +0.000964

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.099310
      logB = +1.628567
        t0 = +27.609854
        t1 = +2.801774
    T_rise = +0.013316
    T_fall = +0.000059

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.369305
      logB = +1.860536
        t0 = +37.497980
        t1 = +2.515154
    T_rise = +0.013316
    T_fall = +0.049993

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.369305
      logB = +1.860536
        t0 = +nan
        t1 = +2.515154
    T_rise = +0.013316
    T_fall = +0.049993

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.369305
      logB = +1.860536
        t0 = +34.740301
        t1 = +2.515154
    T_rise = +0.013316
    T_fall = +0.047169

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.369305
      logB = +1.860536
        t0 = +34.740301
        t1 = +2.515154
    T_rise = +0.013316
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -2.547266
      logB = -3.803380
        t0 = +18.990712
        t1 = +11.954168
    T_rise = +0.001462
    T_fall = +0.008062

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.657152
      logB = -9.912147
        t0 = +29.867492
        t1 = +9.130940
    T_rise = +0.031869
    T_fall = +0.005550

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -9.953353
      logB = -2.301103
        t0 = +38.130131
        t1 = +80.668638
    T_rise = +0.031697
    T_fall = +0.010337

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -9.250941
      logB = +2.191716
        t0 = +92.765064
        t1 = +91.542320
    T_rise = +0.015250
    T_fall = +0.006111

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -4.966042
      logB = +3.873634
        t0 = +47.961820
        t1 = +5.095392
    T_rise = +0.003724
    T_fall = +0.008508

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.279969
      logB = -6.085059
        t0 = +19.174267
        t1 = +34.418468
    T_rise = +0.010108
    T_fall = +0.014005

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = -4.722093
        t0 = +65.806689
        t1 = +3.860057
    T_rise = +72.983969
    T_fall = +0.128422

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.321822
      logB = -4.722093
        t0 = +65.806689
        t1 = +3.860057
    T_rise = +72.983969
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.321822
      logB = +nan
        t0 = +65.806689
        t1 = +3.860057
    T_rise = +72.983969
    T_fall = +0.128422

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.321822
      logB = -4.722093
        t0 = +nan
        t1 = +3.860057
    T_rise = +72.983969
    T_fall = +0.128422

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.321822
      logB = -4.722093
        t0 = +65.806689
        t1 = +nan
    T_rise = +72.983969
    T_fall = +0.128422

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.321822
      logB = -4.722093
        t0 = +65.806689
        t1 = +3.860057
    T_rise = +nan
    T_fall = +0.128422

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -10.132712
      logB = +0.485751
        t0 = +99.800834
        t1 = +56.411388
    T_rise = +0.005796
    T_fall = +0.116520

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -3.003711
      logB = -1.477657
        t0 = +98.778394
        t1 = +36.460731
    T_rise = +0.073700
    T_fall = +0.006054

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = -4.722093
        t0 = +65.806689
        t1 = +3.860057
    T_rise = +72.983969
    T_fall = +0.128422

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.321822
      logB = +nan
        t0 = +65.806689
        t1 = +3.860057
    T_rise = +72.983969
    T_fall = +0.128422

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.321822
      logB = -4.722093
        t0 = +nan
        t1 = +3.860057
    T_rise = +72.983969
    T_fall = +0.128422

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.321822
      logB = -4.722093
        t0 = +65.806689
        t1 = +nan
    T_rise = +72.983969
    T_fall = +0.128422

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.321822
      logB = -4.722093
        t0 = +65.806689
        t1 = +3.860057
    T_rise = +nan
    T_fall = +0.128422

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.321822
      logB = -4.722093
        t0 = +65.806689
        t1 = +3.860057
    T_rise = +72.983969
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = -4.722093
        t0 = +65.806689
        t1 = +3.860057
    T_rise = +72.983969
    T_fall = +0.128422

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.321822
      logB = -4.722093
        t0 = +65.806689
        t1 = +3.860057
    T_rise = +72.983969
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.321822
      logB = +nan
        t0 = +65.806689
        t1 = +3.860057
    T_rise = +72.983969
    T_fall = +0.128422

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.321822
      logB = -4.722093
        t0 = +nan
        t1 = +3.860057
    T_rise = +72.983969
    T_fall = +0.128422

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.321822
      logB = -4.722093
        t0 = +65.806689
        t1 = +nan
    T_rise = +72.983969
    T_fall = +0.128422

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.321822
      logB = -4.722093
        t0 = +65.806689
        t1 = +3.860057
    T_rise = +nan
    T_fall = +0.128422

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.321822
      logB = -4.722093
        t0 = +65.806689
        t1 = +3.860057
    T_rise = +72.983969
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = -4.722093
        t0 = +65.806689
        t1 = +3.860057
    T_rise = +72.983969
    T_fall = +0.128422

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.321822
      logB = +nan
        t0 = +65.806689
        t1 = +3.860057
    T_rise = +72.983969
    T_fall = +0.128422

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.321822
      logB = -4.722093
        t0 = +nan
        t1 = +3.860057
    T_rise = +72.983969
    T_fall = +0.128422

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.321822
      logB = -4.722093
        t0 = +65.806689
        t1 = +nan
    T_rise = +72.983969
    T_fall = +0.128422

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.321822
      logB = -4.722093
        t0 = +65.806689
        t1 = +3.860057
    T_rise = +nan
    T_fall = +0.128422

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.220271
      logB = -0.671178
        t0 = +25.718731
        t1 = +79.830681
    T_rise = +0.000091
    T_fall = +0.001466

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.540209
      logB = -1.515933
        t0 = +24.610864
        t1 = +51.997802
    T_rise = +0.000000
    T_fall = +0.025919

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.967734
      logB = -0.699554
        t0 = +84.581382
        t1 = +30.155702
    T_rise = +0.000670
    T_fall = +0.059050

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.150188
      logB = +1.168380
        t0 = +8.793081
        t1 = +24.094215
    T_rise = +0.000449
    T_fall = +0.000004

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.150188
      logB = +1.168380
        t0 = +8.793081
        t1 = +24.094215
    T_rise = +0.000449
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.121796
      logB = +1.297613
        t0 = +72.642068
        t1 = +89.922871
    T_rise = +0.044661
    T_fall = +0.091852

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -3.990140
      logB = +3.304215
        t0 = +50.930693
        t1 = +7.652648
    T_rise = +0.019216
    T_fall = +0.069952

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -10.404231
      logB = -9.693807
        t0 = +90.391438
        t1 = +32.679047
    T_rise = +0.002389
    T_fall = +0.025736

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.824200
      logB = -10.405410
        t0 = +86.233177
        t1 = +18.188824
    T_rise = +0.003909
    T_fall = +0.000316

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.852884
      logB = -9.894257
        t0 = +97.333118
        t1 = +5.408727
    T_rise = +0.107155
    T_fall = +0.064646

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.000968
      logB = -2.701944
        t0 = +39.543442
        t1 = +37.695480
    T_rise = +0.003176
    T_fall = +0.033247

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.070257
      logB = -2.655781
        t0 = +39.412234
        t1 = +40.143355
    T_rise = +0.002216
    T_fall = +0.002708

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.089618
      logB = -2.643503
        t0 = +39.617679
        t1 = +40.144847
    T_rise = +0.010133
    T_fall = +0.013900

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.783088
      logB = -3.468507
        t0 = +33.076776
        t1 = +43.840383
    T_rise = +0.008406
    T_fall = +0.000175

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.959541
      logB = -1.695874
        t0 = +36.480825
        t1 = +44.874621
    T_rise = +0.019714
    T_fall = +0.018980

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.259038
      logB = -1.088105
        t0 = +35.123088
        t1 = +26.328562
    T_rise = +0.008371
    T_fall = +0.007984

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.050509
      logB = -0.749501
        t0 = +34.330720
        t1 = +55.685169
    T_rise = +0.010589
    T_fall = +0.000000

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.428002
      logB = +3.956528
        t0 = +99.964331
        t1 = +9.828019
    T_rise = +0.042011
    T_fall = +0.028713

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -11.010497
      logB = +3.820392
        t0 = +80.168768
        t1 = +0.014047
    T_rise = +0.071403
    T_fall = +0.069764

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -11.262950
      logB = -10.341673
        t0 = +53.961980
        t1 = +0.942780
    T_rise = +0.006641
    T_fall = +0.000583

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.695695
      logB = +3.774849
        t0 = +29.478718
        t1 = +68.571679
    T_rise = +0.000520
    T_fall = +0.032227

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -4.831125
      logB = +1.825615
        t0 = +72.736016
        t1 = +0.494698
    T_rise = +0.025065
    T_fall = +0.028454

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.988028
      logB = +2.068020
        t0 = +28.038152
        t1 = +7.436271
    T_rise = +0.026709
    T_fall = +0.023720

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.917514
      logB = -8.273903
        t0 = +36.873550
        t1 = +91.778492
    T_rise = +0.011798
    T_fall = +0.004551

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.986621
      logB = +2.066568
        t0 = +28.041696
        t1 = +7.457732
    T_rise = +0.029111
    T_fall = +0.019478

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.166578
      logB = +1.929512
        t0 = +7.744083
        t1 = +43.877699
    T_rise = +0.001769
    T_fall = +0.007468

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.907449
      logB = +4.600976
        t0 = +7.167909
        t1 = +98.809552
    T_rise = +0.003979
    T_fall = +0.000107

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.130211
      logB = -0.098619
        t0 = +68.433717
        t1 = +61.553413
    T_rise = +0.093946
    T_fall = +0.095789

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.130345
      logB = -0.098534
        t0 = +68.428046
        t1 = +61.554595
    T_rise = +0.094910
    T_fall = +0.096794

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -9.032734
      logB = +4.326669
        t0 = +61.033995
        t1 = +27.271980
    T_rise = +0.021903
    T_fall = +0.009218

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -11.484427
      logB = -11.110954
        t0 = +98.159415
        t1 = +0.181139
    T_rise = +0.044697
    T_fall = +0.033831

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.314763
      logB = +1.641918
        t0 = +43.036248
        t1 = +97.995883
    T_rise = +0.006613
    T_fall = +0.002176

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -2.412333
      logB = -9.690229
        t0 = +31.197005
        t1 = +37.574731
    T_rise = +0.000027
    T_fall = +0.029773

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.235896
      logB = -2.880120
        t0 = +64.720318
        t1 = +0.036064
    T_rise = +0.003428
    T_fall = +0.086657

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -3.781779
      logB = +4.484488
        t0 = +32.155521
        t1 = +36.423080
    T_rise = +0.016026
    T_fall = +0.013947

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -4.245258
      logB = -0.011453
        t0 = +98.550010
        t1 = +99.038322
    T_rise = +0.114635
    T_fall = +0.059649

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -3.630951
      logB = -0.500467
        t0 = +97.571285
        t1 = +98.464031
    T_rise = +0.056942
    T_fall = +0.067617

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.305674
      logB = +0.615413
        t0 = +89.105395
        t1 = +41.223952
    T_rise = +0.056135
    T_fall = +0.001448

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.276173
      logB = -11.508173
        t0 = +93.073530
        t1 = +38.376841
    T_rise = +0.117495
    T_fall = +0.000396

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.424470
      logB = -3.590414
        t0 = +18.481613
        t1 = +4.014478
    T_rise = +0.009028
    T_fall = +0.001566

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.480605
      logB = -3.666278
        t0 = +18.299445
        t1 = +98.859271
    T_rise = +0.005826
    T_fall = +0.003836

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -3.582463
      logB = -0.374539
        t0 = +84.413121
        t1 = +16.266217
    T_rise = +0.050516
    T_fall = +0.002995

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.525848
      logB = -10.050629
        t0 = +80.693788
        t1 = +7.090448
    T_rise = +0.043776
    T_fall = +0.021215

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.564997
      logB = -0.596847
        t0 = +35.072658
        t1 = +34.936640
    T_rise = +0.045382
    T_fall = +0.046584

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.513144
      logB = -0.620498
        t0 = +35.074929
        t1 = +35.038926
    T_rise = +0.048374
    T_fall = +0.049761

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = -10.142751
        t0 = +27.814060
        t1 = +74.453137
    T_rise = +30.471459
    T_fall = +0.029723

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.399243
      logB = +nan
        t0 = +27.814060
        t1 = +74.453137
    T_rise = +30.471459
    T_fall = +0.029723

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.399243
      logB = -10.142751
        t0 = +nan
        t1 = +74.453137
    T_rise = +30.471459
    T_fall = +0.029723

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.399243
      logB = -10.142751
        t0 = +27.814060
        t1 = +nan
    T_rise = +30.471459
    T_fall = +0.029723

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.399243
      logB = -10.142751
        t0 = +27.814060
        t1 = +74.453137
    T_rise = +nan
    T_fall = +0.029723

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = -10.142751
        t0 = +27.814060
        t1 = +74.453137
    T_rise = +30.471459
    T_fall = +0.455983

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.399243
      logB = +nan
        t0 = +27.814060
        t1 = +74.453137
    T_rise = +30.471459
    T_fall = +0.455983

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.399243
      logB = -10.142751
        t0 = +nan
        t1 = +74.453137
    T_rise = +30.471459
    T_fall = +0.455983

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.399243
      logB = -10.142751
        t0 = +27.814060
        t1 = +nan
    T_rise = +30.471459
    T_fall = +0.455983

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.399243
      logB = -10.142751
        t0 = +27.814060
        t1 = +74.453137
    T_rise = +nan
    T_fall = +0.455983

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.892610
      logB = +3.461368
        t0 = +29.805010
        t1 = +81.429954
    T_rise = +0.020624
    T_fall = +0.032937

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.798398
      logB = -4.630429
        t0 = +28.699507
        t1 = +64.760825
    T_rise = +0.013731
    T_fall = +0.035240

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -4.649202
      logB = +4.284942
        t0 = +41.396419
        t1 = +93.810757
    T_rise = +0.015903
    T_fall = +0.000444

  m.migrad()
198 objects fitted
Time taken is 1.41 minutes
Fitting supernova models...
Models fitted.
Created classifier of type:
AdaBoostClassifier(algorithm='SAMME.R', base_estimator=None,
          learning_rate=1.0, n_estimators=50, random_state=None)

Optimised parameters: {'n_estimators': 35, 'base_estimator': DecisionTreeClassifier(class_weight=None, criterion='entropy', max_depth=None,
            max_features=None, max_leaf_nodes=None, min_samples_leaf=15,
            min_samples_split=2, min_weight_fraction_leaf=0.0,
            presort=False, random_state=None, splitter='best')}
Reading data...
23 objects read into memory.
Reading data...
198 objects read into memory.
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.940881
      logB = +0.956898
        t0 = +58.322145
        t1 = +22.066325
    T_rise = +0.052536
    T_fall = +0.007515

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: divide by zero encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -5.256682
      logB = -7.158530
        t0 = +59.012639
        t1 = +54.069658
    T_rise = +0.000508
    T_fall = +0.069849

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.143967
      logB = +4.170926
        t0 = +94.525234
        t1 = +80.282048
    T_rise = +0.061052
    T_fall = +0.047982

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.279162
      logB = -1.004421
        t0 = +1.252858
        t1 = +8.364370
    T_rise = +0.000139
    T_fall = +0.000093

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.279162
      logB = -1.004421
        t0 = +1.252858
        t1 = +8.364370
    T_rise = +0.000139
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.669774
      logB = -1.642580
        t0 = +17.377062
        t1 = +61.508812
    T_rise = +0.000022
    T_fall = +0.007513

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.942445
      logB = +1.645662
        t0 = +2.016006
        t1 = +64.837932
    T_rise = +0.000001
    T_fall = +0.000100

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.180953
      logB = -0.521717
        t0 = +38.569536
        t1 = +32.284152
    T_rise = +0.030452
    T_fall = +0.049753

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.473196
      logB = -0.287323
        t0 = +38.816722
        t1 = +29.052133
    T_rise = +0.026199
    T_fall = +0.013965

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.712916
      logB = -5.808176
        t0 = +91.886224
        t1 = +0.609858
    T_rise = +0.105707
    T_fall = +0.105732

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.712506
      logB = -5.805743
        t0 = +91.907722
        t1 = +0.588763
    T_rise = +0.109292
    T_fall = +0.109319

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.715895
      logB = -0.521730
        t0 = +3.881100
        t1 = +47.055482
    T_rise = +0.000613
    T_fall = +0.005381

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.715895
      logB = -0.521730
        t0 = +3.881100
        t1 = +47.055482
    T_rise = +0.000613
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -3.552040
      logB = +0.827932
        t0 = +87.610058
        t1 = +99.966353
    T_rise = +0.074055
    T_fall = +0.073513

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.403250
      logB = -0.816543
        t0 = +46.125808
        t1 = +33.302387
    T_rise = +0.000068
    T_fall = +0.019482

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.345978
      logB = -0.862193
        t0 = +28.114445
        t1 = +33.130537
    T_rise = +0.000067
    T_fall = +0.026624

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.345978
      logB = -0.862193
        t0 = +nan
        t1 = +33.130537
    T_rise = +0.000067
    T_fall = +0.026624

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.345978
      logB = -0.862193
        t0 = +86.700666
        t1 = +33.130537
    T_rise = +0.000067
    T_fall = +0.026624

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.345978
      logB = -0.862193
        t0 = +9.854402
        t1 = +33.130537
    T_rise = +0.000067
    T_fall = +0.013446

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.345978
      logB = -0.862193
        t0 = +9.854402
        t1 = +33.130537
    T_rise = +0.000067
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.261759
      logB = -0.936969
        t0 = +4.092628
        t1 = +4.177578
    T_rise = +0.000413
    T_fall = +0.000047

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.261759
      logB = -0.936969
        t0 = +4.092628
        t1 = +4.177578
    T_rise = +0.000413
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.886690
      logB = +0.921907
        t0 = +43.255587
        t1 = +62.788935
    T_rise = +0.005020
    T_fall = +0.039639

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = -9.072126
        t0 = +99.541039
        t1 = +1.485320
    T_rise = +1.618344
    T_fall = +0.191585

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -6.232874
      logB = +nan
        t0 = +99.541039
        t1 = +1.485320
    T_rise = +1.618344
    T_fall = +0.191585

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -6.232874
      logB = -9.072126
        t0 = +nan
        t1 = +1.485320
    T_rise = +1.618344
    T_fall = +0.191585

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -6.232874
      logB = -9.072126
        t0 = +99.541039
        t1 = +nan
    T_rise = +1.618344
    T_fall = +0.191585

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -6.232874
      logB = -9.072126
        t0 = +99.541039
        t1 = +1.485320
    T_rise = +nan
    T_fall = +0.191585

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -6.232874
      logB = -9.072126
        t0 = +99.541039
        t1 = +1.485320
    T_rise = +1.618344
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.722565
      logB = -8.349395
        t0 = +55.744957
        t1 = +75.982022
    T_rise = +0.075733
    T_fall = +0.066239

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -6.530818
      logB = -2.547371
        t0 = +59.882068
        t1 = +2.678031
    T_rise = +0.043625
    T_fall = +0.022197

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = -9.072126
        t0 = +99.541039
        t1 = +1.485320
    T_rise = +1.618344
    T_fall = +0.191585

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -6.232874
      logB = +nan
        t0 = +99.541039
        t1 = +1.485320
    T_rise = +1.618344
    T_fall = +0.191585

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -6.232874
      logB = -9.072126
        t0 = +nan
        t1 = +1.485320
    T_rise = +1.618344
    T_fall = +0.191585

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -6.232874
      logB = -9.072126
        t0 = +99.541039
        t1 = +nan
    T_rise = +1.618344
    T_fall = +0.191585

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -6.232874
      logB = -9.072126
        t0 = +99.541039
        t1 = +1.485320
    T_rise = +nan
    T_fall = +0.191585

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -6.232874
      logB = -9.072126
        t0 = +99.541039
        t1 = +1.485320
    T_rise = +1.618344
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = -9.072126
        t0 = +99.541039
        t1 = +1.485320
    T_rise = +1.618344
    T_fall = +0.191585

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -6.232874
      logB = +nan
        t0 = +99.541039
        t1 = +1.485320
    T_rise = +1.618344
    T_fall = +0.191585

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -6.232874
      logB = -9.072126
        t0 = +nan
        t1 = +1.485320
    T_rise = +1.618344
    T_fall = +0.191585

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -6.232874
      logB = -9.072126
        t0 = +99.541039
        t1 = +nan
    T_rise = +1.618344
    T_fall = +0.191585

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -6.232874
      logB = -9.072126
        t0 = +99.541039
        t1 = +1.485320
    T_rise = +nan
    T_fall = +0.191585

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -6.232874
      logB = -9.072126
        t0 = +99.541039
        t1 = +1.485320
    T_rise = +1.618344
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.210412
      logB = +2.541619
        t0 = +63.825983
        t1 = +61.189966
    T_rise = +0.071733
    T_fall = +0.072238

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.211248
      logB = +2.542638
        t0 = +63.732328
        t1 = +61.237096
    T_rise = +0.089050
    T_fall = +0.090996

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.210874
      logB = +2.542185
        t0 = +63.772806
        t1 = +61.216966
    T_rise = +0.081590
    T_fall = +0.083237

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = -9.072126
        t0 = +99.541039
        t1 = +1.485320
    T_rise = +1.618344
    T_fall = +0.191585

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -6.232874
      logB = +nan
        t0 = +99.541039
        t1 = +1.485320
    T_rise = +1.618344
    T_fall = +0.191585

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.723415
      logB = +0.950420
        t0 = +64.117693
        t1 = +62.730850
    T_rise = +0.089761
    T_fall = +0.091321

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.160819
      logB = +0.576995
        t0 = +64.656159
        t1 = +62.713550
    T_rise = +0.089744
    T_fall = +0.091303

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -6.232874
      logB = -9.072126
        t0 = +nan
        t1 = +1.485320
    T_rise = +1.618344
    T_fall = +0.191585

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -6.232874
      logB = -9.072126
        t0 = +99.541039
        t1 = +nan
    T_rise = +1.618344
    T_fall = +0.191585

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -6.232874
      logB = -9.072126
        t0 = +99.541039
        t1 = +1.485320
    T_rise = +nan
    T_fall = +0.191585

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -6.232874
      logB = -9.072126
        t0 = +99.541039
        t1 = +1.485320
    T_rise = +1.618344
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.848178
      logB = +2.141712
        t0 = +80.081973
        t1 = +99.604013
    T_rise = +0.021344
    T_fall = +0.051044

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.032468
      logB = +2.323166
        t0 = +68.506527
        t1 = +61.425387
    T_rise = +0.090274
    T_fall = +0.091835

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.032490
      logB = +2.323208
        t0 = +68.503454
        t1 = +61.420253
    T_rise = +0.091115
    T_fall = +0.092712

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.298540
      logB = -1.734393
        t0 = +68.577317
        t1 = +62.427339
    T_rise = +0.096525
    T_fall = +0.098082

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -2.110255
      logB = -3.437269
        t0 = +20.408427
        t1 = +56.426123
    T_rise = +0.003367
    T_fall = +0.000654

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = -2.607496
        t0 = +90.185121
        t1 = +7.603807
    T_rise = +54.014183
    T_fall = +0.238445

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -5.282896
      logB = +nan
        t0 = +90.185121
        t1 = +7.603807
    T_rise = +54.014183
    T_fall = +0.238445

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -5.282896
      logB = -2.607496
        t0 = +nan
        t1 = +7.603807
    T_rise = +54.014183
    T_fall = +0.238445

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -5.282896
      logB = -2.607496
        t0 = +90.185121
        t1 = +nan
    T_rise = +54.014183
    T_fall = +0.238445

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -5.282896
      logB = -2.607496
        t0 = +90.185121
        t1 = +7.603807
    T_rise = +nan
    T_fall = +0.238445

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -5.282896
      logB = -2.607496
        t0 = +90.185121
        t1 = +7.603807
    T_rise = +54.014183
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -5.565207
      logB = +3.706773
        t0 = +59.089529
        t1 = +11.485889
    T_rise = +0.051647
    T_fall = +0.051768

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -5.537262
      logB = +3.675780
        t0 = +59.171135
        t1 = +11.142725
    T_rise = +0.019843
    T_fall = +0.019921

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.915256
      logB = -2.498216
        t0 = +66.889389
        t1 = +86.954230
    T_rise = +0.093344
    T_fall = +0.094878

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.910686
      logB = -2.502309
        t0 = +66.888041
        t1 = +86.891773
    T_rise = +0.079315
    T_fall = +0.080349

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = -2.607496
        t0 = +90.185121
        t1 = +7.603807
    T_rise = +54.014183
    T_fall = +0.238445

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -5.282896
      logB = +nan
        t0 = +90.185121
        t1 = +7.603807
    T_rise = +54.014183
    T_fall = +0.238445

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -5.282896
      logB = -2.607496
        t0 = +nan
        t1 = +7.603807
    T_rise = +54.014183
    T_fall = +0.238445

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -5.282896
      logB = -2.607496
        t0 = +90.185121
        t1 = +nan
    T_rise = +54.014183
    T_fall = +0.238445

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -5.282896
      logB = -2.607496
        t0 = +90.185121
        t1 = +7.603807
    T_rise = +nan
    T_fall = +0.238445

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -5.282896
      logB = -2.607496
        t0 = +90.185121
        t1 = +7.603807
    T_rise = +54.014183
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.058632
      logB = -4.183864
        t0 = +82.902595
        t1 = +2.570327
    T_rise = +0.037910
    T_fall = +0.063668

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = -2.607496
        t0 = +90.185121
        t1 = +7.603807
    T_rise = +54.014183
    T_fall = +0.238445

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -5.282896
      logB = +nan
        t0 = +90.185121
        t1 = +7.603807
    T_rise = +54.014183
    T_fall = +0.238445

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -5.282896
      logB = -2.607496
        t0 = +nan
        t1 = +7.603807
    T_rise = +54.014183
    T_fall = +0.238445

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -5.282896
      logB = -2.607496
        t0 = +90.185121
        t1 = +nan
    T_rise = +54.014183
    T_fall = +0.238445

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -5.282896
      logB = -2.607496
        t0 = +90.185121
        t1 = +7.603807
    T_rise = +nan
    T_fall = +0.238445

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -5.282896
      logB = -2.607496
        t0 = +90.185121
        t1 = +7.603807
    T_rise = +54.014183
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -11.503943
      logB = -4.914077
        t0 = +10.479280
        t1 = +20.518670
    T_rise = +0.012872
    T_fall = +0.009454

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -11.503943
      logB = -4.914077
        t0 = +10.479280
        t1 = +20.518670
    T_rise = +0.012872
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -11.503943
      logB = -4.914077
        t0 = +10.479280
        t1 = +20.518670
    T_rise = +0.012872
    T_fall = +0.002858

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -11.503937
      logB = -4.924640
        t0 = +99.953179
        t1 = +20.499763
    T_rise = +0.012872
    T_fall = +0.000016

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -11.503937
      logB = -4.924640
        t0 = +99.953179
        t1 = +20.499763
    T_rise = +0.012872
    T_fall = +0.127199

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.240181
      logB = +0.946815
        t0 = +39.081484
        t1 = +11.757063
    T_rise = +0.029833
    T_fall = +0.029840

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -2.830377
      logB = -4.566501
        t0 = +83.924563
        t1 = +78.500724
    T_rise = +0.014349
    T_fall = +0.008949

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -4.423774
      logB = -7.344393
        t0 = +28.979510
        t1 = +18.114612
    T_rise = +0.000283
    T_fall = +0.004628

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -7.440926
      logB = -9.891153
        t0 = +94.151426
        t1 = +97.490062
    T_rise = +0.053440
    T_fall = +0.105022

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -3.624676
      logB = -2.683618
        t0 = +2.095996
        t1 = +41.467049
    T_rise = +0.000392
    T_fall = +0.000092

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = -2.607496
        t0 = +90.185121
        t1 = +7.603807
    T_rise = +54.014183
    T_fall = +0.238445

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -5.282896
      logB = +nan
        t0 = +90.185121
        t1 = +7.603807
    T_rise = +54.014183
    T_fall = +0.238445

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -5.282896
      logB = -2.607496
        t0 = +nan
        t1 = +7.603807
    T_rise = +54.014183
    T_fall = +0.238445

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -5.282896
      logB = -2.607496
        t0 = +90.185121
        t1 = +nan
    T_rise = +54.014183
    T_fall = +0.238445

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -5.282896
      logB = -2.607496
        t0 = +90.185121
        t1 = +7.603807
    T_rise = +nan
    T_fall = +0.238445

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -5.282896
      logB = -2.607496
        t0 = +90.185121
        t1 = +7.603807
    T_rise = +54.014183
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.066703
      logB = -1.164720
        t0 = +4.133569
        t1 = +18.464759
    T_rise = +0.001003
    T_fall = +0.004888

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.763609
      logB = -8.562805
        t0 = +99.961250
        t1 = +3.497802
    T_rise = +0.001684
    T_fall = +0.083424

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.745505
      logB = +2.443111
        t0 = +13.090022
        t1 = +8.319453
    T_rise = +0.000001
    T_fall = +0.002470

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.083417
      logB = -1.148684
        t0 = +4.107524
        t1 = +18.753956
    T_rise = +0.002776
    T_fall = +0.003769

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.542572
      logB = -10.623789
        t0 = +99.134974
        t1 = +1.039869
    T_rise = +0.026224
    T_fall = +0.012055

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.690695
      logB = +2.388532
        t0 = +13.090004
        t1 = +8.790790
    T_rise = +0.000000
    T_fall = +0.004145

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.320813
      logB = +1.999769
        t0 = +26.027020
        t1 = +26.555343
    T_rise = +0.000242
    T_fall = +0.021505

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -9.080054
      logB = -11.488481
        t0 = +99.349592
        t1 = +3.802065
    T_rise = +0.069723
    T_fall = +0.063790

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.225148
      logB = -4.914077
        t0 = +10.479280
        t1 = +20.518670
    T_rise = +0.012819
    T_fall = +0.009444

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.225148
      logB = -4.914077
        t0 = +10.479280
        t1 = +20.518670
    T_rise = +0.012819
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.225148
      logB = +4.238507
        t0 = +10.479280
        t1 = +20.518670
    T_rise = +0.012819
    T_fall = +nan

  m.migrad()
198 objects fitted
Time taken is 37.73 seconds
Fitting supernova models...
Models fitted.
Created classifier of type:
AdaBoostClassifier(algorithm='SAMME.R', base_estimator=None,
          learning_rate=1.0, n_estimators=50, random_state=None)

Optimised parameters: {'n_estimators': 35, 'base_estimator': DecisionTreeClassifier(class_weight=None, criterion='entropy', max_depth=None,
            max_features=None, max_leaf_nodes=None, min_samples_leaf=5,
            min_samples_split=2, min_weight_fraction_leaf=0.0,
            presort=False, random_state=None, splitter='best')}
Reading data...
23 objects read into memory.
Reading data...
198 objects read into memory.
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = -0.217505
        t0 = +38.816521
        t1 = +52.707628
    T_rise = +60.467074
    T_fall = +0.053206

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.987586
      logB = +nan
        t0 = +38.816521
        t1 = +52.707628
    T_rise = +60.467074
    T_fall = +0.053206

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.987586
      logB = -0.217505
        t0 = +nan
        t1 = +52.707628
    T_rise = +60.467074
    T_fall = +0.053206

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.987586
      logB = -0.217505
        t0 = +38.816521
        t1 = +nan
    T_rise = +60.467074
    T_fall = +0.053206

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.987586
      logB = -0.217505
        t0 = +38.816521
        t1 = +52.707628
    T_rise = +nan
    T_fall = +0.053206

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.987586
      logB = -0.217505
        t0 = +38.816521
        t1 = +52.707628
    T_rise = +60.467074
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.723264
      logB = -5.749805
        t0 = +29.403242
        t1 = +64.619147
    T_rise = +0.017410
    T_fall = +0.021009

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.295925
      logB = +2.207591
        t0 = +62.675653
        t1 = +59.548939
    T_rise = +0.053096
    T_fall = +0.080122

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.114991
      logB = +2.790066
        t0 = +41.140890
        t1 = +60.536254
    T_rise = +0.000923
    T_fall = +0.032251

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = -0.217505
        t0 = +38.816521
        t1 = +52.707628
    T_rise = +60.467074
    T_fall = +0.053206

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.987586
      logB = +nan
        t0 = +38.816521
        t1 = +52.707628
    T_rise = +60.467074
    T_fall = +0.053206

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.987586
      logB = -0.217505
        t0 = +nan
        t1 = +52.707628
    T_rise = +60.467074
    T_fall = +0.053206

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.987586
      logB = -0.217505
        t0 = +38.816521
        t1 = +nan
    T_rise = +60.467074
    T_fall = +0.053206

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.987586
      logB = -0.217505
        t0 = +38.816521
        t1 = +52.707628
    T_rise = +nan
    T_fall = +0.053206

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.987586
      logB = -0.217505
        t0 = +38.816521
        t1 = +52.707628
    T_rise = +60.467074
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -7.016261
      logB = +4.544888
        t0 = +71.468688
        t1 = +3.143462
    T_rise = +0.010560
    T_fall = +0.000434

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.861924
      logB = -10.632294
        t0 = +97.074322
        t1 = +97.128355
    T_rise = +0.011397
    T_fall = +0.001719

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.267089
      logB = -0.978136
        t0 = +4.090689
        t1 = +32.878193
    T_rise = +0.000041
    T_fall = +0.003926

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.267089
      logB = -0.978136
        t0 = +4.090689
        t1 = +32.878193
    T_rise = +0.000041
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.904092
      logB = -8.090430
        t0 = +94.717428
        t1 = +37.015399
    T_rise = +0.004962
    T_fall = +0.002736

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = -0.217505
        t0 = +38.816521
        t1 = +52.707628
    T_rise = +60.467074
    T_fall = +0.053206

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.987586
      logB = +nan
        t0 = +38.816521
        t1 = +52.707628
    T_rise = +60.467074
    T_fall = +0.053206

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.987586
      logB = -0.217505
        t0 = +nan
        t1 = +52.707628
    T_rise = +60.467074
    T_fall = +0.053206

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.987586
      logB = -0.217505
        t0 = +38.816521
        t1 = +nan
    T_rise = +60.467074
    T_fall = +0.053206

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.987586
      logB = -0.217505
        t0 = +38.816521
        t1 = +52.707628
    T_rise = +nan
    T_fall = +0.053206

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.987586
      logB = -0.217505
        t0 = +38.816521
        t1 = +52.707628
    T_rise = +60.467074
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.951254
      logB = -1.283921
        t0 = +4.090738
        t1 = +32.163746
    T_rise = +0.002843
    T_fall = +0.000016

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.914227
      logB = -1.319713
        t0 = +4.090746
        t1 = +32.087642
    T_rise = +0.002904
    T_fall = +0.003315

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.987586
      logB = -0.217505
        t0 = +38.816521
        t1 = +52.707628
    T_rise = +nan
    T_fall = +0.053206

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = -0.217505
        t0 = +38.816521
        t1 = +52.707628
    T_rise = +60.467074
    T_fall = +0.053206

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.987586
      logB = +nan
        t0 = +38.816521
        t1 = +52.707628
    T_rise = +60.467074
    T_fall = +0.053206

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.987586
      logB = -0.217505
        t0 = +nan
        t1 = +52.707628
    T_rise = +60.467074
    T_fall = +0.053206

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.987586
      logB = -0.217505
        t0 = +38.816521
        t1 = +nan
    T_rise = +60.467074
    T_fall = +0.053206

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.987586
      logB = -0.217505
        t0 = +38.816521
        t1 = +52.707628
    T_rise = +60.467074
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.437610
      logB = -2.697189
        t0 = +35.105988
        t1 = +60.311185
    T_rise = +0.020528
    T_fall = +0.000403

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.994273
      logB = -1.242432
        t0 = +4.090894
        t1 = +33.289662
    T_rise = +0.000072
    T_fall = +0.002862

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -4.809188
      logB = -6.223162
        t0 = +92.328117
        t1 = +58.343375
    T_rise = +0.033173
    T_fall = +0.038465

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.965863
      logB = -1.268647
        t0 = +3.013843
        t1 = +32.116225
    T_rise = +0.003090
    T_fall = +0.003141

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.891081
      logB = +0.614861
        t0 = +20.567493
        t1 = +76.728156
    T_rise = +0.000174
    T_fall = +0.007957

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.386167
      logB = -11.511317
        t0 = +60.263989
        t1 = +99.967423
    T_rise = +0.018997
    T_fall = +0.003330

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.878099
      logB = -11.274316
        t0 = +97.989286
        t1 = +62.598493
    T_rise = +0.064686
    T_fall = +0.042077

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.734523
      logB = -10.393916
        t0 = +35.792441
        t1 = +1.493672
    T_rise = +0.015469
    T_fall = +0.009216

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.861548
      logB = +2.103379
        t0 = +37.505248
        t1 = +10.703171
    T_rise = +0.026776
    T_fall = +0.012385

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.746839
      logB = -10.567572
        t0 = +95.892414
        t1 = +65.780556
    T_rise = +0.009284
    T_fall = +0.061863

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -7.367313
      logB = -0.575365
        t0 = +95.345288
        t1 = +83.979393
    T_rise = +0.104431
    T_fall = +0.096062

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -10.706433
      logB = +4.603619
        t0 = +46.713008
        t1 = +9.788833
    T_rise = +0.049476
    T_fall = +0.050529

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.768015
      logB = -2.947681
        t0 = +13.802448
        t1 = +39.661232
    T_rise = +0.000904
    T_fall = +0.001903

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.768015
      logB = -2.947681
        t0 = +13.802448
        t1 = +39.661232
    T_rise = +0.000904
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.215860
      logB = +1.572441
        t0 = +99.820984
        t1 = +97.553408
    T_rise = +0.013136
    T_fall = +0.009336

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.753455
      logB = +0.379834
        t0 = +66.664927
        t1 = +49.592024
    T_rise = +0.008381
    T_fall = +0.011432

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: divide by zero encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.006092
      logB = -1.409302
        t0 = +99.909799
        t1 = +63.785930
    T_rise = +0.068132
    T_fall = +0.107602

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.822139
      logB = -0.472623
        t0 = +14.931015
        t1 = +43.982177
    T_rise = +0.000850
    T_fall = +0.007834

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.141664
      logB = +1.514037
        t0 = +41.182253
        t1 = +97.216521
    T_rise = +0.020171
    T_fall = +0.016458

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.947705
      logB = -6.096318
        t0 = +71.994567
        t1 = +60.230550
    T_rise = +0.035252
    T_fall = +0.041658

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -2.200013
      logB = +4.523596
        t0 = +60.285008
        t1 = +32.355776
    T_rise = +0.013112
    T_fall = +0.070808

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.690580
      logB = +2.388413
        t0 = +13.090002
        t1 = +8.791899
    T_rise = +0.000000
    T_fall = +0.004172

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.901499
      logB = -2.121098
        t0 = +0.935814
        t1 = +22.389096
    T_rise = +0.000011
    T_fall = +0.000382

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.365239
      logB = -10.410813
        t0 = +18.903017
        t1 = +33.093825
    T_rise = +0.001085
    T_fall = +0.000946

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.091185
      logB = -1.140994
        t0 = +3.984495
        t1 = +17.161884
    T_rise = +0.003186
    T_fall = +0.000414

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.629413
      logB = -0.619355
        t0 = +9.036298
        t1 = +19.823519
    T_rise = +0.001505
    T_fall = +0.010145

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.570085
      logB = -0.676654
        t0 = +8.979472
        t1 = +19.505017
    T_rise = +0.001215
    T_fall = +0.002565

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.975097
      logB = -0.647352
        t0 = +13.236273
        t1 = +16.124853
    T_rise = +0.000437
    T_fall = +0.010435

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.832778
      logB = +4.226451
        t0 = +15.948178
        t1 = +23.965632
    T_rise = +0.000138
    T_fall = +0.000032

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.680609
      logB = +2.378501
        t0 = +13.090001
        t1 = +8.877971
    T_rise = +0.000007
    T_fall = +0.007274

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.912402
      logB = -2.104616
        t0 = +0.935073
        t1 = +22.316809
    T_rise = +0.000001
    T_fall = +0.000507

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.629930
      logB = -0.618851
        t0 = +9.036453
        t1 = +19.826208
    T_rise = +0.001535
    T_fall = +0.010270

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.568601
      logB = -0.678098
        t0 = +8.978132
        t1 = +19.497370
    T_rise = +0.001299
    T_fall = +0.003115

  m.migrad()
198 objects fitted
Time taken is 31.44 seconds
Fitting supernova models...
Models fitted.
Created classifier of type:
AdaBoostClassifier(algorithm='SAMME.R', base_estimator=None,
          learning_rate=1.0, n_estimators=50, random_state=None)

Optimised parameters: {'n_estimators': 25, 'base_estimator': DecisionTreeClassifier(class_weight=None, criterion='entropy', max_depth=None,
            max_features=None, max_leaf_nodes=None, min_samples_leaf=5,
            min_samples_split=2, min_weight_fraction_leaf=0.0,
            presort=False, random_state=None, splitter='best')}
Reading data...
23 objects read into memory.
Reading data...
198 objects read into memory.
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.091037
      logB = -3.383400
        t0 = +32.243921
        t1 = +65.228157
    T_rise = +0.002161
    T_fall = +0.019925

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.615048
      logB = +1.393526
        t0 = +60.680463
        t1 = +66.610671
    T_rise = +0.012986
    T_fall = +0.025758

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.920157
      logB = +1.623523
        t0 = +96.953251
        t1 = +64.207684
    T_rise = +0.000000
    T_fall = +0.041009

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.527615
      logB = -3.267713
        t0 = +98.761977
        t1 = +99.981845
    T_rise = +0.056163
    T_fall = +0.002852

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.889213
      logB = -9.477417
        t0 = +83.244692
        t1 = +5.744592
    T_rise = +0.005576
    T_fall = +0.014666

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.930292
      logB = +1.633679
        t0 = +2.016022
        t1 = +66.024238
    T_rise = +0.000003
    T_fall = +0.002814

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.814741
      logB = +1.518609
        t0 = +2.016032
        t1 = +62.767646
    T_rise = +0.000004
    T_fall = +0.001400

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.775754
      logB = +0.532784
        t0 = +6.590241
        t1 = +5.447223
    T_rise = +0.004546
    T_fall = +0.000625

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.887348
      logB = -1.345417
        t0 = +4.062515
        t1 = +33.701192
    T_rise = +0.004450
    T_fall = +0.005524

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.886708
      logB = -1.346035
        t0 = +4.062412
        t1 = +33.700035
    T_rise = +0.004415
    T_fall = +0.005678

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.859888
      logB = -1.368317
        t0 = +4.060592
        t1 = +33.641277
    T_rise = +0.002116
    T_fall = +0.005663

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.861359
      logB = -1.367105
        t0 = +4.060656
        t1 = +33.644522
    T_rise = +0.004407
    T_fall = +0.005669

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.718354
      logB = +2.408209
        t0 = +5.004016
        t1 = +21.156099
    T_rise = +0.000002
    T_fall = +0.000826

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.677878
      logB = +2.369771
        t0 = +5.004015
        t1 = +20.652167
    T_rise = +0.000002
    T_fall = +0.000043

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.690332
      logB = +2.382397
        t0 = +5.004015
        t1 = +20.656675
    T_rise = +0.000001
    T_fall = +0.005617

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.701396
      logB = +2.393319
        t0 = +5.004015
        t1 = +20.608375
    T_rise = +0.000001
    T_fall = +0.003570

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.701396
      logB = +2.393319
        t0 = +5.004015
        t1 = +20.608375
    T_rise = +0.000001
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.925591
      logB = +1.629038
        t0 = +2.016001
        t1 = +65.592197
    T_rise = +0.000000
    T_fall = +0.000091

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.870310
      logB = +3.583800
        t0 = +2.018282
        t1 = +26.529946
    T_rise = +0.000723
    T_fall = +0.002369

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.049903
      logB = -1.379198
        t0 = +99.537197
        t1 = +17.905033
    T_rise = +0.001488
    T_fall = +0.033013

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.762419
      logB = -1.766943
        t0 = +55.558779
        t1 = +95.573904
    T_rise = +0.033316
    T_fall = +0.022159

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.442468
      logB = -2.433222
        t0 = +89.782729
        t1 = +89.982020
    T_rise = +0.034993
    T_fall = +0.032238

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.583127
      logB = -2.840003
        t0 = +91.874403
        t1 = +11.560556
    T_rise = +0.119739
    T_fall = +0.120197

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.940059
      logB = -2.562995
        t0 = +91.863401
        t1 = +10.010125
    T_rise = +0.127509
    T_fall = +0.126974

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.836512
      logB = +0.573926
        t0 = +65.639588
        t1 = +29.843584
    T_rise = +0.012760
    T_fall = +0.020199

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.801041
      logB = -2.269030
        t0 = +0.941986
        t1 = +23.009424
    T_rise = +0.000679
    T_fall = +0.000066

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.128474
      logB = -1.105222
        t0 = +4.136134
        t1 = +18.787905
    T_rise = +0.000757
    T_fall = +0.002330

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.068409
      logB = -1.162938
        t0 = +4.137318
        t1 = +17.024534
    T_rise = +0.004404
    T_fall = +0.004716

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.078634
      logB = -1.153084
        t0 = +4.137317
        t1 = +17.057569
    T_rise = +0.004146
    T_fall = +0.002112

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.126672
      logB = -1.106771
        t0 = +4.137309
        t1 = +17.216741
    T_rise = +0.003919
    T_fall = +0.003665

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.073058
      logB = -1.158458
        t0 = +4.137318
        t1 = +17.039158
    T_rise = +0.004174
    T_fall = +0.003399

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.128770
      logB = -1.104959
        t0 = +4.082709
        t1 = +18.789911
    T_rise = +0.005652
    T_fall = +0.002384

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.303895
      logB = -0.932770
        t0 = +18.985447
        t1 = +21.329708
    T_rise = +0.013496
    T_fall = +0.012724

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.303999
      logB = -0.932669
        t0 = +18.983693
        t1 = +21.330881
    T_rise = +0.010969
    T_fall = +0.012711

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.690487
      logB = +2.388330
        t0 = +13.090053
        t1 = +8.792472
    T_rise = +0.000001
    T_fall = +0.004204

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.911672
      logB = -2.105717
        t0 = +0.935124
        t1 = +22.321635
    T_rise = +0.000001
    T_fall = +0.000498

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.629896
      logB = -0.618883
        t0 = +9.036443
        t1 = +19.826034
    T_rise = +0.001533
    T_fall = +0.010262

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.568698
      logB = -0.678003
        t0 = +8.978219
        t1 = +19.497869
    T_rise = +0.001293
    T_fall = +0.003078

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.895015
      logB = -2.130873
        t0 = +0.936244
        t1 = +22.431702
    T_rise = +0.000023
    T_fall = +0.000316

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.842470
      logB = -2.208961
        t0 = +0.939550
        t1 = +22.763723
    T_rise = +0.000280
    T_fall = +0.000012

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.872691
      logB = -2.164299
        t0 = +0.937685
        t1 = +22.575617
    T_rise = +0.000098
    T_fall = +0.000137

  m.migrad()
198 objects fitted
Time taken is 32.19 seconds
Fitting supernova models...
Models fitted.
Created classifier of type:
AdaBoostClassifier(algorithm='SAMME.R', base_estimator=None,
          learning_rate=1.0, n_estimators=50, random_state=None)

Optimised parameters: {'n_estimators': 45, 'base_estimator': DecisionTreeClassifier(class_weight=None, criterion='entropy', max_depth=None,
            max_features=None, max_leaf_nodes=None, min_samples_leaf=5,
            min_samples_split=2, min_weight_fraction_leaf=0.0,
            presort=False, random_state=None, splitter='best')}
Reading data...
23 objects read into memory.
Reading data...
198 objects read into memory.
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -3.210618
      logB = -3.876466
        t0 = +9.136078
        t1 = +3.413181
    T_rise = +0.004149
    T_fall = +0.002315

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -3.210618
      logB = -3.876466
        t0 = +9.136078
        t1 = +3.413181
    T_rise = +0.004149
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.466168
      logB = -1.944760
        t0 = +5.010000
        t1 = +5.060944
    T_rise = +0.004157
    T_fall = +0.006791

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.291241
      logB = -1.944102
        t0 = +4.078293
        t1 = +57.195876
    T_rise = +0.001464
    T_fall = +0.005212

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.307460
      logB = -2.506050
        t0 = +4.094371
        t1 = +51.036725
    T_rise = +0.000269
    T_fall = +0.001945

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.307460
      logB = -2.506050
        t0 = +4.094371
        t1 = +51.036725
    T_rise = +0.000269
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.944859
      logB = +1.648074
        t0 = +2.016007
        t1 = +65.037242
    T_rise = +0.000001
    T_fall = +0.000737

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.391339
      logB = +1.099917
        t0 = +2.016013
        t1 = +99.910080
    T_rise = +0.000001
    T_fall = +0.000038

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.775364
      logB = -1.452162
        t0 = +2.597695
        t1 = +31.366001
    T_rise = +0.000017
    T_fall = +0.000480

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.506274
      logB = +0.230131
        t0 = +2.016984
        t1 = +61.960821
    T_rise = +0.000139
    T_fall = +0.002005

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.507770
      logB = +0.231595
        t0 = +2.016973
        t1 = +61.946946
    T_rise = +0.000129
    T_fall = +0.002446

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.021894
      logB = +0.739919
        t0 = +2.021271
        t1 = +2.576007
    T_rise = +0.000078
    T_fall = +0.000013

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.840065
      logB = +1.980325
        t0 = +26.932769
        t1 = +1.063518
    T_rise = +0.009742
    T_fall = +0.006747

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.056628
      logB = -5.325005
        t0 = +69.016772
        t1 = +1.846793
    T_rise = +0.066972
    T_fall = +0.066935

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.071541
      logB = -5.317115
        t0 = +69.153729
        t1 = +1.895039
    T_rise = +0.012805
    T_fall = +0.012925

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.339863
      logB = +0.310418
        t0 = +29.127024
        t1 = +16.055394
    T_rise = +0.016317
    T_fall = +0.000167

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.143646
      logB = -1.108982
        t0 = +35.502810
        t1 = +58.835191
    T_rise = +0.000005
    T_fall = +0.033319

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -6.588198
      logB = +4.475355
        t0 = +90.337993
        t1 = +11.688791
    T_rise = +0.018574
    T_fall = +0.000000

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.635643
      logB = -1.494683
        t0 = +57.402366
        t1 = +60.902577
    T_rise = +0.053163
    T_fall = +0.030117

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -9.690504
      logB = +4.555826
        t0 = +96.083863
        t1 = +75.778728
    T_rise = +0.014095
    T_fall = +0.028139

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.580961
      logB = -1.711488
        t0 = +58.942102
        t1 = +64.905884
    T_rise = +0.009141
    T_fall = +0.048879

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.584342
      logB = +1.014310
        t0 = +14.942070
        t1 = +58.008983
    T_rise = +0.000429
    T_fall = +0.009414

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.902611
      logB = -10.133374
        t0 = +11.672507
        t1 = +99.475990
    T_rise = +0.010405
    T_fall = +0.000001

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.900629
      logB = -2.122426
        t0 = +0.935869
        t1 = +22.394957
    T_rise = +0.000013
    T_fall = +0.000373

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.629370
      logB = -0.619396
        t0 = +9.036285
        t1 = +19.823296
    T_rise = +0.001503
    T_fall = +0.010135

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.570205
      logB = -0.676537
        t0 = +8.979582
        t1 = +19.505638
    T_rise = +0.001209
    T_fall = +0.002522

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.919435
      logB = -2.093914
        t0 = +0.934591
        t1 = +22.269413
    T_rise = +0.000001
    T_fall = +0.000596

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.832973
      logB = -2.222871
        t0 = +0.940114
        t1 = +22.821424
    T_rise = +0.000356
    T_fall = +0.000001

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.873270
      logB = -2.163429
        t0 = +0.937650
        t1 = +22.571871
    T_rise = +0.000096
    T_fall = +0.000140

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.772198
      logB = -2.310044
        t0 = +0.943626
        t1 = +23.172790
    T_rise = +0.001059
    T_fall = +0.000266

  m.migrad()
198 objects fitted
Time taken is 23.07 seconds
Fitting supernova models...
Models fitted.
Created classifier of type:

AdaBoostClassifier(algorithm='SAMME.R', base_estimator=None,
          learning_rate=1.0, n_estimators=50, random_state=None)
Optimised parameters: {'n_estimators': 35, 'base_estimator': DecisionTreeClassifier(class_weight=None, criterion='entropy', max_depth=None,
            max_features=None, max_leaf_nodes=None, min_samples_leaf=5,
            min_samples_split=2, min_weight_fraction_leaf=0.0,
            presort=False, random_state=None, splitter='best')}
Reading data...
23 objects read into memory.
Reading data...
198 objects read into memory.
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.913252
      logB = +1.616716
        t0 = +85.819598
        t1 = +65.017052
    T_rise = +0.000030
    T_fall = +0.033865

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -7.770085
      logB = -10.545954
        t0 = +51.345090
        t1 = +55.812848
    T_rise = +0.000191
    T_fall = +0.033670

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.944232
      logB = +1.647445
        t0 = +2.016003
        t1 = +64.972603
    T_rise = +0.000000
    T_fall = +0.000223

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.123687
      logB = +0.807833
        t0 = +41.765479
        t1 = +76.541451
    T_rise = +0.000397
    T_fall = +0.033120

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.978855
      logB = -1.257192
        t0 = +4.091456
        t1 = +31.593775
    T_rise = +0.000452
    T_fall = +0.004700

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.981276
      logB = -8.144134
        t0 = +84.370240
        t1 = +0.238915
    T_rise = +0.047220
    T_fall = +0.046408

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.947333
      logB = -8.131437
        t0 = +83.993832
        t1 = +0.281221
    T_rise = +0.087758
    T_fall = +0.087062

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.753477
      logB = +0.473986
        t0 = +5.005225
        t1 = +23.471059
    T_rise = +0.000154
    T_fall = +0.005179

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.753477
      logB = +0.473986
        t0 = +5.005225
        t1 = +23.471059
    T_rise = +0.000154
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.102101
      logB = -9.447141
        t0 = +93.614513
        t1 = +27.630700
    T_rise = +0.109824
    T_fall = +0.007256

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.129692
      logB = -2.752651
        t0 = +36.606779
        t1 = +28.519591
    T_rise = +0.050964
    T_fall = +0.050711

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -9.888297
      logB = -10.631646
        t0 = +72.784725
        t1 = +63.625201
    T_rise = +0.046286
    T_fall = +0.024480

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -6.360456
      logB = -10.343693
        t0 = +92.485463
        t1 = +29.896017
    T_rise = +0.080684
    T_fall = +0.001613

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -11.506833
      logB = +2.522973
        t0 = +98.006473
        t1 = +0.013550
    T_rise = +0.114822
    T_fall = +0.000768

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.322510
      logB = +2.089421
        t0 = +87.314273
        t1 = +13.223956
    T_rise = +0.000245
    T_fall = +0.060798

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.322510
      logB = +2.089421
        t0 = +87.314273
        t1 = +13.223956
    T_rise = +0.000245
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -5.312508
      logB = +3.864857
        t0 = +73.329370
        t1 = +53.559289
    T_rise = +0.064322
    T_fall = +0.095870

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.139119
      logB = -0.010761
        t0 = +4.571406
        t1 = +37.801313
    T_rise = +0.003694
    T_fall = +0.000732

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.865356
      logB = -2.175208
        t0 = +0.938145
        t1 = +22.622017
    T_rise = +0.000134
    T_fall = +0.000094

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.900039
      logB = -2.123293
        t0 = +0.935913
        t1 = +22.398655
    T_rise = +0.000014
    T_fall = +0.000366

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.809587
      logB = -2.256719
        t0 = +0.941499
        t1 = +22.959609
    T_rise = +0.000583
    T_fall = +0.000033

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.629343
      logB = -0.619424
        t0 = +9.036278
        t1 = +19.823151
    T_rise = +0.001501
    T_fall = +0.010129

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.570282
      logB = -0.676463
        t0 = +8.979653
        t1 = +19.506035
    T_rise = +0.001204
    T_fall = +0.002495

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.349105
      logB = -1.237104
        t0 = +9.596981
        t1 = +54.632379
    T_rise = +0.001089
    T_fall = +0.008656

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.349105
      logB = -1.237104
        t0 = +nan
        t1 = +54.632379
    T_rise = +0.001089
    T_fall = +0.008656

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.690850
      logB = +2.388685
        t0 = +13.090003
        t1 = +8.789471
    T_rise = +0.000000
    T_fall = +0.004100

  m.migrad()
198 objects fitted
Time taken is 20.92 seconds
Fitting supernova models...
Models fitted.
Created classifier of type:
AdaBoostClassifier(algorithm='SAMME.R', base_estimator=None,
          learning_rate=1.0, n_estimators=50, random_state=None)

Optimised parameters: {'n_estimators': 65, 'base_estimator': DecisionTreeClassifier(class_weight=None, criterion='entropy', max_depth=None,
            max_features=None, max_leaf_nodes=None, min_samples_leaf=15,
            min_samples_split=2, min_weight_fraction_leaf=0.0,
            presort=False, random_state=None, splitter='best')}
Reading data...
23 objects read into memory.
Reading data...
198 objects read into memory.
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.209996
      logB = -0.837704
        t0 = +81.511630
        t1 = +7.550902
    T_rise = +0.000349
    T_fall = +0.018122

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -10.982842
      logB = -9.420823
        t0 = +34.851762
        t1 = +63.098305
    T_rise = +0.004256
    T_fall = +0.037093

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -2.335786
      logB = +2.827066
        t0 = +6.566360
        t1 = +3.946139
    T_rise = +0.008606
    T_fall = +0.008588

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.465527
      logB = +4.134260
        t0 = +63.493709
        t1 = +68.411075
    T_rise = +0.056053
    T_fall = +0.086599

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.348479
      logB = +0.997220
        t0 = +7.044112
        t1 = +3.726541
    T_rise = +0.006885
    T_fall = +0.000001

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.348479
      logB = +0.997220
        t0 = +7.044112
        t1 = +3.726541
    T_rise = +0.006885
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.965622
      logB = +1.668835
        t0 = +53.612030
        t1 = +67.137074
    T_rise = +0.000029
    T_fall = +0.074538

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.965622
      logB = +1.668835
        t0 = +53.612030
        t1 = +67.137074
    T_rise = +0.000029
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.698752
      logB = +4.267648
        t0 = +5.147749
        t1 = +13.602846
    T_rise = +0.001879
    T_fall = +0.000076

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.885839
      logB = -1.346718
        t0 = +4.061095
        t1 = +33.324031
    T_rise = +0.002085
    T_fall = +0.002448

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.942546
      logB = -1.304723
        t0 = +4.062236
        t1 = +33.437518
    T_rise = +0.001122
    T_fall = +0.004802

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.674173
      logB = +0.394078
        t0 = +79.059348
        t1 = +2.983579
    T_rise = +0.002655
    T_fall = +0.031062

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.922377
      logB = +1.625645
        t0 = +87.041459
        t1 = +64.415990
    T_rise = +0.000000
    T_fall = +0.037527

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.734292
      logB = +0.453190
        t0 = +5.004279
        t1 = +29.033991
    T_rise = +0.000032
    T_fall = +0.005005

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.755699
      logB = +0.474192
        t0 = +5.004272
        t1 = +29.139038
    T_rise = +0.000032
    T_fall = +0.001834

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.755699
      logB = +0.474192
        t0 = +5.004272
        t1 = +29.139038
    T_rise = +0.000032
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.702107
      logB = -4.437882
        t0 = +97.820029
        t1 = +87.657114
    T_rise = +0.042814
    T_fall = +0.008884

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.850642
      logB = -10.510535
        t0 = +43.254769
        t1 = +0.135474
    T_rise = +0.049903
    T_fall = +0.040806

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.381600
      logB = -6.070805
        t0 = +82.320987
        t1 = +79.477794
    T_rise = +0.042663
    T_fall = +0.004127

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.766421
      logB = +1.974527
        t0 = +99.025093
        t1 = +99.528728
    T_rise = +0.075169
    T_fall = +0.001852

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -3.976063
      logB = +1.631576
        t0 = +57.462315
        t1 = +9.413618
    T_rise = +0.049981
    T_fall = +0.000029

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -2.153134
      logB = -7.307475
        t0 = +97.229763
        t1 = +59.719286
    T_rise = +0.041638
    T_fall = +0.000244

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.065305
      logB = -1.165932
        t0 = +4.042605
        t1 = +16.958571
    T_rise = +0.000001
    T_fall = +0.004089

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.430086
      logB = -0.754543
        t0 = +4.137132
        t1 = +8.255679
    T_rise = +0.000019
    T_fall = +0.000207

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.430086
      logB = -0.754543
        t0 = +4.137132
        t1 = +8.255679
    T_rise = +0.000019
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.909211
      logB = -2.109418
        t0 = +0.935298
        t1 = +22.337825
    T_rise = +0.000003
    T_fall = +0.000468

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.629782
      logB = -0.618994
        t0 = +9.036407
        t1 = +19.825442
    T_rise = +0.001526
    T_fall = +0.010234

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.569030
      logB = -0.677680
        t0 = +8.978516
        t1 = +19.499577
    T_rise = +0.001275
    T_fall = +0.002952

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.688619
      logB = +2.386463
        t0 = +13.090011
        t1 = +8.808871
    T_rise = +0.000001
    T_fall = +0.004716

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.084592
      logB = -1.147542
        t0 = +4.140778
        t1 = +18.718152
    T_rise = +0.003892
    T_fall = +0.003034

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.812752
      logB = -2.252184
        t0 = +0.941309
        t1 = +22.941318
    T_rise = +0.000549
    T_fall = +0.000024

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.873787
      logB = -2.162660
        t0 = +0.937617
        t1 = +22.568601
    T_rise = +0.000093
    T_fall = +0.000144

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.805537
      logB = +0.383152
        t0 = +1.366856
        t1 = +38.441737
    T_rise = +0.000118
    T_fall = +0.000241

  m.migrad()
198 objects fitted
Time taken is 20.60 seconds
Fitting supernova models...
Models fitted.
Created classifier of type:
AdaBoostClassifier(algorithm='SAMME.R', base_estimator=None,
          learning_rate=1.0, n_estimators=50, random_state=None)

Optimised parameters: {'n_estimators': 65, 'base_estimator': DecisionTreeClassifier(class_weight=None, criterion='entropy', max_depth=None,
            max_features=None, max_leaf_nodes=None, min_samples_leaf=5,
            min_samples_split=2, min_weight_fraction_leaf=0.0,
            presort=False, random_state=None, splitter='best')}
Reading data...
23 objects read into memory.
Reading data...
198 objects read into memory.
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -10.313592
      logB = +3.647974
        t0 = +80.057478
        t1 = +1.351416
    T_rise = +0.108420
    T_fall = +0.108242

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.438870
      logB = +0.771078
        t0 = +12.775255
        t1 = +59.120295
    T_rise = +0.011512
    T_fall = +0.017751

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.438870
      logB = +0.771078
        t0 = +12.775255
        t1 = +59.120295
    T_rise = +0.011512
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.758458
      logB = -7.116454
        t0 = +80.555809
        t1 = +6.506265
    T_rise = +0.012399
    T_fall = +0.106734

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.355703
      logB = -2.547797
        t0 = +99.991758
        t1 = +16.780896
    T_rise = +0.003605
    T_fall = +0.019144

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.111696
      logB = -3.887129
        t0 = +81.862421
        t1 = +91.327553
    T_rise = +0.020038
    T_fall = +0.062830

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -5.431271
      logB = +3.728424
        t0 = +56.107673
        t1 = +78.788537
    T_rise = +0.028551
    T_fall = +0.000950

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.584573
      logB = +1.292185
        t0 = +3.714615
        t1 = +20.213724
    T_rise = +0.000114
    T_fall = +0.001119

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.626655
      logB = +2.164738
        t0 = +58.478902
        t1 = +68.720382
    T_rise = +0.031214
    T_fall = +0.083439

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.905949
      logB = +4.600371
        t0 = +4.280498
        t1 = +65.476878
    T_rise = +0.000114
    T_fall = +0.001918

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.626468
      logB = +2.164514
        t0 = +58.482906
        t1 = +68.711184
    T_rise = +0.031838
    T_fall = +0.081068

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.626454
      logB = +2.164497
        t0 = +58.483201
        t1 = +68.710507
    T_rise = +0.031884
    T_fall = +0.080894

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.580573
      logB = +2.112131
        t0 = +58.470718
        t1 = +69.025212
    T_rise = +0.031846
    T_fall = +0.083223

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.920415
      logB = +1.623943
        t0 = +2.016001
        t1 = +66.389309
    T_rise = +0.000000
    T_fall = +0.000199

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.097320
      logB = -6.172126
        t0 = +57.485654
        t1 = +0.499767
    T_rise = +0.038547
    T_fall = +0.064776

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -9.106479
      logB = +4.288676
        t0 = +54.007366
        t1 = +5.375984
    T_rise = +0.004283
    T_fall = +0.036393

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.961416
      logB = -1.273805
        t0 = +4.090042
        t1 = +29.353224
    T_rise = +0.000071
    T_fall = +0.005775

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.194122
      logB = -1.057284
        t0 = +21.411939
        t1 = +32.838609
    T_rise = +0.009629
    T_fall = +0.023411

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.931337
      logB = -1.303043
        t0 = +4.097677
        t1 = +30.801391
    T_rise = +0.002457
    T_fall = +0.000033

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.934495
      logB = +1.637786
        t0 = +2.016001
        t1 = +65.060093
    T_rise = +0.000000
    T_fall = +0.001990

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.552128
      logB = +0.274357
        t0 = +11.360107
        t1 = +2.668974
    T_rise = +0.009423
    T_fall = +0.011623

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.552128
      logB = +0.274357
        t0 = +23.873112
        t1 = +2.668974
    T_rise = +0.009423
    T_fall = +0.011623

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.552128
      logB = +0.274357
        t0 = +9.334324
        t1 = +2.668974
    T_rise = +0.009423
    T_fall = +0.011623

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.904402
      logB = +4.314155
        t0 = +54.902869
        t1 = +82.757930
    T_rise = +0.018557
    T_fall = +0.000000

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.850370
      logB = -2.965259
        t0 = +62.528055
        t1 = +1.064802
    T_rise = +0.000115
    T_fall = +0.000234

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.119721
      logB = -1.993914
        t0 = +33.771254
        t1 = +32.472632
    T_rise = +0.000384
    T_fall = +0.005278

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.546575
      logB = -2.684324
        t0 = +75.688688
        t1 = +26.254083
    T_rise = +0.090120
    T_fall = +0.032768

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.141239
      logB = +3.907048
        t0 = +22.637197
        t1 = +38.160600
    T_rise = +0.020098
    T_fall = +0.001506

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.024109
      logB = +2.705869
        t0 = +4.137008
        t1 = +4.059974
    T_rise = +0.000000
    T_fall = +0.005283

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.240305
      logB = +2.920692
        t0 = +26.668579
        t1 = +2.839481
    T_rise = +0.000023
    T_fall = +0.002100

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.240305
      logB = +2.920692
        t0 = +26.668579
        t1 = +2.839481
    T_rise = +0.000023
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.275749
      logB = -0.960088
        t0 = +12.020217
        t1 = +25.162715
    T_rise = +0.000651
    T_fall = +0.002399

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.893243
      logB = -2.133511
        t0 = +0.936367
        t1 = +22.443052
    T_rise = +0.000028
    T_fall = +0.000298

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.272847
      logB = -1.275801
        t0 = +98.101385
        t1 = +15.002596
    T_rise = +0.000002
    T_fall = +0.002937

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.353543
      logB = +1.533351
        t0 = +85.963148
        t1 = +9.770676
    T_rise = +0.025112
    T_fall = +0.090159

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -3.521804
      logB = -4.600730
        t0 = +72.679622
        t1 = +55.569646
    T_rise = +0.044287
    T_fall = +0.042381

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.838456
      logB = -2.214851
        t0 = +0.939789
        t1 = +22.788216
    T_rise = +0.000311
    T_fall = +0.000005

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.979097
      logB = -0.285116
        t0 = +12.022989
        t1 = +32.337405
    T_rise = +0.000151
    T_fall = +0.013797

  m.migrad()
198 objects fitted
Time taken is 21.07 seconds
Fitting supernova models...
Models fitted.
Created classifier of type:
AdaBoostClassifier(algorithm='SAMME.R', base_estimator=None,
          learning_rate=1.0, n_estimators=50, random_state=None)

Optimised parameters: {'n_estimators': 75, 'base_estimator': DecisionTreeClassifier(class_weight=None, criterion='entropy', max_depth=None,
            max_features=None, max_leaf_nodes=None, min_samples_leaf=5,
            min_samples_split=2, min_weight_fraction_leaf=0.0,
            presort=False, random_state=None, splitter='best')}

WARNING: Upper boundary on parameter n_estimators may be too low. Optimum may not have been reached.

Reading data...
23 objects read into memory.
Reading data...
198 objects read into memory.
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.662497
      logB = -5.289170
        t0 = +5.020226
        t1 = +10.675188
    T_rise = +0.000063
    T_fall = +0.001428

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.441486
      logB = -2.311454
        t0 = +5.020451
        t1 = +9.401942
    T_rise = +0.000033
    T_fall = +0.003417

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.736251
      logB = +3.385446
        t0 = +5.027006
        t1 = +9.281423
    T_rise = +0.000000
    T_fall = +0.005028

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -3.174167
      logB = -5.389097
        t0 = +4.097916
        t1 = +87.791097
    T_rise = +0.000399
    T_fall = +0.001192

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -3.174167
      logB = -5.389097
        t0 = +4.097916
        t1 = +87.791097
    T_rise = +0.000399
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.097153
      logB = -1.944967
        t0 = +43.235397
        t1 = +6.252509
    T_rise = +0.001484
    T_fall = +0.002614

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.915109
      logB = -1.318435
        t0 = +4.099970
        t1 = +32.878873
    T_rise = +0.000462
    T_fall = +0.000017

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.852222
      logB = -1.378922
        t0 = +4.090278
        t1 = +23.456512
    T_rise = +0.000480
    T_fall = +0.000570

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.906743
      logB = -1.326258
        t0 = +4.090275
        t1 = +23.691404
    T_rise = +0.000474
    T_fall = +0.004147

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.227583
      logB = +0.942117
        t0 = +5.027021
        t1 = +5.073688
    T_rise = +0.003334
    T_fall = +0.003516

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.227583
      logB = +0.942117
        t0 = +5.027021
        t1 = +5.073688
    T_rise = +0.003334
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.209402
      logB = -1.718012
        t0 = +86.801976
        t1 = +67.072128
    T_rise = +0.029757
    T_fall = +0.105399

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -11.211885
      logB = -8.450221
        t0 = +99.999978
        t1 = +14.412726
    T_rise = +0.130966
    T_fall = +0.050030

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -11.508565
      logB = -9.568234
        t0 = +63.093339
        t1 = +86.783191
    T_rise = +0.033122
    T_fall = +0.016151

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.690989
      logB = +2.388843
        t0 = +13.090002
        t1 = +8.787815
    T_rise = +0.000004
    T_fall = +0.004076

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.887383
      logB = +2.582925
        t0 = +74.509734
        t1 = +4.706672
    T_rise = +0.000000
    T_fall = +0.002913

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.915516
      logB = -2.099874
        t0 = +0.934862
        t1 = +22.295810
    T_rise = +0.000000
    T_fall = +0.000546

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.873707
      logB = -2.162815
        t0 = +0.937615
        t1 = +22.569384
    T_rise = +0.000094
    T_fall = +0.000144

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.504841
      logB = -1.145518
        t0 = +82.619938
        t1 = +17.019854
    T_rise = +0.000026
    T_fall = +0.044613

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.630072
      logB = -0.618712
        t0 = +9.036498
        t1 = +19.826952
    T_rise = +0.001543
    T_fall = +0.010306

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.568182
      logB = -0.678506
        t0 = +8.977757
        t1 = +19.495214
    T_rise = +0.001323
    T_fall = +0.003278

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.790900
      logB = -2.283507
        t0 = +0.942571
        t1 = +23.067408
    T_rise = +0.000803
    T_fall = +0.000121

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.180350
      logB = -1.051475
        t0 = +12.354650
        t1 = +19.108231
    T_rise = +0.000050
    T_fall = +0.000614

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.690495
      logB = +2.388335
        t0 = +13.090003
        t1 = +8.792498
    T_rise = +0.000000
    T_fall = +0.004196

  m.migrad()
198 objects fitted
Time taken is 25.87 seconds
Fitting supernova models...
Models fitted.
Created classifier of type:
AdaBoostClassifier(algorithm='SAMME.R', base_estimator=None,
          learning_rate=1.0, n_estimators=50, random_state=None)

Optimised parameters: {'n_estimators': 75, 'base_estimator': DecisionTreeClassifier(class_weight=None, criterion='entropy', max_depth=None,
            max_features=None, max_leaf_nodes=None, min_samples_leaf=15,
            min_samples_split=2, min_weight_fraction_leaf=0.0,
            presort=False, random_state=None, splitter='best')}

WARNING: Upper boundary on parameter n_estimators may be too low. Optimum may not have been reached.

Reading data...
23 objects read into memory.
Reading data...
198 objects read into memory.
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.052116
      logB = -5.644121
        t0 = +79.003573
        t1 = +96.947648
    T_rise = +0.000770
    T_fall = +0.077131

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.683175
      logB = -0.518647
        t0 = +4.091857
        t1 = +4.053850
    T_rise = +0.000333
    T_fall = +0.001239

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.683175
      logB = -0.518647
        t0 = +4.091857
        t1 = +4.053850
    T_rise = +0.000333
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.098536
      logB = -1.144148
        t0 = +88.852136
        t1 = +33.739579
    T_rise = +0.003414
    T_fall = +0.082495

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -10.809153
      logB = -7.558458
        t0 = +37.149408
        t1 = +98.275442
    T_rise = +0.000245
    T_fall = +0.001356

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.897569
      logB = -2.288970
        t0 = +37.673854
        t1 = +13.892209
    T_rise = +0.002041
    T_fall = +0.031538

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -9.566861
      logB = -2.237858
        t0 = +92.073138
        t1 = +40.544598
    T_rise = +0.111921
    T_fall = +0.033278

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.552067
      logB = -11.456869
        t0 = +46.883567
        t1 = +94.233599
    T_rise = +0.012423
    T_fall = +0.054425

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.765180
      logB = -11.490753
        t0 = +99.448080
        t1 = +26.492187
    T_rise = +0.000268
    T_fall = +0.055219

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +5.983713
      logB = +2.342322
        t0 = +51.237578
        t1 = +99.689228
    T_rise = +0.002287
    T_fall = +0.003141

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -10.717334
      logB = -9.286225
        t0 = +76.372838
        t1 = +0.689658
    T_rise = +0.060669
    T_fall = +0.013080

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -0.215929
      logB = +3.638552
        t0 = +45.108501
        t1 = +74.366787
    T_rise = +0.024309
    T_fall = +0.057463

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.904870
      logB = +4.204692
        t0 = +54.227613
        t1 = +95.670880
    T_rise = +0.016044
    T_fall = +0.005506

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.650696
      logB = -4.428436
        t0 = +72.881458
        t1 = +7.616446
    T_rise = +0.000390
    T_fall = +0.011730

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.690612
      logB = +2.388446
        t0 = +13.090003
        t1 = +8.791595
    T_rise = +0.000000
    T_fall = +0.004165

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.849772
      logB = -2.198252
        t0 = +0.939103
        t1 = +22.719116
    T_rise = +0.000228
    T_fall = +0.000029

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.906584
      logB = -2.113460
        t0 = +0.935463
        t1 = +22.355823
    T_rise = +0.000005
    T_fall = +0.000439

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.424681
      logB = -3.234051
        t0 = +0.053938
        t1 = +4.340154
    T_rise = +0.000057
    T_fall = +0.000065

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.424681
      logB = -3.234051
        t0 = +nan
        t1 = +4.340154
    T_rise = +0.000057
    T_fall = +0.000065

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.424681
      logB = -3.234051
        t0 = +0.042565
        t1 = +4.340154
    T_rise = +0.000057
    T_fall = +0.000012

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -1.424681
      logB = -3.234051
        t0 = +0.042565
        t1 = +4.340154
    T_rise = +0.000057
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.629656
      logB = -0.619118
        t0 = +9.036369
        t1 = +19.824781
    T_rise = +0.001519
    T_fall = +0.010203

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.569393
      logB = -0.677327
        t0 = +8.978845
        t1 = +19.501448
    T_rise = +0.001254
    T_fall = +0.002816

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.713175
      logB = +1.415818
        t0 = +7.801175
        t1 = +30.552370
    T_rise = +0.007503
    T_fall = +0.001112

  m.migrad()
198 objects fitted
Time taken is 23.06 seconds
Fitting supernova models...
Models fitted.
Created classifier of type:
AdaBoostClassifier(algorithm='SAMME.R', base_estimator=None,
          learning_rate=1.0, n_estimators=50, random_state=None)

Optimised parameters: {'n_estimators': 75, 'base_estimator': DecisionTreeClassifier(class_weight=None, criterion='entropy', max_depth=None,
            max_features=None, max_leaf_nodes=None, min_samples_leaf=15,
            min_samples_split=2, min_weight_fraction_leaf=0.0,
            presort=False, random_state=None, splitter='best')}

WARNING: Upper boundary on parameter n_estimators may be too low. Optimum may not have been reached.

Reading data...
23 objects read into memory.
Reading data...
198 objects read into memory.
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.757308
      logB = -0.525425
        t0 = +62.838044
        t1 = +8.840633
    T_rise = +0.000307
    T_fall = +0.032183

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.757308
      logB = -0.525425
        t0 = +62.838044
        t1 = +8.840633
    T_rise = +0.000307
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.882084
      logB = -1.350453
        t0 = +4.039916
        t1 = +33.471405
    T_rise = +0.000031
    T_fall = +0.005588

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:138: RuntimeWarning: overflow encountered in multiply
  chi2=np.sum((y-ynew)*(y-ynew)/err/err)
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.169495
      logB = -2.028300
        t0 = +4.087293
        t1 = +11.079408
    T_rise = +0.004854
    T_fall = +0.000201

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.110184
      logB = +3.824790
        t0 = +2.016833
        t1 = +2.996918
    T_rise = +0.000415
    T_fall = +0.000441

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +nan
      logB = +nan
        t0 = +nan
        t1 = +nan
    T_rise = +nan
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -nan
      logB = -nan
        t0 = -nan
        t1 = -nan
    T_rise = -nan
    T_fall = -nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +6.504784
      logB = +4.157557
        t0 = +5.282773
        t1 = +15.663738
    T_rise = +0.003117
    T_fall = +0.007032

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.969901
      logB = +0.680296
        t0 = +97.272638
        t1 = +76.430122
    T_rise = +0.013315
    T_fall = +0.084628

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.093293
      logB = -10.664404
        t0 = +71.781669
        t1 = +20.106320
    T_rise = +0.023882
    T_fall = +0.020983

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: invalid value encountered in divide
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.266322
      logB = -0.031457
        t0 = +4.115899
        t1 = +63.599597
    T_rise = +0.002040
    T_fall = +0.003936

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.212597
      logB = -0.080074
        t0 = +4.115092
        t1 = +58.262295
    T_rise = +0.002344
    T_fall = +0.001483

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.212597
      logB = -0.080074
        t0 = +4.115092
        t1 = +58.262295
    T_rise = +0.002344
    T_fall = +nan

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -4.925571
      logB = +0.529364
        t0 = +80.217912
        t1 = +0.092957
    T_rise = +0.082461
    T_fall = +0.000633

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +2.854502
      logB = +0.600551
        t0 = +33.243374
        t1 = +29.830678
    T_rise = +0.000002
    T_fall = +0.006130

  m.migrad()
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/parametric_models.py:153: RuntimeWarning: overflow encountered in multiply
  return A*(1+B*(t-t1)*(t-t1))*np.exp(-(t-t0)/T_fall)/(1+np.exp(-(t-t0)/T_rise))
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = -11.158349
      logB = -6.106662
        t0 = +45.477032
        t1 = +18.025353
    T_rise = +0.000358
    T_fall = +0.000982

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.820591
      logB = -2.240843
        t0 = +0.940853
        t1 = +22.895096
    T_rise = +0.000469
    T_fall = +0.000007

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +0.896411
      logB = -2.128756
        t0 = +0.936155
        t1 = +22.422438
    T_rise = +0.000020
    T_fall = +0.000329

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +3.391765
      logB = +1.199891
        t0 = +23.503082
        t1 = +27.236480
    T_rise = +0.020870
    T_fall = +0.009359

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.629165
      logB = -0.619596
        t0 = +9.036228
        t1 = +19.822229
    T_rise = +0.001491
    T_fall = +0.010088

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +1.570774
      logB = -0.675984
        t0 = +8.980106
        t1 = +19.508583
    T_rise = +0.001177
    T_fall = +0.002324

  m.migrad()
/home/robert/developing/snmachine/snmachine/snfeatures.py:161: RuntimeWarning: fcn returns Nan
fcn is called with following arguments:
      logA = +4.898123
      logB = +2.593608
        t0 = +98.165728
        t1 = +4.639384
    T_rise = +0.000000
    T_fall = +0.028864

  m.migrad()
198 objects fitted
Time taken is 24.61 seconds
Fitting supernova models...
Models fitted.
Created classifier of type:
AdaBoostClassifier(algorithm='SAMME.R', base_estimator=None,
          learning_rate=1.0, n_estimators=50, random_state=None)

Optimised parameters: {'n_estimators': 55, 'base_estimator': DecisionTreeClassifier(class_weight=None, criterion='entropy', max_depth=None,
            max_features=None, max_leaf_nodes=None, min_samples_leaf=5,
            min_samples_split=2, min_weight_fraction_leaf=0.0,
            presort=False, random_state=None, splitter='best')}

In [9]:
auc_allclass


Out[9]:
{'boost_dt': array([ 0.9987163 ,  0.95171958,  0.91381669,  0.94740741,  0.95299647,
         0.83969907,  0.94749695,  0.96506211,  0.93223443,  0.99005682,
         0.95314506]),
 'nb': array([ 0.9437799 ,  0.95257143,  0.86392811,  0.88766789,  0.74740741,
         0.75738126,  0.72962963,  0.83994528,  0.66914286,  0.60515873,
         0.585     ]),
 'svm': array([ 0.98990683,  0.85943517,  0.88139205,  0.86184211,  0.93589744,
         0.92368742,  0.9623803 ,  0.71142857,  0.83431257,  0.83490012,
         0.88492063])}

In [ ]:


In [ ]:


In [10]:
for cl in classifiers:
    plt.plot(np.linspace(1., 2., 11), auc_allclass[cl])
plt.show()



In [ ]:


In [ ]:


In [ ]:


In [ ]:
dat1.plot_all()

In [ ]:


In [ ]:
plt.figure()
tsne_plot.plot(mod1_features,join(mod1_features,types)['Type'])

In [ ]:
plt.figure()
clss=snclassifier.run_pipeline(mod1_features,types,output_name=os.path.join(out_class,'model1'),
                          classifiers=['nb','svm','boost_dt'], nprocesses=4)
waveFeats=snfeatures.WaveletFeatures()
%%capture --no-stdout if read_from_file: wave_features=Table.read('%s_wavelets.dat' %run_name, format='ascii') #Crucial for this format of id's blah=wave_features['Object'].astype(str) wave_features.replace_column('Object', blah) PCA_vals=np.loadtxt('%s_wavelets_PCA_vals.dat' %run_name) PCA_vec=np.loadtxt('%s_wavelets_PCA_vec.dat' %run_name) PCA_mean=np.loadtxt('%s_wavelets_PCA_mean.dat' %run_name) else: wave_features=waveFeats.extract_features(dat,nprocesses=6,output_root=out_int,save_output='all') wave_features.write('%s_wavelets.dat' %run_name, format='ascii') np.savetxt('%s_wavelets_PCA_vals.dat' %run_name,waveFeats.PCA_eigenvals) np.savetxt('%s_wavelets_PCA_vec.dat' %run_name,waveFeats.PCA_eigenvectors) np.savetxt('%s_wavelets_PCA_mean.dat' %run_name,waveFeats.PCA_mean) PCA_vals=waveFeats.PCA_eigenvals PCA_vec=waveFeats.PCA_eigenvectors PCA_mean=waveFeats.PCA_mean

In [ ]:
np.sort(dat.object_names)

In [ ]:
dat.set_model(waveFeats.fit_sn,wave_features,PCA_vec,PCA_mean,0,dat.get_max_length(),dat.filter_set)

In [ ]:
#dat.plot_all()

In [ ]:
#wave_features

In [ ]:
#types

In [ ]:
#join(wave_features, types)

In [ ]:
#plt.figure()
#tsne_plot.plot(wave_features,join(wave_features,types)['Type'])
#This is a Features object, not yet the extracted features #We need to register the LSST bands with sncosmo (which is why lsst_bands=True) salt2Feats=snfeatures.TemplateFeatures(sampler='leastsq') #This performs the actual feature extraction. All feature extraction methods are parallelised with multiprocessing, #just set nprocesses>1 for parallelisation. if read_from_file: salt2_features=Table.read('%s_templates.dat' %run_name, format='ascii') blah=salt2_features['Object'].astype(str) salt2_features.replace_column('Object', blah) else: salt2_features=salt2Feats.extract_features(dat,use_redshift=True,nprocesses=6,chain_directory=out_int) salt2_features.write('%s_templates.dat' %run_name, format='ascii')

In [ ]:
#This code takes the fitted parameters and generates the model light curve for plotting purposes.
#dat.set_model(salt2Feats.fit_sn,salt2_features)

In [ ]:
#dat.plot_all()

In [ ]:
#dat.data[dat.object_names[5]]

In [ ]:


In [ ]: