jlingema / uGMTScripts

Script collection for upgraded GMT
1 stars 4 forks source link

Consolidate file translations into Dumper classes #17

Closed jlingema closed 9 years ago

jlingema commented 9 years ago

Similar to the mp7_buffer_parser, dumper-classes should be written which consolidate the code spread across the pattern generation scripts. We will need 4 different dumpers:

  1. MP7OutputDumper
  2. MP7InputDumper
  3. TestbenchOutputDumper
  4. TestbenchInputDumper

2 is currently done in: https://github.com/jlingema/uGMTScripts/blob/master/ugmt_patterns/dat_to_mp7_dataformat.py 3 and 4 are done in: https://github.com/jlingema/uGMTScripts/blob/master/ugmt_patterns/dat_to_testbench.py

The basis for these dumpers should be the Muon objects. This will make a lot of code obsolete and consolidate the encoding / decoding in one place.