Преглед изворни кода

oref0 branch: dev - git version: f932754

bjornoleh пре 2 година
родитељ
комит
18ce7105e8

Разлика између датотеке није приказан због своје велике величине
+ 1 - 1
FreeAPS/Resources/javascript/bundle/autosens.js


Разлика између датотеке није приказан због своје велике величине
+ 1 - 1
FreeAPS/Resources/javascript/bundle/autotune-core.js


Разлика између датотеке није приказан због своје велике величине
+ 1 - 1
FreeAPS/Resources/javascript/bundle/autotune-prep.js


Разлика између датотеке није приказан због своје велике величине
+ 1 - 1
FreeAPS/Resources/javascript/bundle/basal-set-temp.js


Разлика између датотеке није приказан због своје велике величине
+ 1 - 1
FreeAPS/Resources/javascript/bundle/determine-basal.js


Разлика између датотеке није приказан због своје велике величине
+ 1 - 1
FreeAPS/Resources/javascript/bundle/glucose-get-last.js


Разлика између датотеке није приказан због своје велике величине
+ 1 - 1
FreeAPS/Resources/javascript/bundle/iob.js


Разлика између датотеке није приказан због своје велике величине
+ 1 - 1
FreeAPS/Resources/javascript/bundle/meal.js


Разлика између датотеке није приказан због своје велике величине
+ 1 - 1
FreeAPS/Resources/javascript/bundle/profile.js


+ 1 - 6
open-iaps-oref/lib/determine-basal/determine-basal.js

@@ -1570,11 +1570,6 @@ var determine_basal = function determine_basal(glucose_status, currenttemp, iob_
     }
     rT.reason += tddReason;
 
-    //If SMB delivery ratio is other than default 0.5
-    if (profile.smb_delivery_ratio != 0.5) {
-        rT.reason += ", SMB Ratio: " + profile.smb_delivery_ratio;
-    }
-
     rT.reason += "; "; // reason.conclusion started
 // Use minGuardBG to prevent overdosing in hypo-risk situations
     // use naive_eventualBG if above 40, but switch to minGuardBG if both eventualBGs hit floor of 39
@@ -1946,7 +1941,7 @@ var maxDelta_bg_threshold;
             //if (profile.bolus_increment) { bolusIncrement=profile.bolus_increment };
             var roundSMBTo = 1 / bolusIncrement;
 
-            var smb_ratio = profile.smb_delivery_ratio;
+            var smb_ratio = Math.min(profile.smb_delivery_ratio, 1);
 
             if (smb_ratio > 0.5) {
                 console.error("SMB Delivery Ratio increased from default 0.5 to " + round(smb_ratio,2))

+ 1 - 1
open-iaps-oref/lib/profile/index.js

@@ -20,7 +20,7 @@ function defaults ( ) {
     , sensitivity_raises_target: false // raise BG target when autosens detects sensitivity
     , resistance_lowers_target: false // lower BG target when autosens detects resistance
     , exercise_mode: false // when true, > 100 mg/dL high temp target adjusts sensitivityRatio for exercise_mode. This majorly changes the behavior of high temp targets from before. synonmym for high_temptarget_raises_sensitivity
-    , half_basal_exercise_target: 160 // when temptarget is 150 mg/dL *and* exercise_mode=true, run 50% basal at this level (120 = 75%; 140 = 60%)
+    , half_basal_exercise_target: 160 // when temptarget is 160 mg/dL *and* exercise_mode=true, run 50% basal at this level (120 = 75%; 140 = 60%)
     // create maxCOB and default it to 120 because that's the most a typical body can absorb over 4 hours.
     // (If someone enters more carbs or stacks more; OpenAPS will just truncate dosing based on 120.
     // Essentially, this just limits AMA/SMB as a safety cap against excessive COB entry)

+ 6 - 6
oref0_source_version.txt

@@ -1,10 +1,15 @@
-oref0 branch: dev - git version: acf203c
+oref0 branch: dev - git version: f932754
 
 Last commits:
+f932754 Merge pull request #4 from nightscout/duplicate_SMBratio
+975245b Add missing max limit = 1 for smb_ratio
+8a6051c Merge pull request #5 from nightscout/half_basal_target
 acf203c Merge pull request #6 from nightscout/webpack-cp_patch-1
 1fda0fa webpack-cp.sh: Set apsDIR=../Open-iAPS, fix path for source files
 47d2485 Merge pull request #3 from nightscout/webpack-cp_patch-1
 4f6de7c Update webpack-cp.sh     - echo "copying /lib/ source files to Open-iAPS/open-iaps-oref"     - append last 30 commits to oref0_source_version.txt     - copy source files to open-iaps-oref directory     - add informational .txt about open-iaps-oref source files when copying files     - update comments with the correct filename (webpack-cp.sh)
+159b800 index.js: use correct value (160) in comment for half_basal_exercise_target
+3add4a1 duplication of SMB ratio for tags
 97b012a Merge pull request #9 from JeremyStorring/time-issues
 b2cf75b move currentTime check up
 5cdd17d Merge branch 'iaps' into time-issues
@@ -26,8 +31,3 @@ fc0e748 Address review comments from Robert
 1276c59 Merge pull request #2 from bjornoleh/revert_1370
 3ff4e0a Rename script to webpack-cp.sh, commit webpack.config.js
 6cf69ec Revert "Tzachi shared node phase2 (#1370)"
-05a1a2e Updated oref2 files based on findings in minimised files in iAPS v3.0.3
-a9bdbb1 Missing Override variable
-02fa14d Set ceiling of threshold to 120 mg/dL
-5d17562 Update mods to oref2. Some older fixes not pushed to repo (Looping when high and override SMB settings time end bug etc.) Only run the TDD computation when not needed (dynISF enabled and when not any missing data).
-b5c4b39 Don't fetch settings not validated