processing_components/visibility/base.py
def ParamDict(hdul):
        "Return the dictionary of the random parameters"

        """
        The keys of the dictionary are the parameter names uppercased for
        consistency. The values are the column numbers.

        If multiple parameters have the same name (e.g., DATE) their
        columns are entered as a list.
        """

        pre=re.compile(r"PTYPE(?P<i>\d+)")
        res={}
        for k,v in hdul.header.items():
            m=pre.match(k)
            if m :
                vu=v.upper()
                if vu in res:
                    res[ vu ] = [ res[vu], int(m.group("i")) ]
                else:
                    res[ vu ] = int(m.group("i"))
        return res
Return the dictionary of the random parameters
Return the dictionary of the random parameters
Return the dictionary of the random parameters
def ParamDict(hdul):
        pre=re.compile(r"PTYPE(?P<i>\d+)")
        res={}
        for k,v in hdul.header.items():
            m=pre.match(k)
            if m :
                vu=v.upper()
                if vu in res:
                    res[ vu ] = [ res[vu], int(m.group("i")) ]
                else:
                    res[ vu ] = int(m.group("i"))
        return res
def ParamDict ( hdul ) : """
        The keys of the dictionary are the parameter names uppercased for
        consistency. The values are the column numbers.

        If multiple parameters have the same name (e.g., DATE) their
        columns are entered as a list.
        """ pre = re . compile ( r"PTYPE(?P<i>\d+)" ) res = { } for k , v in hdul . header . items ( ) : m = pre . match ( k ) if m : vu = v . upper ( ) if vu in res : res [ vu ] = [ res [ vu ] , int ( m . group ( "i" ) ) ] else : res [ vu ] = int ( m . group ( "i" ) ) return res
Return the dictionary of the random parameters
Return the dictionary of the random parameters
"Return the dictionary of the random parameters" """
        The keys of the dictionary are the parameter names uppercased for
        consistency. The values are the column numbers.

        If multiple parameters have the same name (e.g., DATE) their
        columns are entered as a list.
        """
hdul