Handle PNG file generation.
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Mikaël Capelle
2024-12-14 11:52:32 +01:00
parent 67f7eef636
commit 8969ea895f
4 changed files with 23 additions and 4 deletions

View File

@@ -3,6 +3,7 @@ import operator as op
from math import prod
from typing import Any, Iterator
import numpy as np
import parse # pyright: ignore[reportMissingTypeStubs]
from ..base import BaseSolver
@@ -64,8 +65,9 @@ class Solver(BaseSolver):
).encode(),
True,
)
self.files.image(f"result_{rnd+1}.png", np.array(m))
yield rnd + 1
found = True
# found = True
break
if found: