def summary_name(rubric_name): return simplify("Field_Summary_"+rubric_name)
def summary_name(rubric_name): return simplify("Field_Summary_" + rubric_name)
## now split out the colection, dialect, and filename words = path.split("/") collection = words[3] size = len(words) dialect = words[size-3] dialects[dialect] = True filename = words[size-1] ## split the filename to extract the rubric type arry = filename.split("_") rubric = arry[1] print "dc="+collection+" dlct="+dialect+" file="+filename+" rub="+rubric ## read and parse the input json file data = read_json(path) ## and process the data file_specific_data(data,collection,dialect,rubric) add_formulas() for rubric in rubrics: sname = summary_name(rubric) ssheet = sheets[sname] add_field_summary(wb,rubric, ssheet, sheetRows[sname], sheets[simplify(rubric)], sheetRows[rubric],sorted(dialects )) ## now save the workbook wb.close();
## now split out the colection, dialect, and filename words = path.split("/") collection = words[3] size = len(words) dialect = words[size - 3] dialects[dialect] = True filename = words[size - 1] ## split the filename to extract the rubric type arry = filename.split("_") rubric = arry[1] print "dc=" + collection + " dlct=" + dialect + " file=" + filename + " rub=" + rubric ## read and parse the input json file data = read_json(path) ## and process the data file_specific_data(data, collection, dialect, rubric) add_formulas() for rubric in rubrics: sname = summary_name(rubric) ssheet = sheets[sname] add_field_summary(wb, rubric, ssheet, sheetRows[sname], sheets[simplify(rubric)], sheetRows[rubric], sorted(dialects)) ## now save the workbook wb.close()