gaia-dpci / GaiaXPy

Gaia BP/RP spectra package
BSD 3-Clause "New" or "Revised" License
36 stars 9 forks source link

ImportError: cannot import name 'generic_function' from 'gaiaxpy' (/home/swastik/anaconda3/lib/python3.8/site-packages/gaiaxpy/__init__.py) #28

Closed SwastikC closed 2 years ago

SwastikC commented 2 years ago

ImportError: cannot import name 'generic_function' fro err m 'gaiaxpy' (/home/swastik/anaconda3/lib/python3.8/site-packages/gaiaxpy/init.py)

Hi. I am getting this error while using galpy :/

druzm commented 2 years ago

Hello, The reason you can't import that function is because it doesn't exist in the package. generic_function in the documentation acts as a placeholder for other functions in the package as mentioned here. Tutorials on how to use the different tools are available here.

SwastikC commented 2 years ago

yes. So silly of me. !! Thank you @druzm for the help :)

druzm commented 2 years ago

I've added a note before the code snippet, so that other people don't encounter this issue. Thanks!