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

Fix crash that occurs when only fitting one bin #29

Closed maloneka closed 4 years ago

maloneka commented 4 years ago

When only fitting one bin, a crash would occur with the error message "TypeError: 'AxesSubplot' object does not support indexing". This pull request fixes that.

henrikef commented 4 years ago

Automated tests fail but I ran test locally and they were fine. As this is a very small change, I think this should be merged.