Skip to content

Dataclusters iter() not functioning in PeakExtraction class #77

Closed

Description

@stevenhua0320

When running peakextraction.py example, we have this error
Traceback (most recent call last):
File "/Users/huarundong/dbs/diffpy.srmise/diffpy.srmise/src/diffpy/srmise/peakextraction.py", line 1331, in <module> te.extract_single()
File "/Users/huarundong/dbs/diffpy.srmise/diffpy.srmise/src/diffpy/srmise/peakextraction.py", line 796, in extract_single for step in dclusters:
TypeError: iter() returned non-iterator of type 'DataClusters'
It still maintains the DataClusters original __iter__ and I changed original next() to __next__, but the issue persists.

Activity

  1. changed the title [-]Dataclusters iter() not functioning[/-] [+]Dataclusters iter() not functioning in PeakExtraction class[/+] on Aug 16, 2024
  2. added this to the 0.8.0 milestone on Apr 3, 2026
  3. stevenhua0320 commented on Apr 9, 2026

    @stevenhua0320
    ContributorAuthor

    This has been fixed by PR #178 as at that time we made a mistake on changing the AIC regularization logic, so we run into issue. Now since it is fixed, it could be run successfully.

    /opt/miniconda3/envs/diffpy.srmise_env/bin/python /Users/huarundong/dbs/diffpy.srmise/diffpy.srmise/src/diffpy/srmise/peakextraction.py 
    Setting variable rng=[1.51, 10.0]
    Setting variable pf=[<diffpy.srmise.peaks.gaussianoverr.GaussianOverR object at 0x10ac417f0>]
    Setting variable cres=0.1
    Setting variable effective_dy=[1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5
     1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5
     1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5
     1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5
     1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5
     1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5
     1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5
     1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5
     1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5
     1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5
     1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5
     1.5 1.5]
    Estimate: [2.99356631 0.1400762  7.53753299]
    Fit: No model to fit, estimation not possible.
    Fit: No model to fit, estimation not possible.
    Estimate: [3.50759357 0.11965854 6.40571776]
    Fit: No model to fit, estimation not possible.
    Fit: No model to fit, estimation not possible.
    Fit: No model to fit, estimation not possible.
    Fit: No model to fit, estimation not possible.
    Fit: No model to fit, estimation not possible.
    Estimate: [2.22017036 0.1498427  0.58143493]
    Estimate: [3.90972083 0.06442648 0.49051596]
    Estimate: [2.55520338 0.06462146 0.43496258]
    Estimate: [2.09986731 0.06851017 0.35044666]
    Estimate: [3.89965969 0.10237278 0.77741733]
    
    *********STARTING RECURSION level 2 (reduce at border)************
    Fit: No model to fit, estimation not possible.
    Estimate: [3.47281348 0.13785754 3.82605362]
    Fit: No model to fit, estimation not possible.
    Fit: No model to fit, estimation not possible.
    Fit: No model to fit, estimation not possible.
    Estimate: [3.08828584 0.0789837  0.95685852]
    Estimate: [2.8960668  0.04352981 0.571511  ]
    Fit: No model to fit, estimation not possible.
    Estimate: [2.7215708  0.07388653 0.44742669]
    Estimate: [2.71512715 0.07960683 0.48092514]
    Estimate: [2.71512715 0.07960683 0.48092514]
    
    *********STARTING RECURSION level 3 (prefit)************
    *********ENDING RECURSION level 3 (prefit) ************
    
    
    *********STARTING RECURSION level 3 (reduce at border)************
    Estimate: [3.08145691 0.03356856 0.20994503]
    ====Pruning fits:====
    Original model:
    [3.08026563 0.02538103 0.15400129]
    
    w/ quality: 117.66982011070746
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 111.87944725922662
    =================
    *********ENDING RECURSION level 3 (reduce at border) ************
    
    
    *********STARTING RECURSION level 3 (prefit)************
    Fit: No model to fit, estimation not possible.
    Estimate: [3.10903085 0.13375883 0.86650419]
    Fit: No model to fit, estimation not possible.
    Estimate: [3.51879005 0.03471928 0.31496707]
    ====Pruning fits:====
    Original model:
    [3.08458669 0.00602681 0.19269712]
    [3.51820358 0.01526486 0.15011838]
    
    w/ quality: 34.85543634850272
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 28.605550435889707
    =================
    *********ENDING RECURSION level 3 (prefit) ************
    
    Estimate: [2.71512715 0.07960683 0.48092514]
    
    *********STARTING RECURSION level 3 (prefit)************
    Fit: No model to fit, estimation not possible.
    Estimate: [2.77899971 0.09200984 0.56861491]
    Estimate: [3.08169689 0.03468535 0.22270623]
    Estimate: [2.75873414 0.16494788 1.0119337 ]
    Estimate: [2.76065939 0.16053654 0.98555801]
    Estimate: [2.79668358 0.24589547 1.52928815]
    Estimate: [2.79668358 0.24589547 1.52928815]
    Estimate: [2.79668358 0.24589547 1.52928815]
    ====Pruning fits:====
    Original model:
    [3.08463262 0.00568216 0.23023674]
    
    w/ quality: 28.60130933074767
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 24.782973113824188
    =================
    *********ENDING RECURSION level 3 (prefit) ************
    
    
    *********STARTING RECURSION level 3 (full boundary)************
    Fit: No model to fit, estimation not possible.
    Estimate: [2.77893165 0.09182879 0.56747191]
    Estimate: [3.08169699 0.03468685 0.22272556]
    Estimate: [2.75863423 0.16475412 1.01069018]
    Estimate: [2.76053511 0.16032702 0.98420971]
    Estimate: [2.79666462 0.24587818 1.52914275]
    Estimate: [2.79666462 0.24587818 1.52914275]
    Estimate: [2.79666462 0.24587818 1.52914275]
    ====Pruning fits:====
    Original model:
    [3.0845939  0.00597436 0.19750814]
    
    w/ quality: 28.60111275082764
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 24.783019712466707
    =================
    *********ENDING RECURSION level 3 (full boundary) ************
    
    ====Pruning fits:====
    Original model:
    [2.89278487 0.08425941 0.84913031]
    [3.11681804 0.10322018 0.83202485]
    [3.46157984 0.11218892 3.05673345]
    
    w/ quality: 1471.6811220427062
    Best model after pruning is:
    [2.89278487 0.08425941 0.84913031]
    [3.11681804 0.10322018 0.83202485]
    [3.46157984 0.11218892 3.05673345]
    
    w/ quality: 1471.6811220427062
    =================
    *********ENDING RECURSION level 2 (reduce at border) ************
    
    
    *********STARTING RECURSION level 2 (prefit)************
    Fit: No model to fit, estimation not possible.
    Fit: No model to fit, estimation not possible.
    Fit: No model to fit, estimation not possible.
    Fit: No model to fit, estimation not possible.
    Fit: No model to fit, estimation not possible.
    Estimate: [3.11611506 0.17766319 1.01597727]
    Fit: No model to fit, estimation not possible.
    Estimate: [3.63070608 0.08563912 0.59685048]
    Estimate: [3.53135948 0.03903186 0.23085941]
    Estimate: [3.08750308 0.37664922 2.13411352]
    Estimate: [2.71882257 0.07691395 0.42183381]
    Estimate: [3.41164935 0.03575132 0.20423607]
    Estimate: [2.72077438 0.13940753 0.7651281 ]
    
    *********STARTING RECURSION level 3 (full boundary)************
    *********ENDING RECURSION level 3 (full boundary) ************
    
    Estimate: [2.89645111 0.02509961 0.1255991 ]
    Estimate: [3.65300547 0.14861914 1.04214302]
    
    *********STARTING RECURSION level 3 (full boundary)************
    *********ENDING RECURSION level 3 (full boundary) ************
    
    
    *********STARTING RECURSION level 3 (reduce at border)************
    *********ENDING RECURSION level 3 (reduce at border) ************
    
    
    *********STARTING RECURSION level 3 (prefit)************
    Estimate: [3.63070602 0.08563926 0.5968503 ]
    Estimate: [3.61818043 0.14590975 1.01338851]
    Estimate: [3.61151867 0.18559897 1.28666911]
    ====Pruning fits:====
    Original model:
    [3.61151867 0.18559897 1.28666911]
    
    w/ quality: 46.290349796993496
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 16.043448110595588
    =================
    *********ENDING RECURSION level 3 (prefit) ************
    
    Estimate: [3.11466534 0.19130527 1.09348132]
    
    *********STARTING RECURSION level 3 (reduce at border)************
    *********ENDING RECURSION level 3 (reduce at border) ************
    
    
    *********STARTING RECURSION level 3 (prefit)************
    Estimate: [3.11611152 0.17762204 1.01574076]
    Estimate: [3.08750062 0.37657566 2.13369503]
    Estimate: [3.09104661 0.27786949 1.57622953]
    Estimate: [3.09104661 0.27786949 1.57622953]
    Estimate: [3.09157466 0.18805162 1.06691509]
    ====Pruning fits:====
    Original model:
    [3.09157466 0.18805162 1.06691509]
    
    w/ quality: 39.733342397504806
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 14.719033619169421
    =================
    *********ENDING RECURSION level 3 (prefit) ************
    
    
    *********STARTING RECURSION level 3 (reduce at border)************
    Estimate: [3.63070602 0.08563926 0.5968503 ]
    Estimate: [3.61818043 0.14590975 1.01338851]
    Estimate: [3.60908811 0.14593858 1.01104163]
    ====Pruning fits:====
    Original model:
    [3.60908811 0.14593858 1.01104163]
    
    w/ quality: 43.459870550854916
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 18.56455365625683
    =================
    *********ENDING RECURSION level 3 (reduce at border) ************
    
    
    *********STARTING RECURSION level 3 (prefit)************
    Estimate: [3.63070602 0.08563926 0.5968503 ]
    Estimate: [3.61818043 0.14590975 1.01338851]
    Estimate: [3.60908805 0.14593913 1.01104546]
    ====Pruning fits:====
    Original model:
    [3.60908805 0.14593913 1.01104546]
    
    w/ quality: 43.45938547928654
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 18.56450502567728
    =================
    *********ENDING RECURSION level 3 (prefit) ************
    
    
    *********STARTING RECURSION level 3 (reduce at border)************
    Fit: No model to fit, estimation not possible.
    Estimate: [3.11611152 0.17762204 1.01574076]
    Estimate: [3.08750062 0.37657566 2.13369503]
    Estimate: [2.75837604 0.04168921 0.23155529]
    Estimate: [2.75976735 0.12788737 0.71068591]
    Estimate: [2.75976735 0.12788737 0.71068591]
    Estimate: [2.75976735 0.12788737 0.71068591]
    Estimate: [3.09017613 0.26751602 1.51707159]
    Estimate: [2.76115976 0.15795044 0.87819298]
    ====Pruning fits:====
    Original model:
    [3.09017613 0.26751602 1.51707159]
    
    w/ quality: 60.4035851499278
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 26.394631761716493
    =================
    *********ENDING RECURSION level 3 (reduce at border) ************
    
    
    *********STARTING RECURSION level 3 (prefit)************
    Fit: No model to fit, estimation not possible.
    Estimate: [3.11611152 0.17762204 1.01574076]
    Estimate: [3.08750062 0.37657566 2.13369503]
    Estimate: [2.758376   0.04168918 0.2315557 ]
    Estimate: [2.75976657 0.12789259 0.71071648]
    Estimate: [2.75976657 0.12789259 0.71071648]
    Estimate: [2.75976657 0.12789259 0.71071648]
    Estimate: [3.09017613 0.26751602 1.51707159]
    Estimate: [2.7611567  0.1579459  0.87816892]
    ====Pruning fits:====
    Original model:
    [3.09017613 0.26751602 1.51707159]
    
    w/ quality: 60.40365906693852
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 26.39463174235744
    =================
    *********ENDING RECURSION level 3 (prefit) ************
    
    
    *********STARTING RECURSION level 3 (reduce at border)************
    Estimate: [3.11611151 0.17762203 1.0157407 ]
    Estimate: [3.08750062 0.37657565 2.13369493]
    Estimate: [3.08997169 0.22784162 1.29199431]
    ====Pruning fits:====
    Original model:
    [3.08997169 0.22784162 1.29199431]
    
    w/ quality: 50.87695231802393
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 21.482350714180956
    =================
    *********ENDING RECURSION level 3 (reduce at border) ************
    
    
    *********STARTING RECURSION level 3 (prefit)************
    Estimate: [3.11611373 0.17764781 1.01588886]
    Estimate: [3.08750217 0.37662163 2.13395656]
    Estimate: [3.09046762 0.2348578  1.33199385]
    ====Pruning fits:====
    Original model:
    [3.09046762 0.2348578  1.33199385]
    
    w/ quality: 51.59309224928611
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 21.47098531628423
    =================
    *********ENDING RECURSION level 3 (prefit) ************
    
    ====Pruning fits:====
    Original model:
    [2.67448649 0.05385729 0.12416985]
    [2.89740414 0.01778777 0.10294157]
    [3.25721276 0.0464068  0.11491412]
    [3.42016523 0.02601517 0.12752114]
    [3.51575182 0.00629108 0.13131684]
    [3.69115786 0.01901482 0.10720546]
    
    w/ quality: 81.88251206768149
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 54.03690167072825
    =================
    *********ENDING RECURSION level 2 (prefit) ************
    
    
    *********STARTING RECURSION level 2 (full boundary)************
    *********ENDING RECURSION level 2 (full boundary) ************
    
    Estimate: [2.26042842 0.25470903 1.00626954]
    Estimate: [2.26042842 0.25470903 1.00626954]
    
    *********STARTING RECURSION level 2 (reduce at border)************
    Fit: No model to fit, estimation not possible.
    Fit: No model to fit, estimation not possible.
    Fit: No model to fit, estimation not possible.
    Fit: No model to fit, estimation not possible.
    Fit: No model to fit, estimation not possible.
    Fit: No model to fit, estimation not possible.
    Estimate: [3.11611636 0.17768153 1.01610118]
    Fit: No model to fit, estimation not possible.
    Estimate: [3.08750954 0.37665817 2.13420787]
    Estimate: [2.71882317 0.07691472 0.42184291]
    Estimate: [3.41164935 0.03575131 0.20423577]
    Estimate: [3.51929624 0.05219259 0.30764622]
    Estimate: [2.89645101 0.02510073 0.12561275]
    Estimate: [3.11466942 0.19130302 1.09348996]
    
    *********STARTING RECURSION level 3 (reduce at border)************
    *********ENDING RECURSION level 3 (reduce at border) ************
    
    
    *********STARTING RECURSION level 3 (prefit)************
    Estimate: [3.11611281 0.17764018 1.0158636 ]
    Estimate: [3.08750706 0.37658429 2.13378754]
    Estimate: [3.0910508  0.27784838 1.57614086]
    ====Pruning fits:====
    Original model:
    [3.0910508  0.27784838 1.57614086]
    
    w/ quality: 49.12411797558573
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 14.71902611501381
    =================
    *********ENDING RECURSION level 3 (prefit) ************
    
    
    *********STARTING RECURSION level 3 (reduce at border)************
    *********ENDING RECURSION level 3 (reduce at border) ************
    
    
    *********STARTING RECURSION level 3 (prefit)************
    *********ENDING RECURSION level 3 (prefit) ************
    
    
    *********STARTING RECURSION level 3 (prefit)************
    *********ENDING RECURSION level 3 (prefit) ************
    
    
    *********STARTING RECURSION level 3 (reduce at border)************
    Fit: No model to fit, estimation not possible.
    Estimate: [3.11611283 0.17764042 1.01586495]
    Estimate: [3.08750708 0.37658471 2.13378992]
    Estimate: [2.75835358 0.04167033 0.23183727]
    Estimate: [2.7572133  0.13741381 0.76420022]
    Estimate: [3.0901823  0.26750282 1.51702761]
    Estimate: [3.0901823  0.26750282 1.51702761]
    Estimate: [2.75873517 0.13392078 0.74518549]
    Estimate: [3.09017058 0.17092634 0.9693318 ]
    ====Pruning fits:====
    Original model:
    [2.74672302 0.00525261 0.08571072]
    [3.1675541  0.01206036 0.0707664 ]
    
    w/ quality: 40.89065313747563
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 31.715040901208805
    =================
    *********ENDING RECURSION level 3 (reduce at border) ************
    
    
    *********STARTING RECURSION level 3 (prefit)************
    Fit: No model to fit, estimation not possible.
    Estimate: [3.11611283 0.17764042 1.01586495]
    Estimate: [3.08750708 0.37658471 2.13378992]
    Estimate: [2.75835357 0.04167032 0.23183731]
    Estimate: [2.75721165 0.1374189  0.76422824]
    Estimate: [3.0901823  0.26750282 1.51702761]
    Estimate: [3.0901823  0.26750282 1.51702761]
    Estimate: [2.75873529 0.13392812 0.74522655]
    Estimate: [3.09017058 0.17092634 0.9693318 ]
    ====Pruning fits:====
    Original model:
    [3.16280963 0.0228454  0.09127128]
    
    w/ quality: 36.58019296533631
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 31.715040891209615
    =================
    *********ENDING RECURSION level 3 (prefit) ************
    
    
    *********STARTING RECURSION level 3 (reduce at border)************
    Estimate: [3.11611283 0.17764042 1.01586495]
    Estimate: [3.08750708 0.37658471 2.13378992]
    Estimate: [3.08997916 0.22782924 1.29195095]
    ====Pruning fits:====
    Original model:
    [3.08997916 0.22782924 1.29195095]
    
    w/ quality: 50.87373364483366
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 21.48020033059481
    =================
    *********ENDING RECURSION level 3 (reduce at border) ************
    
    
    *********STARTING RECURSION level 3 (prefit)************
    Estimate: [3.11611503 0.17766613 1.0160127 ]
    Estimate: [3.08750862 0.37663056 2.1340508 ]
    Estimate: [3.09047471 0.23484448 1.33194581]
    ====Pruning fits:====
    Original model:
    [3.09047471 0.23484448 1.33194581]
    
    w/ quality: 51.589903207312304
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 21.46885732029161
    =================
    *********ENDING RECURSION level 3 (prefit) ************
    
    ====Pruning fits:====
    Original model:
    [2.67661534 0.04264297 0.10794179]
    [2.89740392 0.01779063 0.10295804]
    [3.25721208 0.04640739 0.11491792]
    [3.42016522 0.02601505 0.12752064]
    [3.51572164 0.00616351 0.13821193]
    
    w/ quality: 68.55429973033415
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 45.3793373293819
    =================
    *********ENDING RECURSION level 2 (reduce at border) ************
    
    
    *********STARTING RECURSION level 2 (prefit)************
    Fit: No model to fit, estimation not possible.
    Fit: No model to fit, estimation not possible.
    Fit: No model to fit, estimation not possible.
    Fit: No model to fit, estimation not possible.
    Fit: No model to fit, estimation not possible.
    Fit: No model to fit, estimation not possible.
    Estimate: [3.11611636 0.17768153 1.01610118]
    Fit: No model to fit, estimation not possible.
    Estimate: [3.08750954 0.37665817 2.13420787]
    Estimate: [2.71882317 0.07691472 0.42184291]
    Estimate: [3.41164935 0.03575131 0.20423577]
    Estimate: [3.51929624 0.05219259 0.30764622]
    Estimate: [2.89645101 0.02510073 0.12561275]
    Estimate: [3.11466942 0.19130302 1.09348996]
    
    *********STARTING RECURSION level 3 (reduce at border)************
    *********ENDING RECURSION level 3 (reduce at border) ************
    
    
    *********STARTING RECURSION level 3 (prefit)************
    Estimate: [3.11611281 0.17764018 1.0158636 ]
    Estimate: [3.08750706 0.37658429 2.13378754]
    Estimate: [3.0910508  0.27784838 1.57614086]
    ====Pruning fits:====
    Original model:
    [3.0910508  0.27784838 1.57614086]
    
    w/ quality: 49.12411797558573
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 14.71902611501381
    =================
    *********ENDING RECURSION level 3 (prefit) ************
    
    
    *********STARTING RECURSION level 3 (reduce at border)************
    *********ENDING RECURSION level 3 (reduce at border) ************
    
    
    *********STARTING RECURSION level 3 (prefit)************
    *********ENDING RECURSION level 3 (prefit) ************
    
    
    *********STARTING RECURSION level 3 (prefit)************
    *********ENDING RECURSION level 3 (prefit) ************
    
    
    *********STARTING RECURSION level 3 (reduce at border)************
    Fit: No model to fit, estimation not possible.
    Estimate: [3.11611283 0.17764042 1.01586495]
    Estimate: [3.08750708 0.37658471 2.13378992]
    Estimate: [2.75835358 0.04167033 0.23183727]
    Estimate: [2.7572133  0.13741381 0.76420022]
    Estimate: [3.0901823  0.26750282 1.51702761]
    Estimate: [3.0901823  0.26750282 1.51702761]
    Estimate: [2.75873517 0.13392078 0.74518549]
    Estimate: [3.09017058 0.17092634 0.9693318 ]
    ====Pruning fits:====
    Original model:
    [2.74672302 0.00525261 0.08571072]
    [3.1675541  0.01206036 0.0707664 ]
    
    w/ quality: 40.89065313747563
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 31.715040901208805
    =================
    *********ENDING RECURSION level 3 (reduce at border) ************
    
    
    *********STARTING RECURSION level 3 (prefit)************
    Fit: No model to fit, estimation not possible.
    Estimate: [3.11611283 0.17764042 1.01586495]
    Estimate: [3.08750708 0.37658471 2.13378992]
    Estimate: [2.75835357 0.04167032 0.23183731]
    Estimate: [2.75721165 0.1374189  0.76422824]
    Estimate: [3.0901823  0.26750282 1.51702761]
    Estimate: [3.0901823  0.26750282 1.51702761]
    Estimate: [2.75873529 0.13392812 0.74522655]
    Estimate: [3.09017058 0.17092634 0.9693318 ]
    ====Pruning fits:====
    Original model:
    [3.16280963 0.0228454  0.09127128]
    
    w/ quality: 36.58019296533631
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 31.715040891209615
    =================
    *********ENDING RECURSION level 3 (prefit) ************
    
    
    *********STARTING RECURSION level 3 (reduce at border)************
    Estimate: [3.11611283 0.17764042 1.01586495]
    Estimate: [3.08750708 0.37658471 2.13378992]
    Estimate: [3.08997916 0.22782924 1.29195095]
    ====Pruning fits:====
    Original model:
    [3.08997916 0.22782924 1.29195095]
    
    w/ quality: 50.87373364483366
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 21.48020033059481
    =================
    *********ENDING RECURSION level 3 (reduce at border) ************
    
    
    *********STARTING RECURSION level 3 (prefit)************
    Estimate: [3.11611503 0.17766613 1.0160127 ]
    Estimate: [3.08750862 0.37663056 2.1340508 ]
    Estimate: [3.09047471 0.23484448 1.33194581]
    ====Pruning fits:====
    Original model:
    [3.09047471 0.23484448 1.33194581]
    
    w/ quality: 51.589903207312304
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 21.46885732029161
    =================
    *********ENDING RECURSION level 3 (prefit) ************
    
    ====Pruning fits:====
    Original model:
    [2.67661534 0.04264297 0.10794179]
    [2.89740392 0.01779063 0.10295804]
    [3.25721208 0.04640739 0.11491792]
    [3.42016522 0.02601505 0.12752064]
    [3.51572164 0.00616351 0.13821193]
    
    w/ quality: 68.55429973033415
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 45.3793373293819
    =================
    *********ENDING RECURSION level 2 (prefit) ************
    
    
    *********STARTING RECURSION level 2 (reduce at border)************
    Fit: No model to fit, estimation not possible.
    Fit: No model to fit, estimation not possible.
    Fit: No model to fit, estimation not possible.
    Estimate: [3.11611636 0.17768153 1.01610118]
    Estimate: [3.63070606 0.08563911 0.59684981]
    Estimate: [3.53135947 0.03903187 0.2308597 ]
    Estimate: [3.41164935 0.03575131 0.20423577]
    Estimate: [3.11307271 0.2840744  1.62293969]
    Estimate: [3.12797116 0.22056496 1.26613579]
    
    *********STARTING RECURSION level 3 (full boundary)************
    *********ENDING RECURSION level 3 (full boundary) ************
    
    Estimate: [3.65300547 0.14861918 1.04214227]
    
    *********STARTING RECURSION level 3 (reduce at border)************
    *********ENDING RECURSION level 3 (reduce at border) ************
    
    
    *********STARTING RECURSION level 3 (prefit)************
    Estimate: [3.630706   0.08563924 0.59684963]
    Estimate: [3.61818038 0.1459101  1.01338992]
    Estimate: [3.6115187  0.18559911 1.28666883]
    ====Pruning fits:====
    Original model:
    [3.6115187  0.18559911 1.28666883]
    
    w/ quality: 46.29027678115888
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 16.043447278701013
    =================
    *********ENDING RECURSION level 3 (prefit) ************
    
    
    *********STARTING RECURSION level 3 (reduce at border)************
    Estimate: [3.630706   0.08563924 0.59684963]
    Estimate: [3.61818038 0.1459101  1.01338992]
    Estimate: [3.60908811 0.1459393  1.01104562]
    ====Pruning fits:====
    Original model:
    [3.60908811 0.1459393  1.01104562]
    
    w/ quality: 43.459910828275554
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 18.564558571853574
    =================
    *********ENDING RECURSION level 3 (reduce at border) ************
    
    
    *********STARTING RECURSION level 3 (prefit)************
    Estimate: [3.630706   0.08563924 0.59684963]
    Estimate: [3.61818038 0.1459101  1.01338992]
    Estimate: [3.60908805 0.14593987 1.01104956]
    ====Pruning fits:====
    Original model:
    [3.60908805 0.14593987 1.01104956]
    
    w/ quality: 43.45941980762311
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 18.564509895715506
    =================
    *********ENDING RECURSION level 3 (prefit) ************
    
    
    *********STARTING RECURSION level 3 (reduce at border)************
    Estimate: [3.11610329 0.17752795 1.01521866]
    Estimate: [3.10518477 0.24163246 1.37696766]
    Estimate: [3.10423332 0.17489261 0.99633833]
    ====Pruning fits:====
    Original model:
    [3.10423332 0.17489261 0.99633833]
    
    w/ quality: 42.76864723263828
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 19.552687334517994
    =================
    *********ENDING RECURSION level 3 (reduce at border) ************
    
    
    *********STARTING RECURSION level 3 (prefit)************
    Estimate: [3.11611503 0.17766612 1.01601266]
    Estimate: [3.10433326 0.23452054 1.33607318]
    Estimate: [3.10338944 0.16845052 0.95937776]
    ====Pruning fits:====
    Original model:
    [3.10338944 0.16845052 0.95937776]
    
    w/ quality: 41.86971637210498
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 19.327870199083325
    =================
    *********ENDING RECURSION level 3 (prefit) ************
    
    
    *********STARTING RECURSION level 3 (prefit)************
    Estimate: [3.630706   0.08563924 0.59684963]
    Estimate: [3.61818038 0.1459101  1.01338992]
    Estimate: [3.61838681 0.09131786 0.63426642]
    Estimate: [3.70478084 0.18306742 1.30189091]
    ====Pruning fits:====
    Original model:
    [3.70478084 0.18306742 1.30189091]
    
    w/ quality: 55.51989050047384
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 21.09952727127524
    =================
    *********ENDING RECURSION level 3 (prefit) ************
    
    ====Pruning fits:====
    Original model:
    [3.25721099 0.04639473 0.11491056]
    [3.42016516 0.02601514 0.12752029]
    [3.51548446 0.00505007 0.2732334 ]
    [3.69115788 0.01901517 0.10720301]
    
    w/ quality: 64.4253185649886
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 45.3427361010252
    =================
    *********ENDING RECURSION level 2 (reduce at border) ************
    
    
    *********STARTING RECURSION level 2 (prefit)************
    Fit: No model to fit, estimation not possible.
    Fit: No model to fit, estimation not possible.
    Estimate: [3.1161281  0.17781729 1.01688461]
    Fit: No model to fit, estimation not possible.
    Estimate: [3.63086607 0.08670032 0.61674655]
    Estimate: [3.53158946 0.03945657 0.23107713]
    Estimate: [3.41154591 0.0356331  0.204769  ]
    Estimate: [3.11317214 0.2845277  1.62558646]
    Estimate: [3.12838701 0.22146652 1.27148412]
    
    *********STARTING RECURSION level 3 (full boundary)************
    *********ENDING RECURSION level 3 (full boundary) ************
    
    Estimate: [3.65278636 0.14907433 1.0668489 ]
    
    *********STARTING RECURSION level 3 (reduce at border)************
    *********ENDING RECURSION level 3 (reduce at border) ************
    
    
    *********STARTING RECURSION level 3 (prefit)************
    Fit: No model to fit, estimation not possible.
    Estimate: [3.63086607 0.08670032 0.61674655]
    Estimate: [3.53158946 0.03945657 0.23107713]
    Estimate: [3.65278636 0.14907433 1.0668489 ]
    Estimate: [3.61389477 0.15933893 1.12816646]
    ====Pruning fits:====
    Original model:
    [3.61389477 0.15933893 1.12816646]
    
    w/ quality: 41.9854947380996
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 18.623567067716532
    =================
    *********ENDING RECURSION level 3 (prefit) ************
    
    Estimate: [3.61389477 0.15933893 1.12816646]
    Estimate: [3.61389477 0.15933893 1.12816646]
    
    *********STARTING RECURSION level 3 (reduce at border)************
    *********ENDING RECURSION level 3 (reduce at border) ************
    
    
    *********STARTING RECURSION level 3 (prefit)************
    *********ENDING RECURSION level 3 (prefit) ************
    
    
    *********STARTING RECURSION level 3 (reduce at border)************
    Estimate: [3.11611473 0.17765978 1.01597952]
    Estimate: [3.10520536 0.24171063 1.37742662]
    Estimate: [3.10425619 0.1749544  0.9967008 ]
    ====Pruning fits:====
    Original model:
    [3.10425619 0.1749544  0.9967008 ]
    
    w/ quality: 62.19893890123544
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 38.982470392619405
    =================
    *********ENDING RECURSION level 3 (reduce at border) ************
    
    
    *********STARTING RECURSION level 3 (prefit)************
    Estimate: [3.11612671 0.1778012  1.01679218]
    Estimate: [3.1043611  0.23465448 1.33685244]
    Estimate: [3.10341965 0.16856241 0.96002737]
    ====Pruning fits:====
    Original model:
    [3.10341965 0.16856241 0.96002737]
    
    w/ quality: 61.300586046068155
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 38.75332539351496
    =================
    *********ENDING RECURSION level 3 (prefit) ************
    
    
    *********STARTING RECURSION level 3 (prefit)************
    Fit: No model to fit, estimation not possible.
    Estimate: [3.630866   0.08670048 0.61674634]
    Estimate: [3.53158946 0.03945657 0.23107713]
    Estimate: [3.63358305 0.13037585 0.92812632]
    Estimate: [3.63358305 0.13037585 0.92812632]
    Estimate: [3.59184117 0.15994449 1.12554083]
    ====Pruning fits:====
    Original model:
    [3.59184117 0.15994449 1.12554083]
    
    w/ quality: 52.09242607157123
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 26.184455068161277
    =================
    *********ENDING RECURSION level 3 (prefit) ************
    
    ====Pruning fits:====
    Original model:
    [3.2574053  0.04658593 0.11656094]
    [3.41999637 0.02592414 0.1277976 ]
    [3.69112335 0.01910964 0.10993316]
    
    w/ quality: 59.556322596292624
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 45.33191664217668
    =================
    *********ENDING RECURSION level 2 (prefit) ************
    
    
    *********STARTING RECURSION level 2 (reduce at border)************
    Fit: No model to fit, estimation not possible.
    Fit: No model to fit, estimation not possible.
    Estimate: [2.71884964 0.07688874 0.42167878]
    Estimate: [2.72885403 0.15553688 0.85614535]
    Estimate: [2.89645148 0.02509877 0.12559128]
    
    *********STARTING RECURSION level 3 (prefit)************
    *********ENDING RECURSION level 3 (prefit) ************
    
    
    *********STARTING RECURSION level 3 (reduce at border)************
    Estimate: [2.75835299 0.04166465 0.23179238]
    Estimate: [2.75719399 0.13743185 0.76425147]
    Estimate: [2.75874535 0.15296984 0.85113611]
    ====Pruning fits:====
    Original model:
    [2.75874535 0.15296984 0.85113611]
    
    w/ quality: 56.46219860563736
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 26.580840375176972
    =================
    *********ENDING RECURSION level 3 (reduce at border) ************
    
    
    *********STARTING RECURSION level 3 (prefit)************
    Estimate: [2.758353   0.04166465 0.23179231]
    Estimate: [2.75719708 0.1374223  0.76419891]
    Estimate: [2.75875123 0.15298128 0.85120123]
    ====Pruning fits:====
    Original model:
    [2.75875123 0.15298128 0.85120123]
    
    w/ quality: 56.46452959571891
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 26.580840348669177
    =================
    *********ENDING RECURSION level 3 (prefit) ************
    
    
    *********STARTING RECURSION level 3 (prefit)************
    Estimate: [2.75835299 0.04166465 0.23179233]
    Estimate: [2.75719627 0.13742481 0.76421271]
    Estimate: [2.75853804 0.16676366 0.92781599]
    Estimate: [2.75853804 0.16676366 0.92781599]
    Estimate: [2.75874835 0.15297264 0.85115235]
    ====Pruning fits:====
    Original model:
    [2.75874835 0.15297264 0.85115235]
    
    w/ quality: 71.75524777301827
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 41.92852583583495
    =================
    *********ENDING RECURSION level 3 (prefit) ************
    
    ====Pruning fits:====
    Original model:
    [2.67664749 0.0425551  0.1076541 ]
    [2.8974045  0.01778794 0.1029375 ]
    
    w/ quality: 57.51512460698961
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 48.731357476124096
    =================
    *********ENDING RECURSION level 2 (reduce at border) ************
    
    
    *********STARTING RECURSION level 2 (prefit)************
    Fit: No model to fit, estimation not possible.
    Fit: No model to fit, estimation not possible.
    Fit: No model to fit, estimation not possible.
    Fit: No model to fit, estimation not possible.
    Estimate: [2.22017036 0.1498427  0.58143493]
    Estimate: [2.55520302 0.06462176 0.43495751]
    Fit: No model to fit, estimation not possible.
    Estimate: [2.22605702 0.15704209 0.61098644]
    Estimate: [2.71882128 0.07691226 0.4218141 ]
    Estimate: [2.72879431 0.15564928 0.85676706]
    Estimate: [2.89645148 0.02509878 0.12559129]
    
    *********STARTING RECURSION level 3 (reduce at border)************
    *********ENDING RECURSION level 3 (reduce at border) ************
    
    
    *********STARTING RECURSION level 3 (prefit)************
    Estimate: [2.7583552  0.04166718 0.2317694 ]
    Estimate: [2.75803523 0.13481349 0.74979911]
    Estimate: [2.75937847 0.16438651 0.9147222 ]
    ====Pruning fits:====
    Original model:
    [2.75937847 0.16438651 0.9147222 ]
    
    w/ quality: 46.55338138968335
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 15.423810121994471
    =================
    *********ENDING RECURSION level 3 (prefit) ************
    
    Estimate: [2.22605702 0.15704209 0.61098644]
    Estimate: [2.26042842 0.25470903 1.00626954]
    Estimate: [2.26042842 0.25470903 1.00626954]
    
    *********STARTING RECURSION level 3 (reduce at border)************
    Estimate: [2.75835273 0.04166487 0.23179856]
    Estimate: [2.75720616 0.13740415 0.76411722]
    Estimate: [2.75854758 0.16674527 0.92773705]
    Estimate: [2.75854758 0.16674527 0.92773705]
    Estimate: [2.75872862 0.13470517 0.74952155]
    ====Pruning fits:====
    Original model:
    [2.75872862 0.13470517 0.74952155]
    
    w/ quality: 44.07365915269906
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 17.132708938120057
    =================
    *********ENDING RECURSION level 3 (reduce at border) ************
    
    
    *********STARTING RECURSION level 3 (prefit)************
    Estimate: [2.75835272 0.04166486 0.23179863]
    Estimate: [2.75720302 0.13741376 0.76417012]
    Estimate: [2.75854443 0.16675396 0.92778475]
    Estimate: [2.75854443 0.16675396 0.92778475]
    Estimate: [2.75872541 0.13593031 0.7563379 ]
    ====Pruning fits:====
    Original model:
    [2.75872541 0.13593031 0.7563379 ]
    
    w/ quality: 44.26382704125072
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 17.132708918023077
    =================
    *********ENDING RECURSION level 3 (prefit) ************
    
    
    *********STARTING RECURSION level 3 (reduce at border)************
    *********ENDING RECURSION level 3 (reduce at border) ************
    
    
    *********STARTING RECURSION level 3 (prefit)************
    Fit: No model to fit, estimation not possible.
    Fit: No model to fit, estimation not possible.
    Estimate: [2.22017036 0.1498427  0.58143493]
    Estimate: [2.55520302 0.06462176 0.43495751]
    Estimate: [2.22605702 0.15704209 0.61098644]
    Estimate: [2.22605702 0.15704209 0.61098644]
    Estimate: [2.26042842 0.25470903 1.00626954]
    Estimate: [2.26042842 0.25470903 1.00626954]
    Estimate: [2.39829182 0.34995783 2.21085545]
    *********ENDING RECURSION level 3 (prefit) ************
    
    Estimate: [2.39829182 0.34995783 2.21085545]
    ====Pruning fits:====
    Original model:
    [2.67661506 0.04264176 0.10793891]
    [2.89740449 0.01778796 0.10293757]
    
    w/ quality: 46.309762625704145
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 37.52967669978135
    =================
    *********ENDING RECURSION level 2 (prefit) ************
    
    Estimate: [2.58252055 0.7        4.76194575]
    
    *********STARTING RECURSION level 2 (reduce at border)************
    Fit: No model to fit, estimation not possible.
    Fit: No model to fit, estimation not possible.
    Fit: No model to fit, estimation not possible.
    Fit: No model to fit, estimation not possible.
    Fit: No model to fit, estimation not possible.
    Estimate: [3.11612959 0.17779887 1.01652082]
    Fit: No model to fit, estimation not possible.
    Fit: No model to fit, estimation not possible.
    Fit: No model to fit, estimation not possible.
    Fit: No model to fit, estimation not possible.
    Estimate: [2.22017036 0.1498427  0.58143493]
    Estimate: [2.55520302 0.06462176 0.43495751]
    Fit: No model to fit, estimation not possible.
    Estimate: [3.08748907 0.37703026 2.13576472]
    Estimate: [2.71882128 0.07691226 0.4218141 ]
    Estimate: [3.41154587 0.03563316 0.20477082]
    Estimate: [2.72879431 0.15564928 0.85676706]
    Estimate: [3.51933797 0.05148633 0.30048188]
    Estimate: [2.89645148 0.02509878 0.12559129]
    Estimate: [3.11515365 0.19281754 1.10204105]
    
    *********STARTING RECURSION level 3 (reduce at border)************
    *********ENDING RECURSION level 3 (reduce at border) ************
    
    
    *********STARTING RECURSION level 3 (prefit)************
    Estimate: [3.11612581 0.17775478 1.01626748]
    Estimate: [3.08748643 0.37695147 2.13531655]
    Estimate: [3.09105914 0.27912603 1.58299455]
    Estimate: [3.09105914 0.27912603 1.58299455]
    Estimate: [3.09159512 0.18919372 1.07315165]
    ====Pruning fits:====
    Original model:
    [3.09159512 0.18919372 1.07315165]
    
    w/ quality: 39.849017344136975
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 14.717872695021313
    =================
    *********ENDING RECURSION level 3 (prefit) ************
    
    
    *********STARTING RECURSION level 3 (prefit)************
    *********ENDING RECURSION level 3 (prefit) ************
    
    
    *********STARTING RECURSION level 3 (reduce at border)************
    *********ENDING RECURSION level 3 (reduce at border) ************
    
    
    *********STARTING RECURSION level 3 (prefit)************
    *********ENDING RECURSION level 3 (prefit) ************
    
    
    *********STARTING RECURSION level 3 (full boundary)************
    *********ENDING RECURSION level 3 (full boundary) ************
    
    
    *********STARTING RECURSION level 3 (reduce at border)************
    Estimate: [3.11612585 0.17775525 1.01626947]
    Estimate: [3.0875363  0.37649198 2.1327466 ]
    Estimate: [3.0902242  0.26693372 1.51343884]
    ====Pruning fits:====
    Original model:
    [3.0902242  0.26693372 1.51343884]
    
    w/ quality: 79.26436699754461
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 44.35220877195053
    =================
    *********ENDING RECURSION level 3 (reduce at border) ************
    
    
    *********STARTING RECURSION level 3 (prefit)************
    Fit: No model to fit, estimation not possible.
    Estimate: [3.11612581 0.17775482 1.01626773]
    Estimate: [3.08748644 0.37695154 2.13531698]
    Estimate: [2.7583552  0.04166718 0.2317694 ]
    Estimate: [2.75803523 0.13481349 0.74979911]
    Estimate: [3.09016719 0.26729489 1.51545971]
    Estimate: [2.75937847 0.16438649 0.91472209]
    ====Pruning fits:====
    Original model:
    [2.74679146 0.00533203 0.08069475]
    [3.16755518 0.01206058 0.07075783]
    
    w/ quality: 35.596025693462536
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 26.419426333282768
    =================
    *********ENDING RECURSION level 3 (prefit) ************
    
    
    *********STARTING RECURSION level 3 (reduce at border)************
    Estimate: [3.11612584 0.17775512 1.01626947]
    Estimate: [3.08748645 0.37695209 2.13532006]
    Estimate: [3.08995515 0.22762545 1.29046062]
    ====Pruning fits:====
    Original model:
    [3.08995515 0.22762545 1.29046062]
    
    w/ quality: 50.8398594005455
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 21.486411989839283
    =================
    *********ENDING RECURSION level 3 (reduce at border) ************
    
    
    *********STARTING RECURSION level 3 (prefit)************
    Estimate: [3.1161282  0.17778275 1.01642817]
    Estimate: [3.08748811 0.37700135 2.13560026]
    Estimate: [3.09096555 0.23660545 1.3418089 ]
    ====Pruning fits:====
    Original model:
    [3.09096555 0.23660545 1.3418089 ]
    
    w/ quality: 51.76442537809956
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 21.474483335456725
    =================
    *********ENDING RECURSION level 3 (prefit) ************
    
    
    *********STARTING RECURSION level 3 (prefit)************
    *********ENDING RECURSION level 3 (prefit) ************
    
    
    *********STARTING RECURSION level 3 (reduce at border)************
    Estimate: [2.75835273 0.04166487 0.23179854]
    Estimate: [2.75720767 0.13740308 0.7641116 ]
    Estimate: [2.75854995 0.16674911 0.92775907]
    Estimate: [2.75854995 0.16674911 0.92775907]
    Estimate: [2.75873128 0.13470865 0.74954156]
    ====Pruning fits:====
    Original model:
    [2.75873128 0.13470865 0.74954156]
    
    w/ quality: 44.07467072664542
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 17.132710226727667
    =================
    *********ENDING RECURSION level 3 (reduce at border) ************
    
    
    *********STARTING RECURSION level 3 (prefit)************
    Estimate: [2.75835272 0.04166486 0.23179863]
    Estimate: [2.75720297 0.13741392 0.764171  ]
    Estimate: [2.75854523 0.16675853 0.92781041]
    Estimate: [2.75854523 0.16675853 0.92781041]
    Estimate: [2.75872638 0.13593427 0.75636023]
    ====Pruning fits:====
    Original model:
    [2.75872638 0.13593427 0.75636023]
    
    w/ quality: 44.264480348644064
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 17.132710190709904
    =================
    *********ENDING RECURSION level 3 (prefit) ************
    
    
    *********STARTING RECURSION level 3 (reduce at border)************
    *********ENDING RECURSION level 3 (reduce at border) ************
    
    
    *********STARTING RECURSION level 3 (prefit)************
    *********ENDING RECURSION level 3 (prefit) ************
    
    ====Pruning fits:====
    Original model:
    [2.22493269 0.00641328 0.12829427]
    [2.57310549e+00 2.29516182e-03 2.48804330e+00]
    [2.67661493 0.04264265 0.10794003]
    [2.8974044  0.01778877 0.10294008]
    [3.25740944 0.04658827 0.11653462]
    [3.41999446 0.025924   0.12779804]
    [3.51573656 0.00614733 0.13616624]
    
    w/ quality: 98.19024249214092
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 67.92552218206856
    =================
    *********ENDING RECURSION level 2 (reduce at border) ************
    
    
    *********STARTING RECURSION level 2 (prefit)************
    Fit: No model to fit, estimation not possible.
    Fit: No model to fit, estimation not possible.
    Fit: No model to fit, estimation not possible.
    Fit: No model to fit, estimation not possible.
    Fit: No model to fit, estimation not possible.
    Estimate: [3.11612959 0.17779887 1.01652082]
    Fit: No model to fit, estimation not possible.
    Fit: No model to fit, estimation not possible.
    Fit: No model to fit, estimation not possible.
    Fit: No model to fit, estimation not possible.
    Estimate: [2.22017036 0.1498427  0.58143493]
    Estimate: [2.55520302 0.06462176 0.43495751]
    Fit: No model to fit, estimation not possible.
    Estimate: [3.08748907 0.37703026 2.13576472]
    Estimate: [2.71882128 0.07691226 0.4218141 ]
    Estimate: [3.41154587 0.03563316 0.20477082]
    Estimate: [2.72879431 0.15564928 0.85676706]
    Estimate: [3.51933797 0.05148633 0.30048188]
    Estimate: [2.89645148 0.02509878 0.12559129]
    Estimate: [3.11515365 0.19281754 1.10204105]
    
    *********STARTING RECURSION level 3 (reduce at border)************
    *********ENDING RECURSION level 3 (reduce at border) ************
    
    
    *********STARTING RECURSION level 3 (prefit)************
    Estimate: [3.11612581 0.17775478 1.01626748]
    Estimate: [3.08748643 0.37695147 2.13531655]
    Estimate: [3.09105914 0.27912603 1.58299455]
    Estimate: [3.09105914 0.27912603 1.58299455]
    Estimate: [3.09159512 0.18919372 1.07315165]
    ====Pruning fits:====
    Original model:
    [3.09159512 0.18919372 1.07315165]
    
    w/ quality: 39.849017344136975
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 14.717872695021313
    =================
    *********ENDING RECURSION level 3 (prefit) ************
    
    
    *********STARTING RECURSION level 3 (prefit)************
    *********ENDING RECURSION level 3 (prefit) ************
    
    
    *********STARTING RECURSION level 3 (reduce at border)************
    *********ENDING RECURSION level 3 (reduce at border) ************
    
    
    *********STARTING RECURSION level 3 (prefit)************
    *********ENDING RECURSION level 3 (prefit) ************
    
    
    *********STARTING RECURSION level 3 (full boundary)************
    *********ENDING RECURSION level 3 (full boundary) ************
    
    
    *********STARTING RECURSION level 3 (reduce at border)************
    Estimate: [3.11612585 0.17775525 1.01626947]
    Estimate: [3.0875363  0.37649198 2.1327466 ]
    Estimate: [3.0902242  0.26693372 1.51343884]
    ====Pruning fits:====
    Original model:
    [3.0902242  0.26693372 1.51343884]
    
    w/ quality: 79.26436699754461
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 44.35220877195053
    =================
    *********ENDING RECURSION level 3 (reduce at border) ************
    
    
    *********STARTING RECURSION level 3 (prefit)************
    Fit: No model to fit, estimation not possible.
    Estimate: [3.11612581 0.17775482 1.01626773]
    Estimate: [3.08748644 0.37695154 2.13531698]
    Estimate: [2.7583552  0.04166718 0.2317694 ]
    Estimate: [2.75803523 0.13481349 0.74979911]
    Estimate: [3.09016719 0.26729489 1.51545971]
    Estimate: [2.75937847 0.16438649 0.91472209]
    ====Pruning fits:====
    Original model:
    [2.74679146 0.00533203 0.08069475]
    [3.16755518 0.01206058 0.07075783]
    
    w/ quality: 35.596025693462536
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 26.419426333282768
    =================
    *********ENDING RECURSION level 3 (prefit) ************
    
    
    *********STARTING RECURSION level 3 (reduce at border)************
    Estimate: [3.11612584 0.17775512 1.01626947]
    Estimate: [3.08748645 0.37695209 2.13532006]
    Estimate: [3.08995515 0.22762545 1.29046062]
    ====Pruning fits:====
    Original model:
    [3.08995515 0.22762545 1.29046062]
    
    w/ quality: 50.8398594005455
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 21.486411989839283
    =================
    *********ENDING RECURSION level 3 (reduce at border) ************
    
    
    *********STARTING RECURSION level 3 (prefit)************
    Estimate: [3.1161282  0.17778275 1.01642817]
    Estimate: [3.08748811 0.37700135 2.13560026]
    Estimate: [3.09096555 0.23660545 1.3418089 ]
    ====Pruning fits:====
    Original model:
    [3.09096555 0.23660545 1.3418089 ]
    
    w/ quality: 51.76442537809956
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 21.474483335456725
    =================
    *********ENDING RECURSION level 3 (prefit) ************
    
    
    *********STARTING RECURSION level 3 (prefit)************
    *********ENDING RECURSION level 3 (prefit) ************
    
    
    *********STARTING RECURSION level 3 (reduce at border)************
    Estimate: [2.75835273 0.04166487 0.23179854]
    Estimate: [2.75720767 0.13740308 0.7641116 ]
    Estimate: [2.75854995 0.16674911 0.92775907]
    Estimate: [2.75854995 0.16674911 0.92775907]
    Estimate: [2.75873128 0.13470865 0.74954156]
    ====Pruning fits:====
    Original model:
    [2.75873128 0.13470865 0.74954156]
    
    w/ quality: 44.07467072664542
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 17.132710226727667
    =================
    *********ENDING RECURSION level 3 (reduce at border) ************
    
    
    *********STARTING RECURSION level 3 (prefit)************
    Estimate: [2.75835272 0.04166486 0.23179863]
    Estimate: [2.75720297 0.13741392 0.764171  ]
    Estimate: [2.75854523 0.16675853 0.92781041]
    Estimate: [2.75854523 0.16675853 0.92781041]
    Estimate: [2.75872638 0.13593427 0.75636023]
    ====Pruning fits:====
    Original model:
    [2.75872638 0.13593427 0.75636023]
    
    w/ quality: 44.264480348644064
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 17.132710190709904
    =================
    *********ENDING RECURSION level 3 (prefit) ************
    
    
    *********STARTING RECURSION level 3 (reduce at border)************
    *********ENDING RECURSION level 3 (reduce at border) ************
    
    
    *********STARTING RECURSION level 3 (prefit)************
    *********ENDING RECURSION level 3 (prefit) ************
    
    ====Pruning fits:====
    Original model:
    [2.22493269 0.00641328 0.12829427]
    [2.57310549e+00 2.29516182e-03 2.48804330e+00]
    [2.67661493 0.04264265 0.10794003]
    [2.8974044  0.01778877 0.10294008]
    [3.25740944 0.04658827 0.11653462]
    [3.41999446 0.025924   0.12779804]
    [3.51573656 0.00614733 0.13616624]
    
    w/ quality: 98.19024249214092
    Fit: No model to fit.
    Fit: No model to fit.
    Best model after pruning is:
    
    w/ quality: 67.92552218206856
    =================
    *********ENDING RECURSION level 2 (prefit) ************
    
    ====Pruning fits:====
    Original model:
    [2.09884754e+00 8.17033566e-04 1.03961049e+00]
    [2.99914621 0.19788808 9.98711013]
    [3.50305601 0.19961932 9.75172231]
    [3.89807309 0.0616669  0.18966213]
    
    w/ quality: 114.32039202490671
    Best model after pruning is:
    [2.99914623 0.19788823 9.98711346]
    [3.50305693 0.19962683 9.75191842]
    
    w/ quality: 105.78116519219559
    =================
    --- Actual Peak parameters ---
    [ 3.   0.2 10. ]
    [ 3.5  0.2 10. ]
    
    
    --- After extraction ---
    effective_dy: [1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5
     1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5
     1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5
     1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5
     1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5
     1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5
     1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5
     1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5
     1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5
     1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5
     1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5
     1.5 1.5]
    rng: [1.51, 10.0]
    pf: [<diffpy.srmise.peaks.gaussianoverr.GaussianOverR object at 0x10ac417f0>]
    initial_peaks: 
    baseline: []
    cres: 0.1
    error_method: <class 'diffpy.srmise.modelevaluators.aic.AIC'>
    Extraction type: extract_single
    --- Extracted ---
    Slice: slice(0, 200, 1)
    Quality: 105.78116519219559
    Baseline: []
    Peaks:
    [2.99914623 0.19788823 9.98711346]
    [3.50305693 0.19962683 9.75191842]
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions