I have now run into an even stranger error, which I think we should try to integrate into a conference call. It looks like babase has a rule that MCE&#39;s cannot occur before a male has reached testicular enlargment.  So, when I tried to move the dates, BOZ threw an error.<div>

<p class="MsoNormal" style="line-height:normal"><span style="font-size:10.0pt;color:black">update maturedates<br>
set matured = rnkdate(matured);</span></p>

<table border="0" cellpadding="0" style="background:#E6E6CC">
 <tbody><tr>
  <td style="padding:0in 0in 0in 0in">
  <p class="MsoNormal" style="margin-right:3.0pt;margin-left:3.0pt;line-height:normal"><b><span style="font-size:10.0pt">SQL error:</span></b><span style="font-size:10.0pt"></span></p>
  <p class="MsoNormal" style="margin-top:0in;margin-right:3.0pt;margin-bottom:0in;margin-left:3.0pt;margin-bottom:.0001pt;line-height:normal"><span style="font-size:8.5pt">ERROR:<span>  </span>BOZ:
  1997-05-01: Female&#39;s mounts, consortships, and ejaculations must not come
  before the maturity date</span></p>
  <p class="MsoNormal" style="margin-right:3.0pt;margin-left:3.0pt;line-height:normal"><b><span style="font-size:10.0pt">In statement:</span></b><span style="font-size:10.0pt"><br>
  update maturedates<br>
  set matured = rnkdate(matured);</span></p>
  </td>
 </tr>
</tbody></table>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal"><span style="font-size:10.0pt;color:black"> </span></p>

<p class="MsoNormal" style="line-height:normal;background:#E6E6CC"><span style="font-size:10.0pt;color:black">Lines 1-2: ERROR: BOZ: 1997-05-01: Female&#39;s mounts, consortships,
and ejaculations must not come before the maturity date</span></p><div class="gmail_quote">At first I thought this was an issue with the function, since the function is named rnkdate and we are messing with maturedates table. However, BOZ doesn&#39;t even have a rankdate.  He matured in May 1997, has NO MCE in 1997. I looked back and he does have some M records in 1996. So, it seems like what we are really catching here is the fact that someone data was forced into babase and this particular error was missed later on.</div>

<div class="gmail_quote"><br></div><div class="gmail_quote">I&#39;m also not sure why the error message is alerting us to a problem with females havng these lines when BOZ is a male.</div><div class="gmail_quote"><br></div>

<div class="gmail_quote">Anyway, I think we did uncover another error and I think it merits some discussion. I Am going to proceed to work on the update until we can all talk about this. </div><div class="gmail_quote"><br>
</div><div class="gmail_quote">It looks like we already need to reschedule Thursday&#39;s as Susan&#39;s schedule has a conflict...</div><div class="gmail_quote"><br></div><div class="gmail_quote">Let me know what you think</div>
<div class="gmail_quote">Lacey</div><div class="gmail_quote"><br></div><div class="gmail_quote">On Mon, Mar 22, 2010 at 11:00 AM, Jeanne Altmann <span dir="ltr">&lt;<a href="mailto:altj@princeton.edu" target="_blank">altj@princeton.edu</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">








<div lang="EN-US" link="blue" vlink="purple">

<div>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">Excellent, thanks Lacey</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">jeanne</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p>

<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">

<p class="MsoNormal"><b><span style="font-size:10.0pt">From:</span></b><span style="font-size:10.0pt">
<a href="mailto:babase-bounces@eeblistserv.princeton.edu" target="_blank">babase-bounces@eeblistserv.princeton.edu</a>
[mailto:<a href="mailto:babase-bounces@eeblistserv.princeton.edu" target="_blank">babase-bounces@eeblistserv.princeton.edu</a>] <b>On Behalf Of </b>Lacey
Maryott Roerish<br>
<b>Sent:</b> Monday, March 22, 2010 10:59 AM</span></p><div><div></div><div><br>
<b>To:</b> The Baboon Database Project<br>
<b>Subject:</b> Re: [Babase] Rankdate Changes in Babase</div></div><p></p>

</div><div><div></div><div>

<p class="MsoNormal"> </p>

<p class="MsoNormal">I did some checking this morning and there don&#39;t seem to be
glaring errors between maturedates and rankdates tables.  No maturedates
occur after rankdates(which was to be expected given babase contraints, but I
just wanted to check). All of the matdates falling in the middle of a month are
equal to their rankdates counterpart, or occur in different years, which would
would expect to see with the &#39;On&#39; ranked dates.</p>

<div>

<p class="MsoNormal"> </p>

</div>

<div>

<p class="MsoNormal">I am going to go ahead and roll all maturedates back to the
first, and then all rankdates.  From there we can pick at larger errors
like rankdates and ranktypes not matching up. This at least standardizes this
part of it!</p>

</div>

<div>

<p class="MsoNormal"> </p>

</div>

<div>

<p class="MsoNormal">Cheers</p>

</div>

<div>

<p class="MsoNormal" style="margin-bottom:12.0pt">Lacey</p>

<div>

<p class="MsoNormal">On Sat, Mar 20, 2010 at 10:03 AM, Susan Alberts &lt;<a href="mailto:alberts@duke.edu" target="_blank">alberts@duke.edu</a>&gt; wrote:</p>

<p class="MsoNormal">Most maturedates that don&#39;t fall on the first of the month
are &#39;by&#39; dates but a number are &#39;on&#39; dates from earlier decades. These used to
be done with dates other than the first of the month -- there is nothing wrong
with them, but they can be changed.<br>
<br>
For rankdates, indeed most &quot;on&quot; dates are first of the month, but a
few are not. There were some instances where we actually saw the day on which
rank was attained, and entered those dates. All are from earlier decades and
all can be changed.<br>
<span style="color:#888888"><br>
Susan</span></p>

<div>

<div>

<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
<br>
On Mar 19, 2010, at 4:22 PM, Jeanne Altmann wrote:</p>

<p class="MsoNormal">Ah, yes. I assume all of these are ‘by’ dates.  If not.
Something more is wrong. Thanks for the update on progress.<br>
jeanne<br>
<br>
From: <a href="mailto:babase-bounces@eeblistserv.princeton.edu" target="_blank">babase-bounces@eeblistserv.princeton.edu</a>
[mailto:<a href="mailto:babase-bounces@eeblistserv.princeton.edu" target="_blank">babase-bounces@eeblistserv.princeton.edu</a>] On Behalf Of Lacey
Maryott Roerish<br>
Sent: Friday, March 19, 2010 4:15 PM<br>
To: The Baboon Database Project<br>
Subject: Re: [Babase] Rankdate Changes in Babase<br>
<br>
Susan, Jeanne, Niki and Karl<br>
<br>
   I am running into some problems with changing the rankdates to the
first of the month.  There is a rule that the matured date has to be less
than or equal to rank date (With good reason). However, all of the maturedates
that also occur mid-month are throwing an error. So, it looks as though I will
have to roll those back as well. Will pick at this and try to fix all of the
maturedates before rolling the rankdates back.<br>
<br>
   I spoke with Karl about this and there is a work-around that could
fix the majority while skipping the ones that violate this rule, but it kind of
seems like if I am going to be elbow deep in the data anyway, I should just fix
the whole problem at once.   Does this fit with how princeton feels about
the timeline of this project?  I expect I can have it all fixed my
mid-morning monday, I just want to do some cross-checking of maturedates and
rankdates and make sure there aren&#39;t any glaring errors before i change a whole
bunch of data in 2 tables.<br>
<br>
Let me know<br>
<br>
Lacey<br>
<br>
On Fri, Mar 19, 2010 at 3:25 PM, Jeanne Altmann &lt;<a href="mailto:altj@princeton.edu" target="_blank">altj@princeton.edu</a>&gt;
wrote:<br>
<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:babase-bounces@eeblistserv.princeton.edu" target="_blank">babase-bounces@eeblistserv.princeton.edu</a><br>
[mailto:<a href="mailto:babase-bounces@eeblistserv.princeton.edu" target="_blank">babase-bounces@eeblistserv.princeton.edu</a>] On Behalf Of Karl
O.<br>
Pinc<br>
Sent: Friday, March 19, 2010 3:15 PM<br>
To: The Baboon Database Project<br>
Subject: Re: [Babase] Rankdate Changes in Babase<br>
<br>
On 03/19/2010 01:48:28 PM, Lacey Maryott Roerish wrote:<br>
&gt; Susan, (et al)<br>
&gt;<br>
&gt;       Jeanne, Karl, Niki and I just finished discussing how
to handle<br>
&gt; some<br>
&gt; recent issues discovered in babase related to Rankdates.  It can be<br>
&gt; difficult to extract number of males on a given date if some males<br>
&gt; rankdates<br>
&gt; occur in the middle of the month.  For this reason,  I will be<br>
&gt; changing all<br>
&gt; rankdates (Both BY and ON) to the beginning on the month using a<br>
&gt; function<br>
&gt; Karl had previously developed.  This will simply make querying<br>
&gt; easier,<br>
&gt; and<br>
&gt; will also sync up rankdates data with actual rank data, which are all<br>
&gt; recorded on the 1st of the month.<br>
<br>
We will also then put a rule in requiring that rankdates.rnkdate be<br>
on the first of the month.  (Once Lacey let&#39;s me know she&#39;s done<br>
changing the data.)<br>
<br>
The problem has been that nobody ever uses the rnkdate() function,<br>
which sets a date to the first of the month, when comparing<br>
ranks.rnkdate with rankdates.ranked.  They&#39;ll still have to use this<br>
function when doing arbitrary date comparisons against either<br>
ranks.rnkdate or, now, rankdates.ranked so we&#39;re not really<br>
making the problem go away, but are pushing it farther to the<br>
fringes.  In any case the ranks.rnkdate/rankdate.ranked problem<br>
has been discussed every few years so it&#39;s clear there&#39;s a<br>
problem there that this change will make go away.<br>
<br>
<br>
Karl &lt;<a href="mailto:kop@meme.com" target="_blank">kop@meme.com</a>&gt;<br>
Free Software:  &quot;You don&#39;t pay back, you pay forward.&quot;<br>
               -- Robert A. Heinlein<br>
<br>
Agreed; it will remain a potentially valuable function that we need to<br>
remember the situations you note.  However, with the proposed change, we<br>
will have the ranked-by date regularized, which is good, and we will<br>
make moot the most common use for the function. Thanks Karl for the<br>
patient reminder about the function and all for brainstorming on the<br>
various issues.<br>
<br>
jeanne<br>
<br>
_______________________________________________<br>
Babase mailing list<br>
<a href="mailto:Babase@www.eco.princeton.edu" target="_blank">Babase@www.eco.princeton.edu</a><br>
<a href="http://www.eco.princeton.edu/mailman/listinfo/babase" target="_blank">http://www.eco.princeton.edu/mailman/listinfo/babase</a><br>
<br>
_______________________________________________<br>
Babase mailing list<br>
<a href="mailto:Babase@www.eco.princeton.edu" target="_blank">Babase@www.eco.princeton.edu</a><br>
<a href="http://www.eco.princeton.edu/mailman/listinfo/babase" target="_blank">http://www.eco.princeton.edu/mailman/listinfo/babase</a><br>
<br>
<br>
<br>
-- <br>
- -<br>
Lacey K. Maryott Roerish<br>
Alberts Lab<br>
Department of Biology<br>
Duke University<br>
ph: 919-660-7306<br>
fax: 919-660-7293<br>
<a href="mailto:Lacey.Maryott@duke.edu" target="_blank">Lacey.Maryott@duke.edu</a><br>
_______________________________________________<br>
Babase mailing list<br>
<a href="mailto:Babase@www.eco.princeton.edu" target="_blank">Babase@www.eco.princeton.edu</a><br>
<a href="http://www.eco.princeton.edu/mailman/listinfo/babase" target="_blank">http://www.eco.princeton.edu/mailman/listinfo/babase</a></p>

<p class="MsoNormal"> </p>

</div>

</div>

<div>

<p class="MsoNormal" style="margin-bottom:12.0pt">--------------------------------------------------------<br>
Susan Alberts, Dept of Biology, Duke University, Box 90338, Durham NC 27708,
919-660-7272 (Ph), 919-660-7293 (Fax)<br>
<br>
<br>
<br>
<br>
</p>

</div>

<div>

<div>

<p class="MsoNormal">_______________________________________________<br>
Babase mailing list<br>
<a href="mailto:Babase@www.eco.princeton.edu" target="_blank">Babase@www.eco.princeton.edu</a><br>
<a href="http://www.eco.princeton.edu/mailman/listinfo/babase" target="_blank">http://www.eco.princeton.edu/mailman/listinfo/babase</a></p>

</div>

</div>

</div>

<p class="MsoNormal"><br>
<br clear="all">
<br>
-- <br>
- -<br>
Lacey K. Maryott Roerish<br>
Alberts Lab<br>
Department of Biology<br>
Duke University<br>
ph: 919-660-7306<br>
fax: 919-660-7293<br>
<a href="mailto:Lacey.Maryott@duke.edu" target="_blank">Lacey.Maryott@duke.edu</a></p>

</div>

</div></div></div>

</div>


<br>_______________________________________________<br>
Babase mailing list<br>
<a href="mailto:Babase@www.eco.princeton.edu" target="_blank">Babase@www.eco.princeton.edu</a><br>
<a href="http://www.eco.princeton.edu/mailman/listinfo/babase" target="_blank">http://www.eco.princeton.edu/mailman/listinfo/babase</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>- -<br>Lacey K. Maryott Roerish<br>Alberts Lab<br>Department of Biology<br>Duke University<br>ph: 919-660-7306<br>fax: 919-660-7293<br><a href="mailto:Lacey.Maryott@duke.edu" target="_blank">Lacey.Maryott@duke.edu</a><br>


</div>