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

caltrack hourly method problem #357

Closed
LiuJingyao18360 opened this issue Jul 15, 2019 · 9 comments
Closed

caltrack hourly method problem #357

LiuJingyao18360 opened this issue Jul 15, 2019 · 9 comments

Comments

@LiuJingyao18360
Copy link

I plan to try EEmeter caltrack hourly method, but there is one line of the code doesn't work. I used the sample data and do exactly the same with the tutorial, but this line of the code just shows error. I wonder if we need a specific version of pandas to run our code? I' m really confused about it, would you please have a look at this problem?

occupancy_lookup_hourly = eemeter.estimate_hour_of_week_occupancy(
preliminary_design_matrix_hourly,
segmentation=segmentation_hourly,
# threshold=0.65 # default
)

@LiuJingyao18360
Copy link
Author

The message shows as below:

ValueError Traceback (most recent call last)
ValueError: Buffer dtype mismatch, expected 'Python object' but got 'double'

Exception ignored in: 'pandas._libs.lib.is_bool_array'
ValueError: Buffer dtype mismatch, expected 'Python object' but got 'double'

@philngo
Copy link
Contributor

philngo commented Jul 15, 2019

Thanks for the report. We recommend pandas using 0.23.4, if that helps. You're seeing this in the scripts/tutorial.ipynb, right? Could you send your eemeter and pandas versions to assist with reproducing the error?

@philngo
Copy link
Contributor

philngo commented Jul 15, 2019

Additionally, would you mind pasting in the full traceback, redacted if necessary?

@LiuJingyao18360
Copy link
Author

LiuJingyao18360 commented Jul 15, 2019 via email

@philngo
Copy link
Contributor

philngo commented Jul 15, 2019

Hi - and the eemeter version?

The attachment does not seem to have gone through. Please paste the traceback text directly?

@LiuJingyao18360
Copy link
Author

LiuJingyao18360 commented Jul 16, 2019 via email

@philngo
Copy link
Contributor

philngo commented Jul 23, 2019

Hi, @LiuJingyao18360 -

I've tried, but I haven't yet been able to reproduce the error you are getting with the hourly methods code. I recommend using pandas 0.23.4 and eemeter 2.7.1, or using the docker setup (docker-compose build, docker-compose up jupyter, then paste the link into a browser). When you send the attachment by email it doesn't seem to be going through (try looking at this issue on github and you'll see how it appears: #357). The traceback text is the error that python prints out when it fails. I think you've pasted one line of it, but it's generally helpful to see all the lines of the traceback text because it includes references to the lines of code in the library that failed.

@LiuJingyao18360
Copy link
Author

The pandas 0.23.4 works well now. Thank you for your help!

@philngo philngo closed this as completed Aug 7, 2019
@philngo
Copy link
Contributor

philngo commented Sep 10, 2019

@LiuJingyao18360 Thanks for reaching out about this issue with the hourly methods. Please consider helping our developer community by filling out our first-time issue/PR contributor survey.

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