close#

FdtdSession.close() None#

Close the underlying Lumerical FDTD session.

Idempotent: subsequent calls are a no-op. Prefer this over relying on garbage collection – __del__ is best-effort and may be deferred indefinitely (or skipped at interpreter shutdown), leaving an FDTD process alive longer than expected.

After close() the session must not be used; attempting to call methods that touch self.fdtd will raise AttributeError.