phase_order = load_phase_order_data(database_file("Installation_Order.xlsx")) schedule_OLC = load_time_olc_data(database_file("operations_time_OLC.xlsx")) penet_rates, laying_rates = load_eq_rates(database_file("equipment_perf_rates.xlsx")) port_sf, vessel_sf, eq_sf = load_sf(database_file("safety_factors.xlsx")) #Internal logistic module databases vessels = load_vessel_data(database_file("logisticsDB_vessel_python.xlsx")) equipments = load_equipment_data(database_file("logisticsDB_equipment_python.xlsx")) ports = load_port_data(database_file("logisticsDB_ports_python.xlsx")) #upstream module inputs/outputs user_inputs = load_user_inputs(database_file("inputs_user.xlsx")) hydrodynamic_outputs = load_hydrodynamic_outputs(database_file("ouputs_hydrodynamic.xlsx")) electrical_outputs = load_electrical_outputs(database_file("ouputs_electrical.xlsx")) MF_outputs = load_MF_outputs(database_file("outputs_MF.xlsx")) OM_outputs = load_OM_outputs(database_file("outputs_OM.xlsx")) OM_outputs_PORT = load_OM_outputs(database_file("outputs_OM_INS_PORT.xlsx")) """ Initialise logistic operations and logistic phase """ logOp = logOp_init( database_file("operations_time_OLC.xlsx") ) """ Select the most appropriate base port for OM OM_port function selects the port used by OM logistic phases required by the O&M module, depending if is inspection or actual maintenance. For the case of inspection the closest port is chosen and the ID in the input should be INS_PORT. For the case of the other logistic phases the selection is based on a 2 step process: 1 - the port feasibility functions from all logistic phases are taken
phase_order = load_phase_order_data(database_file("Installation_Order.xlsx")) schedule_OLC = load_time_olc_data(database_file("operations_time_OLC.xlsx")) penet_rates, laying_rates = load_eq_rates(database_file("equipment_perf_rates.xlsx")) port_sf, vessel_sf, eq_sf = load_sf(database_file("safety_factors.xlsx")) # Internal logistic module databases vessels = load_vessel_data(database_file("logisticsDB_vessel_python.xlsx")) equipments = load_equipment_data(database_file("logisticsDB_equipment_python.xlsx")) ports = load_port_data(database_file("logisticsDB_ports_python.xlsx")) # upstream module inputs/outputs user_inputs = load_user_inputs(database_file("inputs_user.xlsx")) hydrodynamic_outputs = load_hydrodynamic_outputs(database_file("ouputs_hydrodynamic.xlsx")) electrical_outputs = load_electrical_outputs(database_file("ouputs_electrical.xlsx")) MF_outputs = load_MF_outputs(database_file("outputs_MF.xlsx")) OM_outputs = load_OM_outputs(database_file("outputs_OM.xlsx")) with open("objs.pickle", "w") as f: pickle.dump( [ phase_order, schedule_OLC, vessels, equipments, ports, user_inputs, hydrodynamic_outputs, electrical_outputs, MF_outputs, ], f,