@@ -327,12 +327,11 @@ def __init__(self, use_settings_pkl, model_path, default_res):
327327 # Map to be populated by overlap functions
328328 self .overlap_info = None
329329
330- # Boolean masks of undefined (not-found) regions, populated by
330+ # Boolean mask of internal undefined (not-found) regions, populated by
331331 # makePlot when undefined-region coloring is enabled. Internal regions
332332 # are enclosed by defined geometry (potentially unsafe); external
333- # regions connect to the slice boundary .
333+ # (boundary-connected) undefined regions are intentionally ignored .
334334 self .undefined_internal = None
335- self .undefined_external = None
336335
337336 self .version = __version__
338337
@@ -592,20 +591,17 @@ def makePlot(self, view: Optional["PlotView"] = None,
592591 if dom .highlight :
593592 image [self .ids == int (id )] = cv .highlightBackground
594593
595- # Classify and color undefined (not-found) regions. Internal regions
596- # are holes enclosed by defined geometry ( flagged as a warning);
597- # external regions connect to the slice boundary and are considered
598- # safe .
594+ # Classify and color undefined (not-found) regions. Only internal
595+ # regions ( holes enclosed by defined geometry) are flagged as a
596+ # warning; external regions connect to the slice boundary and are
597+ # left untouched .
599598 self .undefined_internal = None
600- self .undefined_external = None
601599 if cv .color_undefined :
602- _ , external , internal = \
600+ _ , _ , internal = \
603601 openmc .Model ._classify_undefined_regions (self .cell_ids )
604602 if internal is not None :
605603 self .undefined_internal = internal
606- self .undefined_external = external
607- image [external ] = cv .undefined_external_color
608- image [internal ] = cv .undefined_internal_color
604+ image [internal ] = cv .undefined_color
609605
610606 # set model image
611607 self .image = image
@@ -1251,11 +1247,10 @@ class PlotViewIndependent:
12511247 overlap_color : 3-tuple of int
12521248 RGB color to apply for cell overlap regions
12531249 color_undefined : bool
1254- Indicator of whether or not undefined (not-found) regions will be shown
1255- undefined_internal_color : 3-tuple of int
1250+ Indicator of whether or not internal undefined (not-found) regions
1251+ will be shown
1252+ undefined_color : 3-tuple of int
12561253 RGB color to apply for internal (enclosed) undefined regions
1257- undefined_external_color : 3-tuple of int
1258- RGB color to apply for external (boundary-connected) undefined regions
12591254 domainAlpha : float between 0 and 1
12601255 Alpha value of the geometry plot
12611256 plotVisibile : bool
@@ -1305,10 +1300,9 @@ def __init__(self):
13051300 self .highlightSeed = 1
13061301 self .domainBackground = (50 , 50 , 50 )
13071302 self .overlap_color = (255 , 0 , 0 )
1308- # Undefined (not-found) region coloring
1303+ # Undefined (not-found) region coloring (internal regions only)
13091304 self .color_undefined = False
1310- self .undefined_internal_color = (255 , 0 , 255 )
1311- self .undefined_external_color = (0 , 170 , 255 )
1305+ self .undefined_color = (255 , 0 , 255 )
13121306 self .domainAlpha = 1.0
13131307 self .domainVisible = True
13141308 self .outlinesCell = False
@@ -1349,10 +1343,8 @@ def __setstate__(self, state):
13491343 # Undefined region coloring (added in a later version)
13501344 if not hasattr (self , 'color_undefined' ):
13511345 self .color_undefined = False
1352- if not hasattr (self , 'undefined_internal_color' ):
1353- self .undefined_internal_color = (255 , 0 , 255 )
1354- if not hasattr (self , 'undefined_external_color' ):
1355- self .undefined_external_color = (0 , 170 , 255 )
1346+ if not hasattr (self , 'undefined_color' ):
1347+ self .undefined_color = (255 , 0 , 255 )
13561348 # Migrate old boolean attributes to new tallyDataMinMaxType
13571349 if not hasattr (self , 'tallyDataMinMaxType' ):
13581350 if getattr (self , 'tallyDataUserMinMax' , False ):
0 commit comments