Skip to content

Commit

Permalink
Refactor - pysankey beta is now a third party lib
Browse files Browse the repository at this point in the history
Use the beta version that we can update. And remove
dependency handled by pysankey
  • Loading branch information
Pierre-Sassoulas committed Dec 13, 2018
1 parent 6a97ee8 commit 2c2ba24
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .isort.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[settings]
multi_line_output=3
line_length=88
known_third_party =django,matplotlib,mock,numpy,pandas,pytz,seaborn,setuptools,yaml
known_third_party =django,mock,pandas,pysankey,pytz,setuptools,yaml
project = survey
include_trailing_comma=True
5 changes: 1 addition & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,4 @@ django-registration==2.2 # account logic, views and workflows
pytz==2017.2
ordereddict==1.1
PyYAML==3.12
pysankey==0.0.1
matplotlib==2.1.0rc1
seaborn==0.8.1
numpy==1.13.3
pySankeyBeta==1.0.1
4 changes: 2 additions & 2 deletions survey/exporter/tex/question2tex_sankey.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

from django.utils.translation import ugettext_lazy as _
from pandas.core.frame import DataFrame
from pysankey import sankey

from survey.exporter.tex.question2tex import Question2Tex
from pySankey.sankey import sankey
from survey.models.question import Question

LOGGER = logging.getLogger(__name__)
Expand Down Expand Up @@ -78,7 +78,7 @@ def tex(self, other_question):
df[other_question.text],
aspect=20,
fontsize=10,
figure_name=name,
figureName=name,
)
return Question2TexSankey.TEX_SKELETON % (
name[4:],
Expand Down

0 comments on commit 2c2ba24

Please sign in to comment.