Trouble running Hello world #2128
-
Hi all, I am trying to follow along with the documentation and tried to run some of the example code to see what output I get on my machine. I tried to run the 'Hello world' example given here: I get this error: TypeError: init() missing 1 required positional argument: 'resolution' Any idea what might be going on? I have Meep installed, I can import the module, material parameters like SiO2 example given a few pages earlier in the documentation. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Update: I am able to run the next example given here so it seems Meep is installed correctly and working. Just unsure what output was expected in the simple Hello world case and why it didn't work for me.. |
Beta Was this translation helpful? Give feedback.
-
I'm not sure exactly what you are running, but that page is not really intended as your first tutorial, it's about how to pass "step functions" to the Instead, I would start with the Basic Tutorial. |
Beta Was this translation helpful? Give feedback.
I'm not sure exactly what you are running, but that page is not really intended as your first tutorial, it's about how to pass "step functions" to the
mp.run
function. In particular, the first examplesim = meep.Simulation(...)
is not literally runnable — you are supposed to fill in the...
with whatever arguments you want of the simulation.Instead, I would start with the Basic Tutorial.