diff --git a/tidy3d/components/medium.py b/tidy3d/components/medium.py index b2720320a..4cbca9a92 100644 --- a/tidy3d/components/medium.py +++ b/tidy3d/components/medium.py @@ -449,7 +449,8 @@ def n_cfl(self): is performed over all components and spatial points. """ eps_array_min = [ - np.min(eps_array.real) for _, eps_array in self.eps_dataset.field_components.items() + float(np.min(eps_array.real)) + for _, eps_array in self.eps_dataset.field_components.items() ] return np.sqrt(min(eps_array_min))