Skip to content

Commit 2b25610

Browse files
committed
flake
1 parent 7872d77 commit 2b25610

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/semsql/ontlib/subgraph.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff 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}")

0 commit comments

Comments
 (0)