-
Notifications
You must be signed in to change notification settings - Fork 166
Basal picker #499
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
Basal picker #499
Conversation
mpangburn
left a comment
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.
LGTM! 🚀
| @@ -1 +1 @@ | |||
| github "LoopKit/LoopKit" "dev" | |||
| github "tidepool-org/LoopKit" "basal-picker" | |||
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.
What's your typical Cartfile strategy for merging changes that depend on different branches? Switch to the dependent branch while testing, then revert the Cartfile after merging?
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.
Yes. For me, I can build in a workspace setup, and not worry to much about updating carthage specs, but travis needs it updated, and if others check out the branch, it helps them be able to build.
darinkrauss
left a comment
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.
I think the range for rateGroup1 is incorrect and the Cartfile and Cartfile.resolved need to be fixed to point back to LoopKit/LoopKit, but otherwise looks good.
| public var supportedBasalRates: [Double] { | ||
| if generation >= 23 { | ||
| // 0.025 units (for rates between 0.0-0.975 U/h) | ||
| let rateGroup1 = ((0...38).map { Double($0) / Double(pulsesPerUnit) }) |
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.
Should 38 be 39?
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.
@ps2 Here.
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.
Thanks. Fixed here: 23af716
| } | ||
|
|
||
| public var maximumBasalScheduleEntryCount: Int { | ||
| return 48 |
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.
Really? Wow! I didn't know it supported 48.
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.
Yeah, It was a little bit of a pain to test, but the pump accepted it!
No description provided.