Hi,
After struggling for a bit to find out why things didn’t work, I realized that nazca doesn’t play well with sympy. Is there a way to fix that in a future release? Here’s a toy example to demonstrate the problem:
import nazca as nd
from sympy import symbols, Eq, solve
x, y = symbols('x y', positive=True)
area = 4.7
eq1 = Eq(x*y, area)
eq2 = Eq(x, y)
sol = solve((eq1, eq2), (x, y))[0]
x0 = sol[0]
y0 = sol[1]
print(type(x0)) # sympy.core.numbers.Float
# Instantiation raises a TypeError if using sympy numbers
# uncomment these lines to convert sympy numbers to float
# Note that I had to restart the kernel of my jupyter notebook after trying to instantiate a cell with sympy numbers
# If I don't restart the kernel, I get an IndexError
# x0 = float(x0)
# y0 = float(y0)
# print(type(x0))
nd.strt(length=x0, width=y0, layer=1).put()
nd.export_plt()