Skip to content

Commit

Permalink
move adapter to fedn utils
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorvaladi committed Mar 21, 2024
1 parent 8803bd3 commit acf6c04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 87 deletions.
84 changes: 0 additions & 84 deletions examples/flower-client/client/client_app_adapter.py

This file was deleted.

5 changes: 2 additions & 3 deletions examples/flower-client/client/entrypoint
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
#!./.flower-example/bin/python
import os
import sys

import fire
from client_app_adapter import FlwrClientAppAdapter
from flwr_client import app

from fedn.utils.flowercompat.client_app_adapter import FlwrClientAppAdapter
from fedn.utils.helpers.helpers import get_helper, save_metadata, save_metrics

HELPER_MODULE = "numpyhelper"
Expand All @@ -15,7 +14,7 @@ flwr_adapter = FlwrClientAppAdapter(app)


def _get_node_id():
"""Get client number from environment variable. """
"""Get client number from environment variable."""

number = os.environ.get("CLIENT_NUMBER", "0")
return int(number)
Expand Down

0 comments on commit acf6c04

Please sign in to comment.