NanoComp / meep

free finite-difference time-domain (FDTD) software for electromagnetic simulations
GNU General Public License v2.0
1.22k stars 622 forks source link

Python Tutorial: AttributeError: 'Simulation' object has no attribute 'get_flux_data' #370

Closed AniketPant02 closed 6 years ago

AniketPant02 commented 6 years ago

Hello all,

I am brand new to MEEP and FDTD. I am using a Python 3.6 environment with the latest Conda environment for Parallel-PyMEEP installed on Ubuntu 16.04 (fresh install). Upon running the Transmission Spectrum tutorial (_bendflux.py) it returns an error:

AttributeError: 'Simulation' object has no attribute 'get_flux_data'

How can I circumvent this error?

Thanks all for your help.

ChristopherHogan commented 6 years ago

Hi. get_flux_data was added to the library after the latest conda package was built. I'm currently experimenting with creating nightly development builds. You could try creating an environment with the bleeding edge dev package like this:

conda create -n devmeep -c chogan/label/dev -c chogan -c conda-forge pymeep-parallel nomkl

That will have all the latest source as of a few hours ago.

AniketPant02 commented 6 years ago

Thank you very much for the speedy reply! Problem solved and saved me from a build from source. :)