flaport / fdtd

A 3D electromagnetic FDTD simulator written in Python with optional GPU support
https://fdtd.readthedocs.io
MIT License
455 stars 116 forks source link

example.py not compiling #5

Closed shudras closed 4 years ago

shudras commented 4 years ago

AttributeError: module 'fdtd' has no attribute 'Detectors'

changing fdtd.Detectors to fdtd.LineDetector seems to solve the problem but raises another problem:

ValueError: at least one projection plane (x, y or z) should be supplied to visualize the grid!

flaport commented 4 years ago

Hey, thanks for bringing that up! I fixed these bugs and the example script should run again now.