amaurea / enlib

5 stars 12 forks source link

Show warning if curvedsky cannot be imported through lensing #11

Closed msyriac closed 7 years ago

msyriac commented 7 years ago

Libsharp is not necessarily easy to install for everyone (and its installation is not documented here). This shouldn't prevent people from using the excellent flat-sky lensing tools in lensing.py. This PR will show a warning if lensing.py cannot import curvedsky.py.

msyriac commented 7 years ago

Yes it could be annoying (slightly mitigated by making it a "warning" that people can suppress). But it's better than making the entire module useless to someone without libsharp!

And I agree that having curvedsky import in relevant functions is a better solution.