#NEWLINE# def _has_field( lon ) : #NEWLINE# #INDENT# 'Return True if image data exists for a given longitude' #NEWLINE# base = os . path . join ( os . path . dirname ( __file__ ) , 'data' , 'galaxy' , 'registered' ) #NEWLINE# if ( not running_on_cloud ( ) ) : #NEWLINE# #INDENT# return ( os . path . exists ( os . path . join ( base , ( '%3.3i_i4.fits' % lon ) ) ) and os . path . exists ( os . path . join ( lon , ( '%3.3i_mips.fits' % lon ) ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return ( bucket . exists ( ( '%3.3i_i4.fits' % lon ) ) and bucket . exists ( ( '%3.3i_mips.fits' % lon ) ) )