ChileanVirtualObservatory / acalib

Advanced Computing for Astronomy Library
http://acalib.readthedocs.io/en/latest/
GNU General Public License v3.0
7 stars 13 forks source link

Reorganize Imports #28

Closed maray closed 7 years ago

maray commented 7 years ago

Python 2 and Python 3 have different import support.

from . import x does not work well in Python 2.7.

We should reorganise imports for hiding .core and only showing the UPI, Algorithms and I/O

cvalenzu commented 7 years ago

For Python 2.7 using from __future__ import absolute_import works fine the imports.

done in 7eb97ba2c21b10d5d0b2d759ab4b6ae27729543b and 1fd8bcf90e4007935006bd22006ac9446be6e727

Now im looking into hiding the core imports

cvalenzu commented 7 years ago

I Think is not possible to hice acalibe.core, but is possible to hide the functions inside the module.