From 99b15555dbd1f1d493ef7cd701427886b52df50a Mon Sep 17 00:00:00 2001 From: Sooyoung Cheong <64125280+c-sooyoung@users.noreply.github.com> Date: Tue, 21 Jul 2026 15:48:11 +0900 Subject: [PATCH] fake engine returns random metric between 0, 1 --- ptycho/ptycho_example.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ptycho/ptycho_example.py b/ptycho/ptycho_example.py index 6656a96..7193f3b 100644 --- a/ptycho/ptycho_example.py +++ b/ptycho/ptycho_example.py @@ -40,5 +40,5 @@ class ExamplePtychoEngine(PtychoEngine): def metric(self) -> float: if self._metric is None: output = self.output() - self._metric = random.uniform(0, 1) - (20 - self.config['ptycho']['params']['Nlayers'])**2 / 10 + self._metric = random.uniform(0, 1) return self._metric