Skip to content

Commit

Permalink
Import pickle_serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardalee committed Dec 7, 2024
1 parent 252a2ae commit 20f1703
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/Python/src/serialization/CustomSerializer.lf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ target Python {
}

preamble {=
# Note that both federates will try to install the pickle_serializer package. One will likely fail,
# but the other will succeed.
os.system("pip install ./src/serialization/pickle_serializer/ --user")
import pickle_serializer
=}

reactor Client {
Expand Down Expand Up @@ -66,5 +69,5 @@ federated reactor {
client = new Client()
server = new Server()
server.server_message -> client.server_message after 100 ms serializer "pickle_serializer"
client.client_message -> server.client_message serializer "pickle_serializer"
client.client_message -> server.client_message after 100 ms serializer "pickle_serializer"
}

0 comments on commit 20f1703

Please sign in to comment.