Skip to content

Commit

Permalink
Adding missing import for input_path
Browse files Browse the repository at this point in the history
  • Loading branch information
bam241 committed Oct 11, 2024
1 parent 182d991 commit 50cfcab
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions openmc/dagmc.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from .checkvalue import check_type, check_value
from .surface import _BOUNDARY_TYPES
from .bounding_box import BoundingBox
from .utility_funcs import input_path


class DAGMCUniverse(openmc.UniverseBase):
Expand Down Expand Up @@ -120,6 +121,11 @@ def bounding_box(self):
def filename(self):
return self._filename

@filename.setter
def filename(self, val: cv.PathLike):
cv.check_type('DAGMC filename', val, cv.PathLike)
self._filename = input_path(val)

@property
def material_overrides(self):
return self._material_overrides
Expand Down Expand Up @@ -178,11 +184,6 @@ def add_material_override(self, mat_name=None, cell_id=None, overrides=None):
cv.check_iterable_type('material objects', overrides, str)
self.material_overrides[mat_name] = overrides

@filename.setter
def filename(self, val: cv.PathLike):
cv.check_type('DAGMC filename', val, cv.PathLike)
self._filename = input_path(val)

@property
def auto_geom_ids(self):
return self._auto_geom_ids
Expand Down

0 comments on commit 50cfcab

Please sign in to comment.