fake engine returns random metric between 0, 1

This commit is contained in:
2026-07-21 15:48:11 +09:00
parent a6522dab89
commit 99b15555db
+1 -1
View File
@@ -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