[Babase] sexskins upload errors_no mdates

Karl O. Pinc kop at meme.com
Mon May 12 15:44:55 EDT 2008


On 05/12/2008 12:47:26 PM, Karl O. Pinc wrote:
> 
> On 05/12/2008 10:51:06 AM, kfenn wrote:
>> 
>> 
>> Karl O. Pinc wrote:
>>> 
>>> Second, I took another look at the automatic assignment of sexskins  
>>> to
>>> cycles with pregnancies in mind and found that the code was not
>>> testing for pregnancy.  It was assigning the sexskin to the cycle of
>>> the CYCPOINTS row on or before the SEXSKINS.Date value, and failing
>>> over to the CYCPOINTS row after SEXSKINS.Date when such a row did  
>>> not
>>> exist.

> 
> Hummm....   The documentation (Sexual Cycle Determination section)
> says:
> --------<snip>--------
> Relate the measurement to the cycle of the Mdate, Tdate, or Ddate  
> that falls on the date of the measurement or is the latest Mdate,  
> Tdate, or Ddate preceding the measurement, so long as there is no gap  
> in observation between the measurement date and Mdate, Tdate, or  
> Ddate. If there is no such Mdate, Tdate, or Ddate due to gaps in  
> observation or simple lack of data, then relate the measurement to  
> the cycle of the earliest Tdate or Ddate that follows the measurement  
> but is not separated from the measurement by a gap in observation or  
> an intervening Mdate. If there is no such Tdate or Ddate then the  
> measurement may not be recorded in Babase.
> --------<snip>--------
> 
> This is not right because it does not account for pregnancies.
> By the time you read this it should be changed to something better.
> Please check the docs and see what you think.
> 
> So, the answer to the above is that our design was bad.
> 

The answer I came up with was wrong.  Tabby and I came up with
a new answer in a phone call.  The solution in the case of
pregnancies is to use the birthdate in place of the Mdate,
anything before the birthdate gets assigned to the conception
sexual cycle.  Events on or after the birthdate get assigned to
the resumption sexual cycle.

Should be fixed.

Tabby, please review and test.

Karl <kop at meme.com>
Free Software:  "You don't pay back, you pay forward."
                  -- Robert A. Heinlein



More information about the Babase mailing list