Skip to content

Commit 6b41684

Browse files
pshriwiseclaude
andcommitted
Re-add material_overrides property raising AttributeError on access
Both the getter and setter raise AttributeError with a message directing users to the DAGMCCell-based API. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent ec8e999 commit 6b41684

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

openmc/dagmc.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,20 @@ def filename(self, val: cv.PathLike):
109109
cv.check_type('DAGMC filename', val, cv.PathLike)
110110
self._filename = input_path(val)
111111

112+
@property
113+
def material_overrides(self):
114+
raise AttributeError(
115+
"DAGMCUniverse.material_overrides has been removed. Use "
116+
"DAGMCCell objects added via add_cell() to manage per-cell "
117+
"material assignments.")
118+
119+
@material_overrides.setter
120+
def material_overrides(self, val):
121+
raise AttributeError(
122+
"DAGMCUniverse.material_overrides has been removed. Use "
123+
"DAGMCCell objects added via add_cell() to manage per-cell "
124+
"material assignments.")
125+
112126
def add_material_override(self, key, overrides=None):
113127
"""Add a material override to the universe.
114128

0 commit comments

Comments
 (0)