File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -269,15 +269,15 @@ def render_edges(
269269 g1 = edges_to_obograph (session , edges )
270270 g = {"graphs" : [g1 ]}
271271 logger .debug (f"graph = { g } " )
272- EXEC = "og2dot.js"
273- if shutil .which (EXEC ) is None :
274- logger .error (f"No { EXEC } " )
272+ exec = "og2dot.js"
273+ if shutil .which (exec ) is None :
274+ logger .error (f"No { exec } " )
275275 print ("You need to install a node package to be able to visualize results" )
276276 print ("" )
277277 print ("npm install -g obographviz" )
278278 print ("Then set your path to include og2dot" )
279279 raise Exception (
280- f"Cannot find { EXEC } on path. Install from https://github.com/cmungall/obographviz"
280+ f"Cannot find { exec } on path. Install from https://github.com/cmungall/obographviz"
281281 )
282282 with tempfile .NamedTemporaryFile (dir = "/tmp" , mode = "w" ) as tmpfile :
283283 style = {}
@@ -418,8 +418,7 @@ def cli(
418418 """
419419 logging .basicConfig (level = LOGLEVEL [verbose ])
420420 engine = create_engine (f"sqlite:///{ db } " )
421- Session = sessionmaker (bind = engine )
422- session = Session ()
421+ session = sessionmaker (bind = engine )()
423422 logger .info (f"QUERY: { terms } " )
424423 ids = term_search (session , terms , TERM_QUERY_VIEWS [match_criteria ])
425424 logger .debug (f"SEED CURIES: { ids } " )
You can’t perform that action at this time.
0 commit comments