Re: CNS calculation headaches - follow-up

2019-08-10 Thread Willem Ferguson
On 2019/08/10 22:09, Willem Ferguson wrote: On 2019/08/10 20:30, Linus Torvalds wrote: Just looking at that graph, I'd be comfortable using the 4th-order approximation for the valid range (ie pO2 of 0.6-1.6, which is what we have data points for). I'd also think that the extensions _past_

Re: CNS calculation headaches

2019-08-10 Thread Willem Ferguson
On 2019/08/10 20:30, Linus Torvalds wrote: Just looking at that graph, I'd be comfortable using the 4th-order approximation for the valid range (ie pO2 of 0.6-1.6, which is what we have data points for). I'd also think that the extensions _past_ that range look sane - BUT I think that if

Re: Buttons on bottom not pushable can't save dives

2019-08-10 Thread Dirk Hohndel
Oops, I missed that you had sent email to the mailing list as well... > On Aug 10, 2019, at 10:14 AM, kelle...@gmx.net wrote: > > hello to everybody, > this problem occure today after installing version 4.9.1.16: > > I can't push anymore the buttons on the bottom to save the new dives. > (

Re: CNS calculation headaches

2019-08-10 Thread Linus Torvalds
On Sat, Aug 10, 2019 at 11:30 AM Linus Torvalds wrote: > > I'm attaching my R script so that people can try it themselves, Side note: unlike Dirk, I'm not actually a math major. Yes, I did math as a minor, but most of that was discrete math and set theory. And my R skills are "I can google and

Re: CNS calculation headaches

2019-08-10 Thread Willem Ferguson
On 2019/08/10 17:04, Robert Helling wrote: Willem, On 10. Aug 2019, at 16:10, Willem Ferguson > wrote: An interesting alternative, Robert. I am not happy with the deviation at 1.5 and 1.6. One would have to check what the effect of these two points

Re: Opening a local git repository

2019-08-10 Thread Dirk Hohndel
I'm not quite sure why the 'recently opened' entry disappears. Can you open a GitHub issue for that, please? To open a repo from the File->open menu you need a somewhat odd syntax. Go to the directory, then as filename enter '[branchname]' (with the brackets but without the single quotes). That

Re: CNS calculation headaches

2019-08-10 Thread Riccardo Brama
Robert, I totally agree with you on the use of a two functions interpolation. One to be used up to 1.5 the other one (that seems to me to be well approximated by a linear interpolation) for higher values. That would lead to less "underestimation" and to a behavior that seems to be more

Re: CNS calculation headaches

2019-08-10 Thread Robert Helling
Willem,On 10. Aug 2019, at 16:10, Willem Ferguson wrote:An interesting alternative, Robert. I am not happy with the deviation at 1.5 and 1.6. One would have to check what the effect of these two points are on the power curve. What is the effect on the overall fit

Re: CNS calculation headaches

2019-08-10 Thread Willem Ferguson
On 2019/08/10 15:40, Robert Helling wrote: Willem, On 10. Aug 2019, at 15:19, Robert Helling > wrote: PS: The original problem arose as the interpolated table value is used in the denominator of the cns += formula and would result in a pole when the extrapolated

Re: CNS calculation headaches

2019-08-10 Thread Robert Helling
Willem,On 10. Aug 2019, at 15:19, Robert Helling wrote:PS: The original problem arose as the interpolated table value is used in the denominator of the cns += formula and would result in a pole when the extrapolated table value reaches 0. Maybe we should redo the whole thing

Re: CNS calculation headaches

2019-08-10 Thread Robert Helling
Willem, > On 10. Aug 2019, at 14:16, Willem Ferguson > wrote: > > The bug that that was encountered during dive planning by one of the users > leads to an interesting point about the handling of dives that are not > well-behaved, i.e. with pO2 above 1.6. The NOAA tables for calculating CNS

Opening a local git repository

2019-08-10 Thread Willem Ferguson
After saving to a local git repository and hitting File in the main menu, I see the git repository listed under the recently-opened files an I can easily select it open it again. However, if I close down Subsurface and reactivate it again, the repository does not appear under the list of

CNS calculation headaches

2019-08-10 Thread Willem Ferguson
Robert, Linus, The bug that that was encountered during dive planning by one of the users leads to an interesting point about the handling of dives that are not well-behaved, i.e. with pO2 above 1.6. The NOAA tables for calculating CNS toxicity only go up to a pO2 of 1.6. Above that our

Re: Typo in CNS calculation

2019-08-10 Thread Dean Murray
Shearwater published their approach for po2 > 1.6. Seems pretty conservative and given their position in the market I suspect it would be pretty agreeable to most people to follow their lead. https://www.shearwater.com/monthly-blog-posts/shearwater-and-the-cns-oxygen-clock/ Dean On Sat, 10 Aug.

Re: Typo in CNS calculation

2019-08-10 Thread Willem Ferguson
On 2019/08/09 23:23, Robert Helling wrote: Willem, could you please have a look at the final computation in staticdoublecalculate_cns_dive(conststructdive*dive) in divelist.c It seems to me that the first minus in