Esempio n. 1
0
def gatherframes(plan,frame):
    """This gathers up all the frames that one might want to use
    in conjunction with a science frame.
    """

    types = plan.pipeline.framelist.split()
    for type in types:
        otherframes = []
        if type == "Object":
            otherframes = Frameutil.findlikeframes(frame)
        else:
            otherframes = Frameutil.findframestype(frame,type)
            
        appendframes(plan,otherframes)

    plan.update()