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

Ufunc 'isnan' not supported for the input types #4

Closed
Lukerko opened this issue Mar 27, 2019 · 3 comments
Closed

Ufunc 'isnan' not supported for the input types #4

Lukerko opened this issue Mar 27, 2019 · 3 comments

Comments

@Lukerko
Copy link

Lukerko commented Mar 27, 2019

Hi,

I have a problem with compiling using Python 3.7 on PyCharm 2018.3.4 x64.
Compiling stop at step 3 of 6> generates full power series of appliances and display following error:
File "C:/Users/hacke/PycharmProjects/GSP_Disagregator/gsp_disaggregator.py", line 72, in <module> power_series, appliance_signatures = gsp.generate_appliance_powerseries(appliance_pairs, delta_p) File "C:\Users\hacke\PycharmProjects\GSP_Disagregator\gsp_support.py", line 194, in generate_appliance_powerseries powerval = interpolate_values(final) if sum(np.isnan(final)) else final TypeError: ufunc 'isnan' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''

Thanks for response

@Lukerko Lukerko closed this as completed Apr 13, 2019
@professor-who
Copy link

Hi! I meet the same problem, have you ever solved it?

@Lukerko
Copy link
Author

Lukerko commented May 23, 2019

Hi, yes.
You must run this code on Python version 2.7

@professor-who
Copy link

professor-who commented May 23, 2019 via email

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