From 98de551cd5bc1de0769a9e08ff7f0af8a89b266e Mon Sep 17 00:00:00 2001 From: deeenes Date: Tue, 19 Sep 2023 09:56:12 +0200 Subject: [PATCH] flake8 --- omnipath/_core/utils/_static.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/omnipath/_core/utils/_static.py b/omnipath/_core/utils/_static.py index 021ae73..f79d0a3 100644 --- a/omnipath/_core/utils/_static.py +++ b/omnipath/_core/utils/_static.py @@ -14,13 +14,12 @@ def static_tables() -> pd.DataFrame: """ - A list of static tables available from OmniPath + List the static tables available from OmniPath Returns ------- A data frame with metadata about the static tables. """ - refile = re.compile( r'([^<]+)' r"\s+(\d{2}-\w+-\d{4}) (\d{2}:\d{2})" @@ -103,7 +102,6 @@ def static_table( ------- A data frame with the requested resource. """ - msg = ( f"Accessing `{resource}` as a static table. This is not the " "recommended way to access OmniPath data; it is only a backup " @@ -111,7 +109,7 @@ def static_table( "experiencing issues." ) logging.warning(msg) - warnings.warn(msg) + warnings.warn(msg) # noqa: B028 organism = str(organism) query_l = query.lower() @@ -166,13 +164,13 @@ def static_table( } omnipath_req._wide = wide omnipath_req._datasets = {InteractionDataset(d) for d in datasets} - logging.debug(f"Static table: converting dtypes.") + logging.debug("Static table: converting dtypes.") result = omnipath_req._convert_dtypes(result) - logging.debug(f"Static table: post-pocessing.") + logging.debug("Static table: post-pocessing.") result = omnipath_req._post_process(result) if resource_l == "dorothea": - logging.debug(f"Static table: filtering for DoRothEA confidence levels.") + logging.debug("Static table: filtering for DoRothEA confidence levels.") dorothea_levels = set(dorothea_levels) result = result[result.dorothea_level.isin(dorothea_levels)]