changed ptycho/ to class/methods.

TODO: also change bo/, fix main.py
This commit is contained in:
2026-07-12 16:25:46 +09:00
parent ea2a19a343
commit b8f5c0e95d
4 changed files with 171 additions and 58 deletions
+34
View File
@@ -0,0 +1,34 @@
from abc import ABC, abstractmethod
from typing import Any
class PtychoEngine(ABC):
name = None
def __init__(self, config):
self.config = config
self._output = None
self._recon_object = None
self._recon_probe = None
self._metric = None
@abstractmethod
def run(self) -> None:
pass
@abstractmethod
def output(self) -> Any:
pass
@abstractmethod
def recon_object(self) -> Any:
pass
@abstractmethod
def recon_probe(self) -> Any:
pass
@abstractmethod
def metric(self) -> float:
pass