Diego Marroquin commited on
Commit ·
5559dce
1
Parent(s): 72429a6
debug
Browse files
main.py
CHANGED
|
@@ -214,7 +214,7 @@ def get_unavailabilities(usr_start_date, usr_end_date):
|
|
| 214 |
# --------------------------------------------------------------------------------------- #
|
| 215 |
|
| 216 |
|
| 217 |
-
def nuc_monitor(rte_data,
|
| 218 |
# # Slightly changed metadata to fit the data from the RTE API: ST-LAURENT B 2 --> ST LAURENT 2, ....
|
| 219 |
|
| 220 |
plants_metadata = {"BELLEVILLE 1": 1310.0, "BELLEVILLE 2": 1310.0, "BLAYAIS 1": 910.0, "BLAYAIS 2": 910.0,
|
|
@@ -271,7 +271,6 @@ def nuc_monitor(rte_data, mongo_json_data, usr_start_date, usr_end_date, photo_d
|
|
| 271 |
# --------------------- INITIAL DATA CLEANING FOR MONGO DATA ------------------------ #
|
| 272 |
|
| 273 |
# # Create a DataFrame
|
| 274 |
-
mongo_data = mongo_json_data
|
| 275 |
mongo_df = pd.DataFrame(mongo_data)
|
| 276 |
|
| 277 |
# Unpack the dictionaries into separate columns
|
|
|
|
| 214 |
# --------------------------------------------------------------------------------------- #
|
| 215 |
|
| 216 |
|
| 217 |
+
def nuc_monitor(rte_data, mongo_data, usr_start_date, usr_end_date, photo_date, past_date):
|
| 218 |
# # Slightly changed metadata to fit the data from the RTE API: ST-LAURENT B 2 --> ST LAURENT 2, ....
|
| 219 |
|
| 220 |
plants_metadata = {"BELLEVILLE 1": 1310.0, "BELLEVILLE 2": 1310.0, "BLAYAIS 1": 910.0, "BLAYAIS 2": 910.0,
|
|
|
|
| 271 |
# --------------------- INITIAL DATA CLEANING FOR MONGO DATA ------------------------ #
|
| 272 |
|
| 273 |
# # Create a DataFrame
|
|
|
|
| 274 |
mongo_df = pd.DataFrame(mongo_data)
|
| 275 |
|
| 276 |
# Unpack the dictionaries into separate columns
|