new structure for ptychoengine

This commit is contained in:
2026-08-05 14:06:05 +09:00
parent 882f747c27
commit 7d307be3c9
3 changed files with 40 additions and 12 deletions
+6 -1
View File
@@ -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