From e27b37d353611f66e9e31265fc0e07c10ae77141 Mon Sep 17 00:00:00 2001 From: Manu Chevalier Date: Wed, 7 Aug 2024 16:47:05 +0200 Subject: [PATCH] removing fake _init_ --- __init__.py | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 __init__.py diff --git a/__init__.py b/__init__.py deleted file mode 100644 index 29f6e5d..0000000 --- a/__init__.py +++ /dev/null @@ -1,31 +0,0 @@ -from datetime import datetime - -try: - from src_data_client.store import Store -except ModuleNotFoundError: - from store import Store - - -def create_app() -> dict: - """ """ - - store_name = ["Madrid", "Paris", "Berlin", "Roma", "London"] - store_n_sensors = [1, 20, 6, 4, 8] - store_year_start = [2024, 2018, 2022, 2019, 2014] - - store_dict = dict() - - for i in range(len(store_name)): - store_dict[store_name[i]] = Store( - name=store_name[i], - n_sensors=store_n_sensors[i], - opening_date=datetime(store_year_start[i], 1, 1, 0), - capacity=[(2024 - store_year_start[i] + 1) * x for x in [1000, 150]], - probs=[(2024 - store_year_start[i] + 1) * x for x in [0.01, 0.001]], - ) - return store_dict - - -if __name__ == "__main__": - store_dict = create_app() - # print(store_dict)