Using TraitsUI in Mayavi to create a GUI, magnetic field simulation
I am currently working on a project that I have to simulate the magnetic field produced by a circular wire loop. I have written a piece of code and put it into a class, that works perfectly, but when I try to create a GUI using TaitsUI, it just fails. I have no idea how should I connect the one to the other. class Wireloop: x,y,z = np.mgrid[-10:10:150j, -10:10:150j, -10:10:150j] ### Transform to Cylindrial Polar r = np.sqrt(x**2 + y**2) # ρ in polar x_trans = x/r # cos(θ) y_trans = y/r # sin(θ) """ """ def __init__(self, R, I): self.R = R #radious self.I = I #DC current #Constants self.mew0 =