threeML / hawc_hal

HAWC Accelerated Likelihood - python-only framework for HAWC data analysis
BSD 3-Clause "New" or "Revised" License
11 stars 22 forks source link

Misleading error message #26

Closed cbrisboi closed 5 years ago

cbrisboi commented 5 years ago

On line 254 in HAL.py, the error message

raise ValueError("Bin %s it not contained in this response" % this_bin)

leads the user to believe the problem lies in the response file, when in fact the problem is with the maptree not containing the bin that is attempted to be used. I can fix this next week if no one gets to it before then, possibly at the workshop.