From ed53ddc7c08447aebd0fe93043caf214b8ba9233 Mon Sep 17 00:00:00 2001 From: Miyuru Dayarathna Date: Fri, 15 Nov 2024 01:02:58 +0530 Subject: [PATCH 1/2] Fix lint issue of too many args --- src_python/fl_client.py | 1 + src_python/fl_client_shed.py | 1 + src_python/fl_server.py | 1 + src_python/fl_server_shed.py | 1 + src_python/org_agg.py | 1 + src_python/org_server.py | 1 + 6 files changed, 6 insertions(+) diff --git a/src_python/fl_client.py b/src_python/fl_client.py index 89c037ae4..3347b4166 100644 --- a/src_python/fl_client.py +++ b/src_python/fl_client.py @@ -49,6 +49,7 @@ class Client: (Without partition sheduling) """ + #pylint: disable=too-many-arguments def __init__(self, model, graph_params, weights_path, graph_id, partition_id, epochs=10, ip=socket.gethostname(), port=5000, header_length=10): diff --git a/src_python/fl_client_shed.py b/src_python/fl_client_shed.py index a821bf77e..0ec549558 100644 --- a/src_python/fl_client_shed.py +++ b/src_python/fl_client_shed.py @@ -53,6 +53,7 @@ class Client: on a given GCN model (With partition sheduling) """ + #pylint: disable=too-many-arguments def __init__(self, client_id, weights_path, graph_id, partition_ids, epochs=10, ip=socket.gethostname(), port=5000, header_length=10): diff --git a/src_python/fl_server.py b/src_python/fl_server.py index 7a8a85d7e..e28d0ffda 100644 --- a/src_python/fl_server.py +++ b/src_python/fl_server.py @@ -36,6 +36,7 @@ class Server: learning process (Without partition sheduling) """ + #pylint: disable=too-many-arguments def __init__(self, model, rounds, weights_path, graph_id, max_conn=2, ip=socket.gethostname(), port=5000, header_length=10): diff --git a/src_python/fl_server_shed.py b/src_python/fl_server_shed.py index 33779de23..3407aff49 100644 --- a/src_python/fl_server_shed.py +++ b/src_python/fl_server_shed.py @@ -35,6 +35,7 @@ class Server: learning process (With partition sheduling) """ + #pylint: disable=too-many-arguments def __init__(self, model_weights, rounds, weights_path, graph_id, num_clients=2, ip=socket.gethostname(), port=5000, header_length=10): diff --git a/src_python/org_agg.py b/src_python/org_agg.py index aabf83625..0a338adb1 100644 --- a/src_python/org_agg.py +++ b/src_python/org_agg.py @@ -38,6 +38,7 @@ class Aggregator: """Aggregator """ + #pylint: disable=too-many-arguments def __init__(self, model, rounds, num_orgs, ip, port): # Parameters diff --git a/src_python/org_server.py b/src_python/org_server.py index ecc2ec886..4ed5e1ca2 100644 --- a/src_python/org_server.py +++ b/src_python/org_server.py @@ -39,6 +39,7 @@ class Server: """Server """ + #pylint: disable=too-many-arguments def __init__(self, org_id, model_weights, rounds, num_clients, ip, port): # Parameters From 9dc7b0cc6aa55af81af4e51a2403e8884cf44589 Mon Sep 17 00:00:00 2001 From: Miyuru Dayarathna Date: Fri, 15 Nov 2024 01:11:35 +0530 Subject: [PATCH 2/2] Fix lint issue of too many args --- src_python/fl_client.py | 2 +- src_python/fl_client_shed.py | 2 +- src_python/fl_server.py | 2 +- src_python/fl_server_shed.py | 2 +- src_python/org_agg.py | 2 +- src_python/org_server.py | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src_python/fl_client.py b/src_python/fl_client.py index 3347b4166..36edb8297 100644 --- a/src_python/fl_client.py +++ b/src_python/fl_client.py @@ -49,7 +49,7 @@ class Client: (Without partition sheduling) """ - #pylint: disable=too-many-arguments + #pylint: disable=too-many-positional-arguments def __init__(self, model, graph_params, weights_path, graph_id, partition_id, epochs=10, ip=socket.gethostname(), port=5000, header_length=10): diff --git a/src_python/fl_client_shed.py b/src_python/fl_client_shed.py index 0ec549558..ed42283e7 100644 --- a/src_python/fl_client_shed.py +++ b/src_python/fl_client_shed.py @@ -53,7 +53,7 @@ class Client: on a given GCN model (With partition sheduling) """ - #pylint: disable=too-many-arguments + #pylint: disable=too-many-positional-arguments def __init__(self, client_id, weights_path, graph_id, partition_ids, epochs=10, ip=socket.gethostname(), port=5000, header_length=10): diff --git a/src_python/fl_server.py b/src_python/fl_server.py index e28d0ffda..076baecce 100644 --- a/src_python/fl_server.py +++ b/src_python/fl_server.py @@ -36,7 +36,7 @@ class Server: learning process (Without partition sheduling) """ - #pylint: disable=too-many-arguments + #pylint: disable=too-many-positional-arguments def __init__(self, model, rounds, weights_path, graph_id, max_conn=2, ip=socket.gethostname(), port=5000, header_length=10): diff --git a/src_python/fl_server_shed.py b/src_python/fl_server_shed.py index 3407aff49..ac15e57b6 100644 --- a/src_python/fl_server_shed.py +++ b/src_python/fl_server_shed.py @@ -35,7 +35,7 @@ class Server: learning process (With partition sheduling) """ - #pylint: disable=too-many-arguments + #pylint: disable=too-many-positional-arguments def __init__(self, model_weights, rounds, weights_path, graph_id, num_clients=2, ip=socket.gethostname(), port=5000, header_length=10): diff --git a/src_python/org_agg.py b/src_python/org_agg.py index 0a338adb1..13c6a9df5 100644 --- a/src_python/org_agg.py +++ b/src_python/org_agg.py @@ -38,7 +38,7 @@ class Aggregator: """Aggregator """ - #pylint: disable=too-many-arguments + #pylint: disable=too-many-positional-arguments def __init__(self, model, rounds, num_orgs, ip, port): # Parameters diff --git a/src_python/org_server.py b/src_python/org_server.py index 4ed5e1ca2..5d5683db8 100644 --- a/src_python/org_server.py +++ b/src_python/org_server.py @@ -39,7 +39,7 @@ class Server: """Server """ - #pylint: disable=too-many-arguments + #pylint: disable=too-many-positional-arguments def __init__(self, org_id, model_weights, rounds, num_clients, ip, port): # Parameters