kopia lustrzana https://github.com/sepandhaghighi/samila
test : tests added.
rodzic
061bb3d1af
commit
648bef06b5
|
@ -90,6 +90,17 @@ False
|
|||
>>> result = g.save_data(file_adr="")
|
||||
>>> result["status"]
|
||||
False
|
||||
>>> def f1(x, y):
|
||||
... return math.cos(x**2*y) ** 1.926 - math.floor(x-y) ** 1.861 - math.floor(y**2*x)**1.688
|
||||
|
||||
>>> def f2(x, y):
|
||||
... return x - y**1.617 - math.ceil(y) ** 1.477 - abs(x**2 * y) ** 1.647 - math.cos(x*y)**1.668
|
||||
>>> g = GenerativeImage(f1, f2)
|
||||
>>> g.generate(seed=755398)
|
||||
>>> result = g.save_data()
|
||||
>>> result["status"]
|
||||
True
|
||||
>>> os.remove("test.png")
|
||||
>>> os.remove("test2.png")
|
||||
>>> os.remove("data.json")
|
||||
"""
|
||||
|
|
Ładowanie…
Reference in New Issue