keflavich / dust_emissivity

Dust mass & emissivity calculation tools based on astropy's units framework
6 stars 7 forks source link

modules not available at top level #2

Open keflavich opened 10 years ago

keflavich commented 10 years ago

from Ke: I tried the example given in the dusty_emissivity module, the functions are under blackbody not the parent tree:

In [18]: from dust_emissivity import modified_blackbody,integrate_sed
ERROR: ImportError: cannot import name modified_blackbody [IPython.core.interactiveshell]
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
/scratch/kwang/software/<ipython-input-19-a14e39320f0f> in <module>()
----> 1 from dust_emissivity import modified_blackbody,integrate_sed

ImportError: cannot import name modified_blackbody
XFengwei commented 1 year ago

I found the same problem, so where is the modified blackbody? It seems to be defined in the blackbody.

Actually, I found the problem when I am installing the higal_sedfitter. I am not sure whether it will influence the installation because I found some of the modules is not defined in the init.py and then can't be used.

For example, "No module named 'fit'" when running "from higal_sedfitter import smooth, fit, higal_beams"

keflavich commented 1 year ago

The import should be from dust_emissivity.blackbody import modified_blackbody

keflavich commented 1 year ago

This issue should be on higal_sedfitter, not here.