From f83be3fe01a9c392f4c5b9d56ae43f7626a2fe80 Mon Sep 17 00:00:00 2001 From: Andreas Hellander Date: Sat, 9 Dec 2023 14:25:01 +0100 Subject: [PATCH] Codechecks --- fedn/fedn/dashboard/plots.py | 1 - fedn/fedn/dashboard/restservice.py | 4 ---- fedn/fedn/tests/test_reducer_service.py | 2 +- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/fedn/fedn/dashboard/plots.py b/fedn/fedn/dashboard/plots.py index 1b00ddf0a..dedb27e87 100644 --- a/fedn/fedn/dashboard/plots.py +++ b/fedn/fedn/dashboard/plots.py @@ -2,7 +2,6 @@ from datetime import datetime import numpy -import pandas as pd import plotly import plotly.graph_objs as go from plotly.subplots import make_subplots diff --git a/fedn/fedn/dashboard/restservice.py b/fedn/fedn/dashboard/restservice.py index 20c7ba469..64814a5de 100644 --- a/fedn/fedn/dashboard/restservice.py +++ b/fedn/fedn/dashboard/restservice.py @@ -3,14 +3,11 @@ import datetime import json import os -import re import threading from io import BytesIO from threading import Lock import jwt -import pandas as pd -from bokeh.embed import json_item from bson import json_util from flask import (Flask, abort, flash, jsonify, make_response, redirect, render_template, request, send_file, send_from_directory, @@ -555,7 +552,6 @@ def control(): for combiner in self.control.network.get_combiners(): try: nac = len(combiner.list_active_clients()) - #nac = combiner_state["nr_active_clients"] clients_available = clients_available + int(nac) except Exception: raise diff --git a/fedn/fedn/tests/test_reducer_service.py b/fedn/fedn/tests/test_reducer_service.py index 22e9d54af..cec70ec6f 100644 --- a/fedn/fedn/tests/test_reducer_service.py +++ b/fedn/fedn/tests/test_reducer_service.py @@ -1,7 +1,7 @@ import unittest from unittest.mock import patch -from fedn.network.dashboard.restservice import ReducerRestService +from fedn.dashboard.restservice import ReducerRestService class TestInit(unittest.TestCase):