remove comment from base_template_vars

Move call to base_template_vars out of the for loop for producing datasets