vec/unvec live in meanas.fdmath
This commit is contained in:
parent
1403b9e1a3
commit
4c81f33d05
2
fdtd.py
2
fdtd.py
@ -228,7 +228,7 @@ def main():
|
|||||||
|
|
||||||
with lzma.open('saved_simulation', 'wb') as f:
|
with lzma.open('saved_simulation', 'wb') as f:
|
||||||
def unvec(f):
|
def unvec(f):
|
||||||
return meanas.unvec(f, grid.shape)
|
return meanas.fdmath.unvec(f, grid.shape)
|
||||||
d = {
|
d = {
|
||||||
'grid': grid,
|
'grid': grid,
|
||||||
'E': unvec(sim.E.get()),
|
'E': unvec(sim.E.get()),
|
||||||
|
@ -48,7 +48,7 @@ class Simulation(object):
|
|||||||
event.wait()
|
event.wait()
|
||||||
|
|
||||||
with lzma.open('saved_simulation', 'wb') as f:
|
with lzma.open('saved_simulation', 'wb') as f:
|
||||||
dill.dump(fdfd_tools.unvec(sim.E.get(), grid.shape), f)
|
dill.dump(meanas.fdmath.unvec(sim.E.get(), grid.shape), f)
|
||||||
|
|
||||||
Code in the form
|
Code in the form
|
||||||
event2 = sim.update_H([event0, event1])
|
event2 = sim.update_H([event0, event1])
|
||||||
|
Loading…
Reference in New Issue
Block a user