MCPcopy Create free account
hub / github.com/NanoComp/meep / timestep

Method timestep

python/simulation.py:2634–2639  ·  view source on GitHub ↗

Return the number of elapsed timesteps.

(self)

Source from the content-addressed store, hash-verified

2632 return self.fields.time()
2633
2634 def timestep(self) -> int:
2635 """Return the number of elapsed timesteps."""
2636
2637 if self.fields is None:
2638 self.init_sim()
2639 return self.fields.t
2640
2641 def round_time(self):
2642 if self.fields is None:

Callers 1

test_timeMethod · 0.80

Calls 1

init_simMethod · 0.95

Tested by 1

test_timeMethod · 0.64