jbirky / apogee_tools

Modeling tools for SDSS/APOGEE spectra
http://apogee-tools.readthedocs.io/
MIT License
2 stars 3 forks source link

optimizeRV #9

Closed caganze closed 6 years ago

caganze commented 7 years ago

ap.optimizeRV(data, mdl) has an error /Users/caganze/Research/apogee_all/apogee_tools/apogee_tools/spec_tools.py in optimizeRV(sp1, sp2, **kwargs 612 #Turn cross-correlated spectrum into spectrum object --> 613 cc_sp1 = Spectrum(wave=shift_wave, flux=flux1, sigmas=sp1.sigmas, name=sp1.name) 614 615 return rv, cc_sp1, sp2

NameError: name 'Spectrum' is not defined

I think you need to import Spectrum from core.py i think you could just use from .core import* in spec_tools.py ?

jbirky commented 6 years ago

Removed this function from spec_tools.py