Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attribute remove does not exist #8

Open
izkgao opened this issue Jan 4, 2018 · 1 comment
Open

Attribute remove does not exist #8

izkgao opened this issue Jan 4, 2018 · 1 comment

Comments

@izkgao
Copy link

izkgao commented Jan 4, 2018

I followed the guide on the documentation, but an error occurred.


AttributeError Traceback (most recent call last)
in ()
1 flux = np.ones(3)
2 wave = np.array([5., 2.5, 1.25])
----> 3 extinction.remove(extinction.ccm89(wave, 1.0, 3.1), flux)

AttributeError: module 'extinction' has no attribute 'remove'

@kbarbary
Copy link
Owner

kbarbary commented Jan 4, 2018

remove was added in the development version but hasn't yet been released. In the meantime, extinction.apply(extinction.ccm89(wave, -1.0, 3.1), flux) is equivalent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants