0

Added a cache for open regionfile objects

This commit is contained in:
Andrew Brown
2012-03-04 18:46:02 -05:00
parent 30b224d5b1
commit 8206272fc8
4 changed files with 41 additions and 15 deletions

View File

@@ -215,7 +215,7 @@ class MCRFileReader(object):
# turn this data into a useful list
self._locations = self._table_format.unpack(location_data)
self._timestamps = self._table_format.unpack(timestamp_data)
def close(self):
"""Close the region file and free any resources associated
with keeping it open. Using this object after closing it