Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
humanities
gargantext
Commits
2b57f633
Commit
2b57f633
authored
Nov 10, 2017
by
sim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] Forgotten imports of settings
parent
a56f236b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
scheduling.py
gargantext/util/scheduling.py
+2
-2
ngram_coocs.py
gargantext/util/toolchain/ngram_coocs.py
+1
-2
No files found.
gargantext/util/scheduling.py
View file @
2b57f633
...
...
@@ -42,8 +42,8 @@ def scheduled_celery(func):
return
go
from
gargantext.settings
import
DEBUG
if
DEBUG
:
from
django.conf
import
settings
if
settings
.
DEBUG
:
# scheduled = scheduled_now
scheduled
=
scheduled_thread
else
:
...
...
gargantext/util/toolchain/ngram_coocs.py
View file @
2b57f633
...
...
@@ -2,7 +2,6 @@
COOCS
(this is the full SQL version, should be more reliable on outerjoin)
"""
from
gargantext
import
settings
from
sqlalchemy
import
exc
from
gargantext.util.lists
import
WeightedMatrix
from
gargantext.util.db
import
get_engine
...
...
@@ -112,7 +111,7 @@ def compute_coocs( corpus,
-- GROUP BY ngA, ngB
)
"""
# 3) taking the cooccurrences of ngram x2
ngram_filter_A_sql
+=
"""
-- STEP 1: X axis of the matrix
...
...
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