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

Handle unknown therapy event error when running ciq_therapy_event.py #54

Merged
merged 0 commits into from
Aug 23, 2022

Conversation

jyaw
Copy link
Contributor

@jyaw jyaw commented Aug 21, 2022

addressing Issue #52 ... Fixing issue with unknown "BG" therapy events.

Added a BGTherapyEvent and handled it similar to the way Bolus and CGM TherapyEvent are handled after noticing that I had "BG" type data in my tconnect events.

A few more notes.... I noticed that the objects BolusTherapyEvent was created differently than CGMTherapyEvent and the new BGTherapyEvent which made checking their class/type uniformly challenging. Went and made sure their parse methods were updated similarly, and went ahead and changed the check for equivalence from type() to isinstance since I was there.

@jyaw jyaw merged commit f47421e into jwoglom:master Aug 23, 2022
@jyaw jyaw force-pushed the topic/unknown-therapy-event branch from 2ccf021 to f47421e Compare August 23, 2022 00:13
@jyaw jyaw deleted the topic/unknown-therapy-event branch August 23, 2022 00:15
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

Successfully merging this pull request may close these issues.

1 participant