File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -973,7 +973,7 @@ def reduced_simulation_copy(self):
973
973
This might significantly reduce upload time in the presence of custom mediums.
974
974
"""
975
975
976
- # we preserve extracells along the normal direction to ensure there is enough data for
976
+ # we preserve extra cells along the normal direction to ensure there is enough data for
977
977
# subpixel
978
978
extended_grid = self ._get_solver_grid (preserve_layer_behind = True , truncate_symmetry = False )
979
979
grids_1d = extended_grid .boundaries
Original file line number Diff line number Diff line change @@ -86,9 +86,8 @@ def run(
86
86
console = get_logging_console ()
87
87
88
88
if reduce_simulation == "auto" :
89
- sim = mode_solver .simulation
90
- contains_custom = any (isinstance (s .medium , AbstractCustomMedium ) for s in sim .structures )
91
- contains_custom = contains_custom or isinstance (sim .medium , AbstractCustomMedium )
89
+ sim_mediums = mode_solver .simulation .scene .mediums
90
+ contains_custom = any (isinstance (med , AbstractCustomMedium ) for med in sim_mediums )
92
91
reduce_simulation = contains_custom
93
92
94
93
if reduce_simulation :
You can’t perform that action at this time.
0 commit comments