ooici/coi-services — pull request #1280 by lukecampbell (2013-08-12 18:36:57+00:00)
Title: Renames module, adds more assertions and logging

This commit expands the compatibility of this utility a bit. For some reason the standard HDF library is allowed to have more messages listed in the Object Header message than actually appear in the object list. The way I got around this was to add a local context EOF to the context objects, which is updated by object headers and continuation messages. If the local offset > local context EOF then it's one of these cases where there are more messages indicated than actually listed.

I also moved all the sys.stdout writes to logging statements so that the handler and output can be customized or ignored.

The extra assertions now check for version compatibility and various values, if the values are blatantly wrong in the superblock this should catch it.