mirror of
https://github.com/c-sooyoung/bo-ptycho.git
synced 2026-11-16 04:17:59 +09:00
fake engine returns random metric between 0, 1
This commit is contained in:
1 parent
a6522dab89
commit
99b15555db
1 file changed
+1
-1
@@ -40,5 +40,5 @@ class ExamplePtychoEngine(PtychoEngine):
|
|||||||
def metric(self) -> float:
|
def metric(self) -> float:
|
||||||
if self._metric is None:
|
if self._metric is None:
|
||||||
output = self.output()
|
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
|
return self._metric
|
||||||
Reference in new issue
Block a user