-
Notifications
You must be signed in to change notification settings - Fork 10
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
Added #121 #150
Added #121 #150
Conversation
@TeachMeTW can you highlight how this wasn't found in the testing for #149 |
@TeachMeTW I would like to understand why you did not encounter this error in local testing |
In my local testing, I'm not entirely sure why the error didn't occur. Here's what I did:
Throughout these steps, no errors were encountered. It's possible that the issue is specific to the stage environment or certain data conditions that aren't present in my local setup. Next Steps to Investigate:
I'm open to any additional suggestions or insights that could help identify why the error isn't manifesting in my local tests but is affecting others. I'll make sure to ask @JGreenlee as to why I cannot reproduce the error |
Maybe it's because I haven't reset my data? I've been using the same loaded open access and ca e-bike since the very beginning? They may have been modified -- I can try re intaking them and test that |
We had previously talked about this bug in #121 and e-mission/em-public-dashboard#141. My guess is that it affects Stage but it does not affect |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The commit in this PR appears to have been generated by copy-pasting code from #121. It would have been preferable to use git cherry-pick
. However, I see that the indentation level has changed with the addition of Timer blocks, so maybe you tried git cherry-pick
and it did not work.
Regardless, I manually compared this PR to #121 and they are the same except for the indentation level. Approved.
Yes I did try to cherry pick but there were merge conflicts in regards to the whole function |
@JGreenlee @shankari I reproduced with Seems Jack was right:
It is dataset dependent |
Callback Error Updating
store-trips.data
-TypeError: 'float' object is not subscriptable
Description
We are encountering a
TypeError
while updatingstore-trips.data
. The error traceback indicates that there is an issue with the function applied to theble_sensed_summary
column in the DataFrame. The error occurs because afloat
object is being treated as if it were a dictionary.Traceback
Issue
The
TypeError
occurs because the lambda functionget_max_mode_from_summary
expectsmd
to be a dictionary with a"distance"
key that maps to another dictionary. However, it appears that some entries inble_sensed_summary
arefloat
values, which are not subscriptable and thus lead to this error.Expected Behavior
The
ble_sensed_summary
column should be processed correctly, and theget_max_mode_from_summary
function should handle various data types properly without raising an error.WAS NOT FOUND IN TESTING FOR 149
One user (me) had a 504 timeout error while @shankari discovered it was due to this issue.
Fixes #145 (comment)