Skip to content

WIP carb absorption metadata integration to Loop interface - #1

Open
PorkShoulderHolder wants to merge 10 commits into
devfrom
feature/replica-carb-absorption-integration
Open

WIP carb absorption metadata integration to Loop interface#1
PorkShoulderHolder wants to merge 10 commits into
devfrom
feature/replica-carb-absorption-integration

Conversation

@PorkShoulderHolder

Copy link
Copy Markdown

No description provided.

startDate: startDate.addingTimeInterval(.hours(24) * Double(index) / Double(simulatedPerDay)),
grams: Double(20 + 10 * (index % 3)),
absorptionTime: .hours(Double(2 + index % 3)),
absorptionData: nil)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be nil?

foodType: nil,
absorptionTime: nil)
absorptionTime: nil,
absorptionData: nil)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be nil here because this is for missed meal detection (creating from scratch).


// If the entry is in the past or an entry is replaced, DCA and RC effects must be recomputed
var entries = recentEntries.map { NewCarbEntry(quantity: $0.quantity, startDate: $0.startDate, foodType: nil, absorptionTime: $0.absorptionTime) }
var entries = recentEntries.map { NewCarbEntry(quantity: $0.quantity, startDate: $0.startDate, foodType: nil, absorptionTime: $0.absorptionTime, absorptionData: $0.historicalAbsorptionData) }

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still haven't actually populated historicalAbsorptionData from the metadata string itself anywhere. but after that step and a couple bug fixes this should work...

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.

3 participants