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

float128 vs. float64 issue in free spectrum createGWB #26

Open
bencebecsy opened this issue Apr 22, 2020 · 0 comments
Open

float128 vs. float64 issue in free spectrum createGWB #26

bencebecsy opened this issue Apr 22, 2020 · 0 comments

Comments

@bencebecsy
Copy link
Contributor

Trying to inject a free spectrum GWB with userSpec in createGWB gives the following error on line 813 of toasim.py:

--> 813             hcf = 10.0**fspec_ex(N.log10(f))
TypeError: Cannot cast array data from dtype('float128') to dtype('float64') according to the rule 'safe'

It might be related to this old issue: #7

I managed to solve this in my local copy by inserting a line converting f to float64 before line 813:
f = N.float64(f)
but I'm not sure if this is the ultimate desired solution here.

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

1 participant