pelahi / VELOCIraptor-STF

Galaxy/(sub)Halo finder for N-body simulations
MIT License
20 stars 26 forks source link

np.loadtext edge case fix, force ndim=1 #16

Closed nikTheCosmoGuy closed 6 years ago

nikTheCosmoGuy commented 6 years ago

np.loadtext returns a numpy scalar instead of a numpy array when there is only one halo that is read. This raises IndexErrors later on, simple bug fix is to force ndmin=1.