Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Przemyslaw Kaminski
haskell-gargantext
Commits
109d8b9e
Commit
109d8b9e
authored
Mar 10, 2022
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DEBUG] Phylo print debug
parent
67db03cc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
8 deletions
+7
-8
Tools.hs
src/Gargantext/Core/Viz/Phylo/API/Tools.hs
+6
-6
PhyloMaker.hs
src/Gargantext/Core/Viz/Phylo/PhyloMaker.hs
+0
-2
PhyloTools.hs
src/Gargantext/Core/Viz/Phylo/PhyloTools.hs
+1
-0
No files found.
src/Gargantext/Core/Viz/Phylo/API/Tools.hs
View file @
109d8b9e
...
@@ -95,7 +95,6 @@ flowPhyloAPI config cId = do
...
@@ -95,7 +95,6 @@ flowPhyloAPI config cId = do
corpusIdtoDocuments
::
TimeUnit
->
CorpusId
->
GargNoServer
(
TermList
,
[
Document
])
corpusIdtoDocuments
::
TimeUnit
->
CorpusId
->
GargNoServer
(
TermList
,
[
Document
])
corpusIdtoDocuments
timeUnit
corpusId
=
do
corpusIdtoDocuments
timeUnit
corpusId
=
do
docs
<-
selectDocNodes
corpusId
docs
<-
selectDocNodes
corpusId
lId
<-
defaultList
corpusId
lId
<-
defaultList
corpusId
repo
<-
getRepo'
[
lId
]
repo
<-
getRepo'
[
lId
]
...
@@ -104,15 +103,16 @@ corpusIdtoDocuments timeUnit corpusId = do
...
@@ -104,15 +103,16 @@ corpusIdtoDocuments timeUnit corpusId = do
termList
<-
getTermList
lId
MapTerm
NgramsTerms
termList
<-
getTermList
lId
MapTerm
NgramsTerms
case
termList
of
let
docs'
=
catMaybes
Nothing
->
panic
"[G.C.V.Phylo.API] no termList found"
Just
termList'
->
pure
(
termList'
,
docs'
)
where
docs'
=
catMaybes
$
List
.
map
(
\
doc
$
List
.
map
(
\
doc
->
context2phyloDocument
timeUnit
doc
(
ngs_terms
,
ngs_sources
)
->
context2phyloDocument
timeUnit
doc
(
ngs_terms
,
ngs_sources
)
)
docs
)
docs
printDebug
"corpusIdtoDocuments"
(
Prelude
.
map
date
docs'
)
case
termList
of
Nothing
->
panic
"[G.C.V.Phylo.API] no termList found"
Just
termList'
->
pure
(
termList'
,
docs'
)
context2phyloDocument
::
TimeUnit
context2phyloDocument
::
TimeUnit
->
Context
HyperdataDocument
->
Context
HyperdataDocument
...
...
src/Gargantext/Core/Viz/Phylo/PhyloMaker.hs
View file @
109d8b9e
...
@@ -8,10 +8,8 @@ Stability : experimental
...
@@ -8,10 +8,8 @@ Stability : experimental
Portability : POSIX
Portability : POSIX
-}
-}
module
Gargantext.Core.Viz.Phylo.PhyloMaker
where
module
Gargantext.Core.Viz.Phylo.PhyloMaker
where
import
Control.DeepSeq
(
NFData
)
import
Control.DeepSeq
(
NFData
)
import
Control.Lens
hiding
(
Level
)
import
Control.Lens
hiding
(
Level
)
import
Control.Parallel.Strategies
(
parList
,
rdeepseq
,
using
)
import
Control.Parallel.Strategies
(
parList
,
rdeepseq
,
using
)
...
...
src/Gargantext/Core/Viz/Phylo/PhyloTools.hs
View file @
109d8b9e
...
@@ -140,6 +140,7 @@ periodsToYears periods = (Set.fromList . sort . concat)
...
@@ -140,6 +140,7 @@ periodsToYears periods = (Set.fromList . sort . concat)
findBounds
::
[
Date
]
->
(
Date
,
Date
)
findBounds
::
[
Date
]
->
(
Date
,
Date
)
findBounds
[]
=
panic
"[G.C.V.P.PhyloTools] nod Dates for find bounds"
findBounds
dates
=
findBounds
dates
=
let
dates'
=
sort
dates
let
dates'
=
sort
dates
in
(
head'
"findBounds"
dates'
,
last'
"findBounds"
dates'
)
in
(
head'
"findBounds"
dates'
,
last'
"findBounds"
dates'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment