| Conditions | 2 |
| Total Lines | 11 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | """ |
||
| 14 | def __init__(self, path: Path, compounds: Sequence[str]): |
||
| 15 | self._path = path |
||
| 16 | if self._meta_path.exists(): |
||
| 17 | self._data = orjson.loads(self._meta_path.read_text(encoding="utf8")) |
||
| 18 | logger.caution(f"Resuming {path} with {self.at} completed compounds") |
||
| 19 | else: |
||
| 20 | self._data = dict( |
||
| 21 | start=Suretime.tagged.now_utc_sys().iso, last=None, path=self.path, done=set() |
||
| 22 | ) |
||
| 23 | logger.debug(f"Starting fresh cache for {path}") |
||
| 24 | self._queue: Iterator[str] = iter([c for c in compounds if c not in self._data["done"]]) |
||
| 25 | |||
| 55 |