Nohrio

From OHRRPGCE-Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

nohrio is a python package by David Gowers designed to facilitate OHRRPGCE data manipulation utilities and human inspection of data, by providing:

  • numpy.memmap based interface for directly manipulating OHRRPGCE fixed-length-record based data files.
  • classes for accessing (some) data where the memmap interface is not appropriate, such as binSize, fixBits and Script
  • a human readable and editable YAML serialization of all records, upon which standard tools like ‘grep’ and ‘diff’ are applicable
  • sane, readily updateable binary serialization of the insane-in-spots OHRRPGCE formats

nohrio is available at:

There are two branches:

  • master is the branch used by existing utilities such as rpgbatch and tabulate.py. It adds a number of convenience classes and is semi-maintained (though lump definitions are typically a bit out of date)
  • nohrio2 is David's rewrite of nohrio which abandons the pure numpy.memmap-based interface in favour of class-based abstractions over data. This branch is very stale.

Aside from the fact that the nohrio2 branch targets a very old OHRRPGCE version, it's not clear whether it was ever in a usable state. Eventually we would like to port all the improvements from master over to nohrio2 and convert rpgbatch to use that branch, but currently noone has time for it.