mirror of
https://github.com/c-sooyoung/bo-ptycho.git
synced 2026-09-17 19:29:07 +09:00
new structure for ptychoengine
This commit is contained in:
+6
-1
@@ -7,8 +7,13 @@ class PtychoEngine(ABC):
|
||||
|
||||
def __init__(self, config):
|
||||
self.config = config
|
||||
|
||||
self._verbosity = self.config['io'].get('verbosity', 0)
|
||||
self._output = None
|
||||
|
||||
@abstractmethod
|
||||
def run(self, run_id="") -> None:
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def metric(self, names: str | list[str]) -> float | list[float]:
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user