You can save your array to an HDF5 file (with h5py) and use the epsilon_from_file option.
> On Feb 21, 2019, at 9:13 AM, Jonathan <kle...@cs.uni-bonn.de> wrote: > > Hello, > > the normal way to set up the scene geometry via the Python interface is to > build it out of primitives (boxes, spheres, etc.). I however already have the > permitivities as a 3d array. The python interface does not seem to provide a > direct way to set them. I think it is maybe possible via the low level C++ > interface, however I could not find any examples for this. What is the > recommended way (considering robustness, performance, etc...) to do so? > > With kind regards, > > Jonathan Klein > > _______________________________________________ > meep-discuss mailing list > meep-discuss@ab-initio.mit.edu > http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss _______________________________________________ meep-discuss mailing list meep-discuss@ab-initio.mit.edu http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss