Commit e93416f8 authored by qlobbe's avatar qlobbe

adaptative time fixed

parent 67c70cdb
...@@ -522,7 +522,8 @@ initPhylo docs conf = ...@@ -522,7 +522,8 @@ initPhylo docs conf =
then defaultPhyloParam { _phyloParam_config = setDefault conf timeScale } then defaultPhyloParam { _phyloParam_config = setDefault conf timeScale }
else defaultPhyloParam { _phyloParam_config = conf } else defaultPhyloParam { _phyloParam_config = conf }
periods = toPeriods (sort $ nub $ map date docs) (getTimePeriod timeScale) (getTimeStep timeScale) periods = toPeriods (sort $ nub $ map date docs) (getTimePeriod timeScale) (getTimeStep timeScale)
in trace ("\n" <> "-- | Init a phylo out of " <> show(length docs) <> " docs \n") in trace ("\n" <> "-- | Init a phylo out of " <> show(length docs) <> " docs \n")
$ trace ("\n" <> "-- | lambda " <> show(_qua_granularity $ phyloQuality $ _phyloParam_config params))
$ Phylo foundations $ Phylo foundations
docsSources docsSources
docsCounts docsCounts
......
...@@ -519,7 +519,7 @@ getConfig :: Phylo -> PhyloConfig ...@@ -519,7 +519,7 @@ getConfig :: Phylo -> PhyloConfig
getConfig phylo = (phylo ^. phylo_param) ^. phyloParam_config getConfig phylo = (phylo ^. phylo_param) ^. phyloParam_config
getLevel :: Phylo -> Double getLevel :: Phylo -> Double
getLevel phylo = _phylo_level phylo getLevel phylo = (phyloQuality (getConfig phylo)) ^. qua_granularity
getLadder :: Phylo -> [Double] getLadder :: Phylo -> [Double]
getLadder phylo = phylo ^. phylo_seaLadder getLadder phylo = phylo ^. phylo_seaLadder
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment