GRIFFINCollaboration / data-spy

an online parser of raw GRIFFIN data
http://griffincollaboration.github.io/data-spy
MIT License
1 stars 0 forks source link

Programmatic Logic

All unpacking is performed by a parser class unique to the data type being unpacked (GRIF-16 fragment, GRIF-16 scalar, PPG or GRIF-4G fragment). Simultaneously, the parser checks for inconsistencies in the data, via the following pattern

  1. Each parser contains an assessComposition method, which checks that a valid number of words appear in a valid order in the event; any problems are recorded in the dataStore in an array of error messages.

  2. For each word type, the parser contains a function to unpack that word and raise warnings about problems aparent in that word.

  3. Finally, each parser contains a last-pass function postProcessingFlags to check for any inconsistencies apparent after unpacking is complete.

List of Sanity Checks

GRIF-16 Fragments

Event-Level

Word-Level

GRIF-4G Fragments

Analogous to GRIF-16 Fragments.

PPG

Event-Level

Word-Level

Scalers

Event-Level

Word-Level