Skip to content

Commit

Permalink
Merge pull request #8825 from khoaguin/deprecate-action-graph-service
Browse files Browse the repository at this point in the history
Deprecate Action Graph Service
  • Loading branch information
shubham3121 authored May 27, 2024
2 parents 89fd464 + cb3515f commit 58f2d36
Show file tree
Hide file tree
Showing 15 changed files with 1 addition and 2,124 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ repos:
name: "mypy: syft"
always_run: true
files: "^packages/syft/src/syft/"
exclude: "packages/syft/src/syft/types/dicttuple.py|^packages/syft/src/syft/service/action/action_graph.py"
exclude: "packages/syft/src/syft/types/dicttuple.py"
args: [
"--follow-imports=skip",
"--ignore-missing-imports",
Expand Down
97 changes: 0 additions & 97 deletions notebooks/tutorials/data-scientist/04-action-graph.ipynb

This file was deleted.

1 change: 0 additions & 1 deletion packages/syft/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ syft =
boto3==1.34.56
forbiddenfruit==0.1.4
loguru==0.7.2
networkx==3.2.1
packaging>=23.0
pyarrow==15.0.0
# pycapnp is beta version, update to stable version when available
Expand Down
20 changes: 0 additions & 20 deletions packages/syft/src/syft/serde/third_party.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
from dateutil import parser
from nacl.signing import SigningKey
from nacl.signing import VerifyKey
import networkx as nx
from networkx import DiGraph
import numpy as np
from pandas import DataFrame
from pandas import Series
Expand Down Expand Up @@ -229,24 +227,6 @@ def torch_deserialize(buffer: bytes) -> torch.tensor:
# how else do you import a relative file to execute it?
NOTHING = None


# TODO: debug serializing after updating a node
def serialize_networkx_graph(graph: DiGraph) -> bytes:
graph_dict: dict = nx.node_link_data(graph)
return serialize(graph_dict, to_bytes=True)


def deserialize_networkx_graph(buf: bytes) -> DiGraph:
graph_dict: dict = deserialize(buf, from_bytes=True)
return nx.node_link_graph(graph_dict)


recursive_serde_register(
DiGraph,
serialize=serialize_networkx_graph,
deserialize=deserialize_networkx_graph,
)

try:
# Just register these serializers if the google.cloud.bigquery & db_dtypes module are available
# third party
Expand Down
Loading

0 comments on commit 58f2d36

Please sign in to comment.