Remove debug

This commit is contained in:
Michael RICOIS 2015-01-20 13:13:28 +00:00
parent 1d2d4e155b
commit b0bf0e4e02

View File

@ -7,7 +7,7 @@ require_once 'Metier/partenaires/classMLiens2.php';
require_once 'Metier/scores/classMSolvabilite.php';
require_once 'Metier/scores/classMRatios.php';
define('INDISCORE_DEBUG', true);
define('INDISCORE_DEBUG', false);
/**
* Return the history of previous stored IndiScores on the companies
@ -587,14 +587,12 @@ function PROJEC($valeur, $nbAnnees)
require_once 'Metier/Scores/classMProjection.php';
$projec = new Projection();
$projec->tabRegX = $tabRegX;
file_put_contents('test.log', 'PROJEC='.print_r($tabRegX,1).print_r($valeur,1).print_r($nbAnnees,1)."\n");
$result = $projec->calc($valeur, $nbAnnees);
if ( $result !== false ) {
$Y = $projec->getY();
$Yaff = $projec->getYaff();
$PROJECTAUX = $projec->getProjecTaux();
$PROECCOEFF = $projec->getProjecCoeff();
file_put_contents('test.log', 'PROJEC='.print_r($Y,1).print_r($Yaff,1).print_r($PROJECTAUX,1).print_r($PROECCOEFF,1), FILE_APPEND);
}
}
@ -1198,16 +1196,13 @@ function calculIndiScore($siren, $nic=0, $accesDist=false, $cycleClient=2, $mail
}
// Régression : Ratios
file_put_contents('bilans.log', print_r($tabRegX,1));
foreach ($tabFormules as $i2 => $Rtmp)
{
for ( $i = 0 ; $i <= $iMax ; $i++ ) {
if ( isset($tabRatios[$i][$Rtmp['id']]) ) {
file_put_contents('bilans.log', "Ratios $i => ".$Rtmp['id']."\n", FILE_APPEND);
$regR[$Rtmp['id']][]=$tabRatios[$i][$Rtmp['id']];
} else {
if ( array_key_exists($i, $tabRegX) ) {
file_put_contents('bilans.log', "Suppression tabRegX $i\n", FILE_APPEND);
//unset($tabRegX[$i]);
}
}
@ -1224,7 +1219,6 @@ function calculIndiScore($siren, $nic=0, $accesDist=false, $cycleClient=2, $mail
}
}
// On renverse les tableaux 2008, 2007, 2006... en 2006, 2007, 2008
file_put_contents('bilans.log', print_r($tabRegX,1), FILE_APPEND);
$tabRegX = array_reverse($tabRegX);
$timer['regression']=microtime(true);