Skip to content

Commit

Permalink
Ensure n_clf is float for custom medium
Browse files Browse the repository at this point in the history
  • Loading branch information
weiliangjin2021 authored and momchil-flex committed Mar 21, 2023
1 parent 62cbece commit 3ae0238
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tidy3d/components/medium.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit 3ae0238

Please sign in to comment.