<html>
<head>
<style>
body {
  font-family: Verdana, sans-serif;
  font-size: 0.8em;
  color:#484848;
}
h1, h2, h3 { font-family: "Trebuchet MS", Verdana, sans-serif; margin: 0px; }
h1 { font-size: 1.2em; }
h2, h3 { font-size: 1.1em; }
a, a:link, a:visited { color: #2A5685;}
a:hover, a:active { color: #c61a1a; }
a.wiki-anchor { display: none; }
fieldset.attachments {border-width: 1px 0 0 0;}
hr {
  width: 100%;
  height: 1px;
  background: #ccc;
  border: 0;
}
span.footer {
  font-size: 0.8em;
  font-style: italic;
}
</style>
</head>
<body>
Issue #2949 has been updated by Lenna Peterson.

<ul>
  <li><strong>Description</strong> updated (<a title="View differences" href="https://redmine.open-bio.org/journals/diff/15374?detail_id=1684">diff</a>)</li>
  <li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></li>
  <li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li>
</ul>

<p>Migrated to github: <a class="external" href="https://github.com/biopython/biopython/issues/994">https://github.com/biopython/biopython/issues/994</a></p>
<hr />
<h1><a href="https://redmine.open-bio.org/issues/2949#change-15374">Bug #2949: _parse_pdb_header_list: REVDAT is for oldest entry.</a></h1>

<ul><li>Author: Anonymous</li>
<li>Status: Resolved</li>
<li>Priority: Normal</li>
<li>Assignee: Biopython Dev Mailing List</li>
<li>Category: Main Distribution</li>
<li>Target version: 1.52</li>
<li>URL: </li></ul>

<p>Hi,</p>


        <p>I don't know if this is considered a bug or a feature, but currently _parse_pdb_header_list in parse_pdb_header.py is grabbing the least recent date when I believe it should be grabbing the MOST current date.</p>


        <p>Here is the current code:<br />        elif key=="REVDAT":<br />            rr=re.search("\d\d-\w\w\w-\d\d",tail)<br />            if rr!=None:<br />                dict['release_date']=_format_date(_nice_case(rr.group()))</p>


        <p>And here is the fix, with additional REVDAT components added (can't hurt! :-) ):<br />        elif key=="REVDAT":<br />            #Modified by Paul T. Bathen to get most recent date instead of oldest date.<br />            #Also added additional dict entries<br />            if dict['release_date'] == "1909-01-08": #set in init<br />                rr=re.search("\d\d-\w\w\w-\d\d",tail)<br />                if rr!=None:<br />                    dict['release_date']=_format_date(_nice_case(rr.group()))</p>


        <pre><code>dict['mod_number'] = hh[7:10].strip()<br />                dict['mod_id'] = hh[23:28].strip()<br />                dict['mod_type'] = hh[31:32].strip()</code></pre>


        <p>Paul</p>



<hr />
<span class="footer"><p>You have received this notification because you have either subscribed to it, or are involved in it.<br />To change your notification preferences, please click here and login: <a class="external" href="http://redmine.open-bio.org">http://redmine.open-bio.org</a></p></span>
</body>
</html>