Skip to content

Commit

Permalink
Merge pull request #66 from sveint/index-mtime-fix
Browse files Browse the repository at this point in the history
Change build_index to only occur for old index
  • Loading branch information
mdshw5 committed May 12, 2015
2 parents b48001a + 0311c2f commit 7fccb82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyfaidx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def __init__(self, filename, default_seq=None, key_function=None,

self.mutable = mutable

if os.path.exists(self.indexname) and getmtime(self.indexname) > getmtime(self.filename):
if os.path.exists(self.indexname) and getmtime(self.indexname) >= getmtime(self.filename):
self.read_fai(split_char)
else:
try:
Expand Down

0 comments on commit 7fccb82

Please sign in to comment.