def _erfa_check(ira, idec, astrom):
 (cra, cdec) = erfa.atciq(ira, idec, 0, 0, 0, 0, astrom)
 (az, zen, ha, odec, ora) = erfa.atioq(cra, cdec, astrom)
 alt = ((np.pi / 2) - zen)
 (cra2, cdec2) = erfa.atoiq(u'A', az, zen, astrom)
 (ira2, idec2) = erfa.aticq(cra2, cdec2, astrom)
 dct = locals()
 del dct[u'astrom']
 return dct

def _erfa_check ( ira , idec , astrom ) : ( cra , cdec ) = erfa . atciq ( ira , idec , 0 , 0 , 0 , 0 , astrom ) ( az , zen , ha , odec , ora ) = erfa . atioq ( cra , cdec , astrom ) alt = ( ( np . pi / 2 ) - zen ) ( cra2 , cdec2 ) = erfa . atoiq ( u'A' , az , zen , astrom ) ( ira2 , idec2 ) = erfa . aticq ( cra2 , cdec2 , astrom ) dct = locals ( ) del dct [ u'astrom' ] return dct
this function does the same thing the astropy layer is supposed to do .