Skip to content

Commit

Permalink
input file parser: make it easy to access detectors (as marker by com…
Browse files Browse the repository at this point in the history
…ment on surface)
  • Loading branch information
Arun Persaud committed Apr 28, 2024
1 parent 63276a8 commit d5c33f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mcnptools/input_reader/read.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]]

Expand Down

0 comments on commit d5c33f5

Please sign in to comment.