From 4700442d78fcd2176a16771d0ea511178b469496 Mon Sep 17 00:00:00 2001 From: Rafael Vescovi <17483715+ravescovi@users.noreply.github.com> Date: Fri, 1 Dec 2023 16:05:17 -0600 Subject: [PATCH] sync --- examples/experiment_example.py | 2 +- wei/experiment_client.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/experiment_example.py b/examples/experiment_example.py index 73f7a02f..ad111f7c 100755 --- a/examples/experiment_example.py +++ b/examples/experiment_example.py @@ -6,7 +6,7 @@ from wei import ExperimentClient -SIMULATE = True +SIMULATE = False def main() -> None: diff --git a/wei/experiment_client.py b/wei/experiment_client.py index 13dd58d4..60c60c95 100644 --- a/wei/experiment_client.py +++ b/wei/experiment_client.py @@ -141,7 +141,7 @@ def start_run( payload_path.expanduser().parent.mkdir(parents=True, exist_ok=True) with open(workflow_file, "r", encoding="utf-8") as workflow_file_handle: - with open(payload_path.expanduser(), "rb") as payload_file_handle: + with open(payload_path.expanduser(), "w+") as payload_file_handle: json.dump(payload, payload_file_handle) params = { "experiment_id": self.experiment_id,