def _iterate_mri_slices(name, ind, global_id, slides_klass, data, cmap, image_format='png'):
 img_klass = ('slideimg-%s' % name)
 caption = (u'Slice %s %s' % (name, ind))
 slice_id = ('%s-%s-%s' % (name, global_id, ind))
 div_klass = ('span12 %s' % slides_klass)
 img = _build_image(data, cmap=cmap)
 first = (True if (ind == 0) else False)
 html = _build_html_image(img, slice_id, div_klass, img_klass, caption, first)
 return (ind, html)

def _iterate_mri_slices ( name , ind , global_id , slides_klass , data , cmap , image_format = 'png' ) : img_klass = ( 'slideimg-%s' % name ) caption = ( u'Slice %s %s' % ( name , ind ) ) slice_id = ( '%s-%s-%s' % ( name , global_id , ind ) ) div_klass = ( 'span12 %s' % slides_klass ) img = _build_image ( data , cmap = cmap ) first = ( True if ( ind == 0 ) else False ) html = _build_html_image ( img , slice_id , div_klass , img_klass , caption , first ) return ( ind , html )
auxiliary function for parallel processing of mri slices .