Commit 6ee8ef52 authored by Alexandre Delanoë's avatar Alexandre Delanoë

[PHYLO/FIX] time format.

parent b454d924
...@@ -26,7 +26,7 @@ module Gargantext.Types.Phylo where ...@@ -26,7 +26,7 @@ module Gargantext.Types.Phylo where
import Data.Aeson.TH (deriveJSON) import Data.Aeson.TH (deriveJSON)
import Data.Maybe (Maybe) import Data.Maybe (Maybe)
import Data.Text (Text) import Data.Text (Text)
import Data.Time (UTCTime) import Data.Time.Clock.POSIX (POSIXTime)
import GHC.Generics (Generic) import GHC.Generics (Generic)
...@@ -43,8 +43,9 @@ data Phylo = Phylo { _phyloDuration :: (Start, End) ...@@ -43,8 +43,9 @@ data Phylo = Phylo { _phyloDuration :: (Start, End)
, _phyloPeriods :: [PhyloPeriod] , _phyloPeriods :: [PhyloPeriod]
} deriving (Generic) } deriving (Generic)
type Start = UTCTime -- TODO: format EPOCH unix integer -- | UTCTime in seconds since UNIX epoch
type End = UTCTime -- TODO: format EPOCH unix integer type Start = POSIXTime
type End = POSIXTime
type Ngram = (NgramId, Text) type Ngram = (NgramId, Text)
type NgramId = Int type NgramId = Int
...@@ -86,7 +87,7 @@ data PhyloGroup = PhyloGroup { _phyloGroupId :: PhyloGroupId ...@@ -86,7 +87,7 @@ data PhyloGroup = PhyloGroup { _phyloGroupId :: PhyloGroupId
, _phyloGroupLevelChilds :: [Edge] , _phyloGroupLevelChilds :: [Edge]
} deriving (Generic) } deriving (Generic)
type PhyloGroupId = (PhyloPeriodId, PhyloLevelId, Int) type PhyloGroupId = (PhyloLevelId, Int)
type Edge = (PhyloGroupId, Weight) type Edge = (PhyloGroupId, Weight)
type Weight = Double type Weight = Double
......
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