forked from openaps/oref0
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize oref0-pump-loop, and bug fixes (openaps#772)
* standardize on openaps report invoke * not-yet-tested refactoring of monitor-pump, meal.json, etc. * more refactoring for speed * redirect output to the right files * don't display full traceback on time set errors * only run refresh_ commands if we don't have new glucose data yet * remove end-of-line whitespace * update pump_loop_completed before glucose-fresh checks * reset pump clock if >55s off; better error messaging * syntax * nest ifs so we quit immediately if fresh * hide red-herring 'date: invalid date ‘@’' message * don't redirect oref0-meal stderr to meal.json * more accurate log message * show monitor/status.json if it's bolusing * allow bolus and bolus wizard timestamps to differ by 1 second * boluswizard uses current.carb_input not current.carbs * warn if Treatment carbs unclassified * profile.A52_risk_enable variable reference * don't wait_for_bg after a Warning * replace () with { ;} * use try and retry functions * retry basal_profile.json pull if it fails * Couldn't * curly braces and clearer error * syntax * exclude .pyc files from git * lots more try, move suspended check to fail function * log when Reducing insulinReq for expectedDelta * try inside smb_suggest * grammar * wait_for_bg if too old; clarify error messages * not sure how that got removed * touch pump_loop_completed to wait for a new BG * newlines * check that profile has a valid current_basal * differentiate things we can continue from if they fail * "grep: enact/smb-suggested.json: No such file or directory" is not useful * rename refresh_pumphistory_and_meal for error clarity * continuing * "grep: enact/smb-suggested.json: No such file or directory" is not useful * install ntpdate * only show reason too old if it's recent * make sure status.json is fresh before checking if it says pump is suspended * use try_return to more clearly log when ESC or bolus fails * move calculate_iob into merge_pumphistory as it requires pumphistory-merged.json * syntax
- Loading branch information
1 parent
83ff660
commit a3f82a8
Showing
9 changed files
with
207 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,3 +23,5 @@ npm-debug.log | |
bin/__pycache__ | ||
|
||
package-lock.json | ||
|
||
*.pyc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.