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

EBLattenuation & DoubleSmoothlyBrokenPowerlaw not available #200

Open
eneights opened this issue Apr 17, 2023 · 6 comments
Open

EBLattenuation & DoubleSmoothlyBrokenPowerlaw not available #200

eneights opened this issue Apr 17, 2023 · 6 comments

Comments

@eneights
Copy link

When I try to import the EBLattenuation and DoubleSmoothlyBrokenPowerlaw models, I get the errors
ImportError: cannot import name 'EBLattenuation' from 'threeML'
and
ImportError: cannot import name 'DoubleSmoothlyBrokenPowerlaw' from 'threeML'

Running

from threeML import *
spectrum = EBLattenuation()

gives me the error NameError: name 'EBLattenuation' is not defined, and the same thing happens for DoubleSmoothlyBrokenPowerlaw.

I don't have this issue with any other models.

@henrikef
Copy link
Contributor

@eneights do you have https://github.com/me-manu/ebltable installed?

@henrikef
Copy link
Contributor

I believe the DoubleSmoothlyBrokenPowerlaw issue has been fixed on astromodels dev, should be included in the next release. @omodei might know when that's planned.

@eneights
Copy link
Author

No, I don't have ebltable installed. So we just need to install that in order to use EBLattenuation?

@eneights
Copy link
Author

eneights commented Apr 19, 2023

And ok, sounds good, thank you!

@henrikef
Copy link
Contributor

No, I don't have ebltable installed. So we just need to install that in order to use EBLattenuation?

Yes, please try installing it and let me know if the error persists.

@eneights
Copy link
Author

Yes, I'm able to use EBLattenuation after installing ebltable.

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