64 chunk_list =
lambda l,n: [l[i:i+n]
for i
in range(0, len(l), n)]
65 rows_paths = chunk_list(paths_to_pictures,2)
66 cell_template =
' <td style="width: 640px;"><A href=%s><IMG src="%s" width="640" align="center" border="0"></A></td>'
67 row_template =
''' <tr>
69 rows =
''.
join([row_template %
''.
join([ cell_template % (path,path)
for path
in row])
for row
in rows_paths])
70 reference =
'<A href=%s>Reference</A>' % ref_file
if ref_file
else 'Reference not available'
71 source =
'<A href=%s>Input Source</A>' % source_file
if ref_file
else 'Source not available'
72 return ''' <h3>%s ( <A href=%s>Root File</A> ) ( %s ) ( %s ) ( <A href=%s>Full Directory Content</A> )</h3>
73 <table style="text-align: left; " border="1" cellpadding="2" cellspacing="1">
78 ''' % (dataset_name, root_link, reference, source, dir_link, rows)
const uint16_t range(const Frame &aFrame)
static std::string join(char **cmd)
def usual_validation_dataset_template