Skip to content

Commit

Permalink
fatal exit if LLNUYL is 1
Browse files Browse the repository at this point in the history
  • Loading branch information
kbat committed Dec 20, 2024
1 parent 07fb5d6 commit 7bc0357
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mctools/fluka/usysuw2root.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def readHeader(self, filename):
det = Data.Detector()
det.NYL = header[0]
det.TITUYL = header[1].decode('utf-8').strip() # detector title (sdum)
det.ITUSYL = header[2] # sdum
det.ITUSYL = header[2] # what(1)
det.IXUSYL = header[3] # what(6)
det.IDUSYL = header[4]
det.NR1UYL = header[5]
Expand All @@ -257,7 +257,8 @@ def readHeader(self, filename):
det.SGUSYL = header[8]
det.LLNUYL = header[9]
if det.LLNUYL == 1:
logger.warning(f"{det.TITUYL}: No groupwise low energy neutrons are implemented yet. Their data will be skipped.")
logger.error(f"{det.TITUYL}: No groupwise low energy neutron scoring is implemented yet. Adjust i4 in WHAT(1) in the USRYIELD cards.")
sys.exit(1)
det.EYLLOW = header[10]
det.EYLHGH = header[11]
det.NEYLBN = header[12]
Expand Down

0 comments on commit 7bc0357

Please sign in to comment.