def create_retail(heatmap_filepath, new_filepath, hotdog_limit): hm = Heatmap.load(heatmap_filepath) output_json = heatmap_filepath.replace('.heatmap', 'retail.json') retail = RetailSuggestion(hm, output_json, hotdog_limit) retail.suggestions() retail.write_json(new_filepath)
def estimate_total(heatmap_filepath): hm = Heatmap.load(heatmap_filepath) return estimate_total_hm(hm)