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.
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.