Commit cf7797e2 authored by Alexandre Delanoë's avatar Alexandre Delanoë

[FIX] back to Conditional distance

parent dab6f378
Pipeline #1324 canceled with stage
...@@ -91,8 +91,8 @@ getGraph _uId nId = do ...@@ -91,8 +91,8 @@ getGraph _uId nId = do
-- TODO Distance in Graph params -- TODO Distance in Graph params
case graph of case graph of
Nothing -> do Nothing -> do
graph' <- computeGraph cId Distributional NgramsTerms repo -- graph' <- computeGraph cId Distributional NgramsTerms repo
-- graph' <- computeGraph cId Conditional NgramsTerms repo graph' <- computeGraph cId Conditional NgramsTerms repo
mt <- defaultGraphMetadata cId "Title" repo mt <- defaultGraphMetadata cId "Title" repo
let graph'' = set graph_metadata (Just mt) graph' let graph'' = set graph_metadata (Just mt) graph'
let hg = HyperdataGraphAPI graph'' camera let hg = HyperdataGraphAPI graph'' camera
...@@ -205,7 +205,7 @@ graphRecompute u n logStatus = do ...@@ -205,7 +205,7 @@ graphRecompute u n logStatus = do
, _scst_remaining = Just 1 , _scst_remaining = Just 1
, _scst_events = Just [] , _scst_events = Just []
} }
_g <- trace (show u) $ recomputeGraph u n Distributional -- Conditional _g <- trace (show u) $ recomputeGraph u n Conditional -- Distributional
pure JobLog { _scst_succeeded = Just 1 pure JobLog { _scst_succeeded = Just 1
, _scst_failed = Just 0 , _scst_failed = Just 0
, _scst_remaining = Just 0 , _scst_remaining = Just 0
...@@ -240,7 +240,7 @@ graphVersions nId = do ...@@ -240,7 +240,7 @@ graphVersions nId = do
, gv_repo = v } , gv_repo = v }
recomputeVersions :: UserId -> NodeId -> GargNoServer Graph recomputeVersions :: UserId -> NodeId -> GargNoServer Graph
recomputeVersions uId nId = recomputeGraph uId nId Distributional -- Conditional recomputeVersions uId nId = recomputeGraph uId nId Conditional -- Distributional
------------------------------------------------------------ ------------------------------------------------------------
graphClone :: UserId graphClone :: UserId
......
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