zhafen / galaxy-dive

A general analysis package for analyzing hydrodynamic simulations of galaxy formation.
MIT License
0 stars 0 forks source link

Obscure errors in GenericData when failing to get data #1

Closed zhafen closed 5 years ago

zhafen commented 7 years ago

Originally reported by Zachary Hafen (Bitbucket: zhafen, GitHub: zhafen)


For example, running GenericData.get_data( 'Rx' ) will fail and try and run GenericData.calc_positions() (which doesn't exist) if there are no halo files in the analysis directory. This could happen if one misnamed the directory, and it would crash in this obscure way, instead of throwing back the original error in GenericData.retrieve_halo_data().


zhafen commented 5 years ago

Python 3 has better error handling, so closing this down now that I've migrated.