Skip to content

Commit

Permalink
Merge pull request #76 from moritzschaefer/develop
Browse files Browse the repository at this point in the history
correct indentation errors
  • Loading branch information
jorgeboucas committed Nov 14, 2018
2 parents 86b752a + fef3c4c commit 4a4597b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions py2cytoscape/util/util_igraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@
"""

try:
import igraph as ig
except Exception as error:
print(str(error))
print("py2cytoscape: Error importing igraph. You won't be able to import from igraph.")
ig = None
import igraph as ig
except Exception as error:
print(str(error))
print("py2cytoscape: Error importing igraph. You won't be able to import from igraph.")
ig = None

DEF_SCALING = 100.0


def from_igraph(igraph_network, layout=None, scale=DEF_SCALING):
if ig == None:
raise ImportError('igraph not found')
if ig is None:
raise ImportError('igraph not found')

new_graph = {}
network_data = {}
elements = {}
Expand Down

0 comments on commit 4a4597b

Please sign in to comment.