mirror of
https://github.com/c-sooyoung/bo-ptycho.git
synced 2026-09-17 18:29:07 +09:00
fake engine returns random metric between 0, 1
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user