freeaps icon indicating copy to clipboard operation
freeaps copied to clipboard

Very lengthy loop calculations while "Setting minimum Insulin Peak Time"

Open mountrcg opened this issue 2 years ago • 3 comments

I mistakenly had the following configuration: curve=rapid-acting usecustompeaktime=true
insulinPeakTime=45 The later is below the minimum insulinPeakTime of Orefs rapid-acting curve. FAX raises the following: 2021-11-02 19:44:15.900073+0100 FreeAPS[826:128377] [OpenAPS] JavaScriptWorker.swift - createContext() - 23 DEV: JavaScript log: Setting minimum Insulin Peak Time of 50m for,rapid-acting,insulin every 5 ms from 2021-11-02 19:44:03.263990+0100 until 2021-11-02 19:44:15.979159+0100 delaying every loop calculation considerably

mountrcg avatar Nov 02 '21 18:11 mountrcg

issue also raised in Telegram group and analysed by Marion: https://t.me/freeapsx_eng/9783

mountrcg avatar Nov 17 '21 07:11 mountrcg

Try ultra-rapid insulin curve, it has minimum of 35 min peak time.

https://github.com/openaps/oref0/blob/master/lib/iob/calculate.js#L90

zubernuker avatar Jan 06 '22 18:01 zubernuker

Yes I did this. However if someone sets a minumum peak time of 30min with ultra-rapid, that person will run in the same problem.

mountrcg avatar Jan 08 '22 19:01 mountrcg