You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bin/oref0-determine-basal.js
+18Lines changed: 18 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -102,6 +102,24 @@ if (!module.parent) {
102
102
returnconsole.error("Could not parse input data: ",e);
103
103
}
104
104
105
+
//attempting to provide a check for autotune
106
+
//if autotune directory does not exist, SMB/oref1 should not be able to run
107
+
108
+
// console.error("Printing this so you know it's getting to the check for autotune.")
109
+
110
+
//printing microbolus before attempting check
111
+
console.error("Microbolus var is currently set to: ",params['microbolus']);
112
+
113
+
if(params['microbolus']){
114
+
if(fs.existsSync("autotune")){
115
+
console.error("Autotune exists! Hoorah! You can use microbolus-related features.")
116
+
}else{
117
+
console.error("Warning: Autotune has not been run. All microboluses will be disabled until you manually run autotune or add it to run nightly in your loop.");
118
+
params['microbolus']=false;
119
+
console.error("Microbolus var is currently set to: ",params['microbolus']);
0 commit comments