I've installed pymeep using the anaconda environment. Unfortunately, when I use Spyder to try to run use a Vector3 class from meep i get the error:
AttributeError: module 'meep' has no attribute 'Vector3'
Does anyone have any idea how to fix it? I have already tried using the recommended environment:
conda create -n mp -c chogan -c defaults -c conda-forge pymeep
to no use.
The code where I'm using this is the first tutorial/example from here:
import meep as mp
cell = mp.Vector3(16, 8, 0)
geometry = [mp.Block(mp.Vector3(1e20, 1, 1e20),
center=mp.Vector3(0, 0),
material=mp.Medium(epsilon=12))]
sources = [mp.Source(mp.ContinuousSource(frequency=0.15),
component=mp.Ez,
center=mp.Vector3(-7,0))]
pml_layers = [mp.PML(1.0)]
resolution = 10
sim = mp.Simulation(cell_size=cell,
boundary_layers=pml_layers,
geometry=geometry,
sources=sources,
resolution=resolution)
sim.run(until=200)