diff --git a/src/mcnptools/input_reader/read.py b/src/mcnptools/input_reader/read.py index f860fe0..5c13fdd 100644 --- a/src/mcnptools/input_reader/read.py +++ b/src/mcnptools/input_reader/read.py @@ -16,6 +16,7 @@ def __init__(self, filename: Path): self.title = self.lines["title"] self.cells = [Cell.from_mcnp(c) for c in self.lines["cells"]] self.surfaces = [Surface.from_mcnp(c) for c in self.lines["surfaces"]] + self.detectors = self.surfaces[0].all_detectors if self.surfaces else [] self.materials = [Material.from_mcnp(c) for c in self.lines["materials"]] self.data = [Data.from_mcnp(c) for c in self.lines["data"]]