Commit 24a897c7 authored by Romain Loth's avatar Romain Loth

clean imports and move unused dependencies

parent 6c171b32
File moved
...@@ -7,6 +7,8 @@ import cgi ...@@ -7,6 +7,8 @@ import cgi
import json import json
import sys import sys
from converter import CountryConverter
import pprint
reload(sys) reload(sys)
sys.setdefaultencoding('utf-8') sys.setdefaultencoding('utf-8')
...@@ -333,7 +335,6 @@ class extract: ...@@ -333,7 +335,6 @@ class extract:
def buildJSON_sansfa2(self,graph,coordsRAW=None): def buildJSON_sansfa2(self,graph,coordsRAW=None):
from converter import CountryConverter
inst = CountryConverter("","","","") inst = CountryConverter("","","","")
ISO=inst.getCountries("countries_ISO3166.txt") ISO=inst.getCountries("countries_ISO3166.txt")
Alternatives=inst.getCountries("countries_alternatives.txt") Alternatives=inst.getCountries("countries_alternatives.txt")
...@@ -497,7 +498,6 @@ class extract: ...@@ -497,7 +498,6 @@ class extract:
graph["stats"] = { "sch":nodesA,"kw":nodesB,"n1":edgesA,"n2":edgesB,"nbi":edgesAB , } graph["stats"] = { "sch":nodesA,"kw":nodesB,"n1":edgesA,"n2":edgesB,"nbi":edgesAB , }
graph["ID"] = self.unique_id graph["ID"] = self.unique_id
import pprint
pprint.pprint(graph["stats"]) pprint.pprint(graph["stats"])
# print "scholars",nodesA # print "scholars",nodesA
......
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from FA2 import ForceAtlas2 # from FA2 import ForceAtlas2
from extractDataCustom import extract as SQLite from extractDataCustom import extract as SQLite
import sys import sys
......
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