Commit 1e058a04 authored by Edward Fauchon-Jones's avatar Edward Fauchon-Jones
Browse files

Add format 2 interfield logic to lvcnrcheck

parent 36e5f48e
......@@ -20,7 +20,9 @@ import numpy as np
from lvcnrpy.Sim import Sim
from colorama import Fore, Back, Style
import h5py as h5
from lvcnrpy.format.format import format1, format1Interfield, format2, format3
from lvcnrpy.format.format import format1, format1Interfield
from lvcnrpy.format.format import format2, format2Interfield
from lvcnrpy.format.format import format3
import lvcnrpy.format.specs as specs
import lvcnrpy.format.errors as err
import sys
......@@ -140,6 +142,14 @@ if __name__ == '__main__':
print('')
# Format 2 interfield checks
print('# Format 2 (Interfield)\n')
for interfieldKey, interfield in format2Interfield.items():
checkInt += checkInterfield(sim, interfield())
print('')
if fmt > 2:
# Format 3
print('# Format 3\n')
......
......@@ -83,6 +83,8 @@ format2 = OrderedDict((
('LNhatz-vs-time', LNhatzVsTime),
('Omega-vs-time', OmegaVsTime)))
format2Interfield = OrderedDict(())
format3 = OrderedDict((
('remnant-mass-vs-time', RemnantMassVsTime),
('remnant-spinx-vs-time', RemnantSpinxVsTime),
......
......@@ -92,6 +92,9 @@ templateOutput = """# Format 1
- [=] LNhatz-vs-time (<class 'h5py._hl.group.Group'>)
- [=] Omega-vs-time (<class 'h5py._hl.group.Group'>)
# Format 2 (Interfield)
# Format 3
- [=] remnant-mass-vs-time (<class 'h5py._hl.group.Group'>)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment