<filename>icetray/resources/test/test_delete.py
#!/usr/bin/env python
#
# Checking that the driving time exists
#
import sys
from I3Tray import *

from icecube import icetray 

tray = I3Tray()

# generate empty frames
tray.AddModule("BottomlessSource")

tray.AddModule("AddNulls", 
    where = ["here", "there", "everywhere", "tonsastuff"])

# verify they are there
tray.AddModule("FrameCheck",
    ensure_physics_has = ["here", "there", "everywhere", "tonsastuff"])


tray.AddModule("Delete", 
    Keys = ["here", "there"])

tray.AddModule("FrameCheck",
    ensure_physics_has =  ["everywhere", "tonsastuff"],
    ensure_physics_hasnt =  ["here", "there"])

# print em.   lots of nulls, dump shouldn't crash.
tray.AddModule("Dump","dump")

tray.Execute(15)


<filename>icetray/resources/test/test_delete.py
#!/usr/bin/env python
#
# Checking that the driving time exists
#
import sys
from I3Tray import *

from icecube import icetray 

tray = I3Tray()

# generate empty frames
tray.AddModule("BottomlessSource")

tray.AddModule("AddNulls", 
    where = ["here", "there", "everywhere", "tonsastuff"])

# verify they are there
tray.AddModule("FrameCheck",
    ensure_physics_has = ["here", "there", "everywhere", "tonsastuff"])


tray.AddModule("Delete", 
    Keys = ["here", "there"])

tray.AddModule("FrameCheck",
    ensure_physics_has =  ["everywhere", "tonsastuff"],
    ensure_physics_hasnt =  ["here", "there"])

# print em.   lots of nulls, dump shouldn't crash.
tray.AddModule("Dump","dump")

tray.Execute(15)


#!/usr/bin/env python # # Checking that the driving time exists # # generate empty frames # verify they are there # print em.   lots of nulls, dump shouldn't crash.