Skip to content

Commit

Permalink
formmatted
Browse files Browse the repository at this point in the history
  • Loading branch information
hrshdhgd committed Aug 15, 2024
1 parent b8fbe75 commit 13d8475
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/oaklib/implementations/sqldb/sql_implementation.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,10 +365,10 @@ def __post_init__(self):
logging.info(f"Locator, post-processed: {locator}")
self.engine = create_engine(locator)

if(logging.root.level <= logging.DEBUG):
#If oaklib is running at DEBUG level logging; record all queries from sqlachemy on execution.
#This line is equivalent to create_engine(locator,echo=True)
logging.getLogger('sqlalchemy.engine.Engine').setLevel(logging.INFO)
if logging.root.level <= logging.DEBUG:
# If oaklib is running at DEBUG level logging; record all queries from sqlachemy on execution.
# This line is equivalent to create_engine(locator,echo=True)
logging.getLogger("sqlalchemy.engine.Engine").setLevel(logging.INFO)

@property
def session(self):
Expand Down
1 change: 0 additions & 1 deletion src/oaklib/utilities/lexical/lexical_indexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ def add_labels_from_uris(oi: BasicOntologyInterface):
oi.set_label(curie, label)



def create_lexical_index(
oi: BasicOntologyInterface,
pipelines: Optional[List[LexicalTransformationPipeline]] = None,
Expand Down

0 comments on commit 13d8475

Please sign in to comment.