From d43a9a5e8a0fb705d4d907d7580047f05b1c579c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edyta=20Fr=C4=85szczak?= Date: Thu, 4 Jul 2024 12:23:21 +0200 Subject: [PATCH] pre-commit fixes --- src/nsdlib/__init__.py | 1 + src/nsdlib/algorithms/__init__.py | 2 +- src/nsdlib/algorithms/node_evaluation/dynamic_age.py | 1 - src/nsdlib/algorithms/node_evaluation/net_sleuth.py | 1 + src/nsdlib/algorithms/reconstruction/__init__.py | 2 ++ src/nsdlib/algorithms/reconstruction/sbrp.py | 1 + 6 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/nsdlib/__init__.py b/src/nsdlib/__init__.py index 099d7c6..35465b3 100644 --- a/src/nsdlib/__init__.py +++ b/src/nsdlib/__init__.py @@ -1,2 +1,3 @@ # flake8: noqa + from nsdlib.algorithms import * diff --git a/src/nsdlib/algorithms/__init__.py b/src/nsdlib/algorithms/__init__.py index 30d4115..2f30626 100644 --- a/src/nsdlib/algorithms/__init__.py +++ b/src/nsdlib/algorithms/__init__.py @@ -1,4 +1,4 @@ -# flake8: noq +# flake8: noqa from nsdlib.algorithms.outbreaks_detection import ( CPM_Bipartite as outbreaks_detection_CPM_Bipartite, diff --git a/src/nsdlib/algorithms/node_evaluation/dynamic_age.py b/src/nsdlib/algorithms/node_evaluation/dynamic_age.py index 15d4d5d..2888886 100644 --- a/src/nsdlib/algorithms/node_evaluation/dynamic_age.py +++ b/src/nsdlib/algorithms/node_evaluation/dynamic_age.py @@ -11,7 +11,6 @@ def dynamic_age(network: Graph) -> Dict[int, float]: """Dynamic age source detection method. - References ---------- - [1] V. Fioriti i M. Chinnici, „Predicting the sources of an outbreak with a spectral technique”, ArXiv12112333 Math-Ph Physicsphysics, lis. 2012, Dostęp: 6 maj 2021. [Online]. Dostępne na: http://arxiv.org/abs/1211.2333 diff --git a/src/nsdlib/algorithms/node_evaluation/net_sleuth.py b/src/nsdlib/algorithms/node_evaluation/net_sleuth.py index ab10d67..1b5029d 100644 --- a/src/nsdlib/algorithms/node_evaluation/net_sleuth.py +++ b/src/nsdlib/algorithms/node_evaluation/net_sleuth.py @@ -8,6 +8,7 @@ def net_sleuth(network: Graph) -> Dict[int, float]: + # flake8: noqa """NetSleuth source evaluation method. References diff --git a/src/nsdlib/algorithms/reconstruction/__init__.py b/src/nsdlib/algorithms/reconstruction/__init__.py index 43b68d7..0229cb6 100644 --- a/src/nsdlib/algorithms/reconstruction/__init__.py +++ b/src/nsdlib/algorithms/reconstruction/__init__.py @@ -1 +1,3 @@ +# flake8: noqa + from nsdlib.algorithms.reconstruction.sbrp import sbrp diff --git a/src/nsdlib/algorithms/reconstruction/sbrp.py b/src/nsdlib/algorithms/reconstruction/sbrp.py index 5303c97..97509c9 100644 --- a/src/nsdlib/algorithms/reconstruction/sbrp.py +++ b/src/nsdlib/algorithms/reconstruction/sbrp.py @@ -11,6 +11,7 @@ def sbrp( G: Graph, IG: Graph, reconstruction_threshold=0.5, max_iterations: int = 1 ) -> Graph: + # flake8: noqa """SbRP graph reconstruction algorithm. @param G: Network