henjo / libpsf

PSF simulation data c++ library
GNU Lesser General Public License v3.0
26 stars 23 forks source link

Ghb8 close method #9

Closed michaelnt closed 12 years ago

michaelnt commented 12 years ago

This branch adds a close method to the PSFDataSet to resolve issue #8.

Calling this method calls close on PSFFile, which was modified to unmap the buffer as wekk as closing the file descriptor.

An open check was added to the other methods of PSFDataSet, which re-opens the file if any of these methods are called, after close.

I rebased this branch against your master but couldn't build the python extension without the (unmerged) setup.py changes, so the testing was before the rebase.