icecube / i3mla

Public IceCube point-source analysis tools
Apache License 2.0
2 stars 1 forks source link

The purpose of index zero in here? #66

Closed jasonfan1997 closed 3 years ago

jasonfan1997 commented 3 years ago

https://github.com/thejevans/mla/blob/10679fb4ebec5f427e87b25443724aab7fc109fa/mla/analysis.py#L116

thejevans commented 3 years ago

The way that rf.structured_to_unstructured works, it creates multiple copies of the array that we want (so that it uses the same space in memory), and we only want one of the copies.