def check_rockfilterbags(Input_DB, Input_module, warning_list): ERROR_IN_MODULE = False # default value: for ind_elem, row in Input_DB.iterrows(): input_param = 'Weight [t]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True # input_param = 'Particle diameter [mm]' # ERROR_IN_PARAM, warning_list = check_float_positive(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True # input_param = 'Mesh size [mm]' # ERROR_IN_PARAM, warning_list = check_float_positive(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True input_param = 'Diameter [m]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Height [m]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True # input_param = 'Volume [m^ 3]' # ERROR_IN_PARAM, warning_list = check_float_positive(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True # input_param = 'Velocity unit [m/s]' # ERROR_IN_PARAM, warning_list = check_float_positive(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True # input_param = 'Velocity grouped [m/s]' # ERROR_IN_PARAM, warning_list = check_float_positive(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True input_param = 'Cost per unit [EURO]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True return ERROR_IN_MODULE, warning_list
def check_excavating(Input_DB, Input_module, warning_list): ERROR_IN_MODULE = False # default value: for ind_elem, row in Input_DB.iterrows(): input_param = 'Depth rating [m]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Width [m]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Height [m]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Weight [t]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True # input_param = 'Lenght or diameter [m]' # ERROR_IN_PARAM, warning_list = check_float_positive(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True input_param = 'Excavator day rate [EURO/day]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Personnel day rate [EURO/12h]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True return ERROR_IN_MODULE, warning_list
def check_splitpipes(Input_DB, Input_module, warning_list): ERROR_IN_MODULE = False # default value: for ind_elem, row in Input_DB.iterrows(): # input_param = 'Material [-]' # ERROR_IN_PARAM, warning_list = check_unicode(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True # input_param = 'Unit weight air [kg]' # ERROR_IN_PARAM, warning_list = check_float_positive(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True # input_param = 'Unit weight water [kg]' # ERROR_IN_PARAM, warning_list = check_float_positive(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True input_param = 'Unit length [mm]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True # input_param = 'Unit wall thichness [mm]' # ERROR_IN_PARAM, warning_list = check_float_positive(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True # input_param = 'Unit inner diameter [mm]' # ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True # input_param = 'Unit outer diameter [mm]' # ERROR_IN_PARAM, warning_list = check_float_positive(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True # input_param = 'Max cable size [mm]' # ERROR_IN_PARAM, warning_list = check_float_positive(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True # input_param = 'Min bending radius [m]' # ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True input_param = 'Cost per unit [EURO]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True return ERROR_IN_MODULE, warning_list
def check_ln(Input_DB, Input_module, warning_list): ERROR_IN_MODULE = False # default value: for ind_elem, row in Input_DB.iterrows(): input_param = 'length [m]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'dry mass [kg]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True return ERROR_IN_MODULE, warning_list
def check_found(Input_DB, Input_module, warning_list): ERROR_IN_MODULE = False # default value: for ind_elem, row in Input_DB.iterrows(): input_param = 'x coord [m]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'y coord [m]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'zone [-]' ERROR_IN_PARAM, warning_list = check_unicode(Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'length [m]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'width [m]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'height [m]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'installation depth [m]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'dry mass [kg]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'grout volume [m3]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'type [-]' PARAM = Input_DB[input_param][ind_elem] if not (PARAM == 'pile foundation' or PARAM == 'pile anchor' or PARAM == 'gravity foundation' or PARAM == 'gravity anchor' \ or PARAM == 'shallow foundation' or PARAM == 'shallow anchor' or PARAM == 'direct-embedment anchor'\ or PARAM == 'drag-embedment anchor' or PARAM == 'suction caisson anchor'): warning_list.append( 'Input: ' + input_param + ' = ' + str(PARAM) + ' in ' + Input_module + '/index:' + str(ind_elem) + ' is Wrong! ' + 'Only "pile foundation", "pile anchor", "gravity foundation", "gravity anchor", "shallow foundation", "shallow anchor", "direct-embedment anchor", "drag-embedment anchor" or "suction caisson anchor" accepted.' ) ERROR_IN_MODULE = True return ERROR_IN_MODULE, warning_list
def check_vibrodriver(Input_DB, Input_module, warning_list): ERROR_IN_MODULE = False # default value: for ind_elem, row in Input_DB.iterrows(): input_param = 'Width [m]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Length [m]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Height [m]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Vibro driver weight [m]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Clamp weight [m]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Min pile diameter [mm]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Max pile diameter [mm]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Max pile weight [t]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'AE footprint [m^2]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'AE weight [t]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Vibro diver day rate [EURO/day]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Personnel day rate [EURO/day]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True return ERROR_IN_MODULE, warning_list
def check_drillingrigs(Input_DB, Input_module, warning_list): ERROR_IN_MODULE = False # default value: for ind_elem, row in Input_DB.iterrows(): input_param = 'Diameter [m]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Length [m]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Weight [t]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Drilling diameter range [m]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Max drilling depth [m]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Max water depth [m]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True # input_param = 'Torque [kNm]' # ERROR_IN_PARAM, warning_list = check_float_positive(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True # input_param = 'Pull back [t]' # ERROR_IN_PARAM, warning_list = check_float_positive(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True input_param = 'AE footprint [m^2]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'AE weight [t]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Drill rig day rate [EURO/day]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Personnel day rate [EURO/day]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True return ERROR_IN_MODULE, warning_list
def check_mattress(Input_DB, Input_module, warning_list): ERROR_IN_MODULE = False # default value: for ind_elem, row in Input_DB.iterrows(): # input_param = 'Concrete resistance [N/mm^2]' # ERROR_IN_PARAM, warning_list = check_float_positive(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True # input_param = 'Concrete density [kg/m^3]' # ERROR_IN_PARAM, warning_list = check_float_positive(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True input_param = 'Unit lenght [m]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Unit width [m]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Unit thickness [m]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Unit weight air [t]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True # input_param = 'Unit weight water [t]' # ERROR_IN_PARAM, warning_list = check_float_positive(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True # input_param = 'Nr looped ropes [-]' # ERROR_IN_PARAM, warning_list = check_integer_long(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True # input_param = 'Ropes diameter [mm]' # ERROR_IN_PARAM, warning_list = check_float_positive(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True input_param = 'Cost per unit [EURO]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True return ERROR_IN_MODULE, warning_list
def check_rov(Input_DB, Input_module, warning_list): ERROR_IN_MODULE = False # default value: for ind_elem, row in Input_DB.iterrows(): input_param = 'ROV class [-]' PARAM = Input_DB[input_param][ind_elem] if not (PARAM == 'Inspection class' or PARAM == 'Workclass'): warning_list.append( 'Input: ' + input_param + ' = ' + str(PARAM) + ' in ' + Input_module + '/index:' + str(ind_elem) + ' is Wrong! ' + 'Only "Inspection class" or "Workclass" accepted.') ERROR_IN_MODULE = True input_param = 'Depth rating [m]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Length [m]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Width [m]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Height [m]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Weight [t]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Payload [t]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'AE footprint [m^2]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'AE weight [t]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'AE supervisor [-]' ERROR_IN_PARAM, warning_list = check_integer_long( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'AE technician [-]' ERROR_IN_PARAM, warning_list = check_integer_long( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'ROV day rate [EURO/day]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Supervisor rate [EURO/12h]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Technician rate [EURO/12h]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True return ERROR_IN_MODULE, warning_list
def check_cable_burial(Input_DB, Input_module, warning_list): ERROR_IN_MODULE = False # default value: for ind_elem, row in Input_DB.iterrows(): # input_param = 'Burial tool type [-]' # PARAM = Input_DB[input_param][ind_elem] # if not (PARAM == 'Plough' or PARAM == 'ROV' or PARAM == 'Tracked' or pd.isnull(PARAM)): # warning_list.append( 'Input: ' + input_param + ' = ' + str(PARAM) + ' in ' + Input_module + '/index:' + str(ind_elem) + ' is Wrong! ' # + 'Only "Plough" or "ROV" or "Tracked" accepted.') # ERROR_IN_MODULE = True input_param = 'Max operating depth [m]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Tow force required [t]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Length [m]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Width [m]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Height [m]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Weight [t]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Jetting capability [yes/no]' PARAM = Input_DB[input_param][ind_elem] if not (PARAM == 'yes' or PARAM == 'no' or pd.isnull(PARAM)): warning_list.append('Input: ' + input_param + ' = ' + str(PARAM) + ' in ' + Input_module + '/index:' + str(ind_elem) + ' is Wrong!' + 'Only "yes" or "no" accepted.') ERROR_IN_MODULE = True input_param = 'Ploughing capability [yes/no]' PARAM = Input_DB[input_param][ind_elem] if not (PARAM == 'yes' or PARAM == 'no' or pd.isnull(PARAM)): warning_list.append('Input: ' + input_param + ' = ' + str(PARAM) + ' in ' + Input_module + '/index:' + str(ind_elem) + ' is Wrong!' + 'Only "yes" or "no" accepted.') ERROR_IN_MODULE = True input_param = 'Cutting capability [yes/no]' PARAM = Input_DB[input_param][ind_elem] if not (PARAM == 'yes' or PARAM == 'no' or pd.isnull(PARAM)): warning_list.append('Input: ' + input_param + ' = ' + str(PARAM) + ' in ' + Input_module + '/index:' + str(ind_elem) + ' is Wrong!' + 'Only "yes" or "no" accepted.') ERROR_IN_MODULE = True input_param = 'Jetting trench depth [m]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Ploughing trench depth [m]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Cutting trench depth [m]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Max cable diameter [mm]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Min cable bending radius [m]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'AE footprint [m^2]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'AE weight [t]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Burial tool day rate [EURO/day]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Personnel day rate [EURO/12h]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True return ERROR_IN_MODULE, warning_list
def check_divers(Input_DB, Input_module, warning_list): ERROR_IN_MODULE = False # default value: for ind_elem, row in Input_DB.iterrows(): input_param = 'Max operating depth [m]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Deployment eq. footprint [m^2]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Deployment eq. weight [t]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True # input_param = 'Nr supervisors [-]' # ERROR_IN_PARAM, warning_list = check_integer_long(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True # input_param = 'Nr divers [-]' # ERROR_IN_PARAM, warning_list = check_integer_long(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True # input_param = 'Nr tenders [-]' # ERROR_IN_PARAM, warning_list = check_integer_long(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True # input_param = 'Nr technicians [-]' # ERROR_IN_PARAM, warning_list = check_integer_long(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True # input_param = 'Nr support technicians [-]' # ERROR_IN_PARAM, warning_list = check_integer_long(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True # input_param = 'Deployment eq. day rate [EURO/day]' # ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True # input_param = 'Supervisor day rate [EURO/day]' # ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True # input_param = 'Divers day rate [EURO/day]' # ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True # input_param = 'Tenders day rate [EURO/day]' # ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True # input_param = 'Technicians day rate [EURO/day]' # ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True # input_param = 'Life support day rate [EURO/day]' # ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True input_param = 'Total day rate [EURO/day]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True return ERROR_IN_MODULE, warning_list
def check_vess(Input_DB, Input_module, warning_list): ERROR_IN_MODULE = False # default value: for ind_elem, row in Input_DB.iterrows(): input_param = 'Gross tonnage [ton]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Length [m]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Beam [m]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Consumption [l/h]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Consumption [l/h]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Deck space [m^2]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Deck loading [t/m^2]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Max. cargo [t]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Bollard pull [t]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Transit speed [m/s]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True # input_param = 'Max. Speed [m/s]' # ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True # input_param = 'Crew size [-]' # ERROR_IN_PARAM, warning_list = check_integer(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True input_param = 'External personnel [-]' ERROR_IN_PARAM, warning_list = check_integer(Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'OLC: Transit maxHs [m]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'OLC: Transit maxTp [s]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'OLC: Transit maxCs [m/s]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'OLC: Transit maxWs [m/s]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'OLC: Towing maxHs [m]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True # input_param = 'OLC: Towing maxTp [s]' # ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True # input_param = 'OLC: Towing maxCs [knots]' # ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True # input_param = 'OLC: Towing maxWs [m/s]' # ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True input_param = 'OLC: Jacking maxHs [m]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'OLC: Jacking maxTp [s]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'OLC: Jacking maxCs [m/s]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'OLC: Jacking maxWs [m/s]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Crane capacity [t]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True # input_param = 'Crane radius [m]' # ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True input_param = 'Turntable number [-]' ERROR_IN_PARAM, warning_list = check_integer(Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Turntable loading [t]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True # input_param = 'Turntable outer diameter [m]' # ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True input_param = 'Turntable inner diameter [m]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True # input_param = 'Turntable height [m]' # ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True input_param = 'Cable splice [yes/no]' PARAM = Input_DB[input_param][ind_elem] if not (PARAM == 'yes' or PARAM == 'no' or pd.isnull(PARAM)): warning_list.append('Input: ' + input_param + ' = ' + str(PARAM) + ' in ' + Input_module + '/index:' + str(ind_elem) + ' is Wrong!' + 'Only "yes" or "no" accepted.') ERROR_IN_MODULE = True # input_param = 'Ground out capabilities [yes/no]' # PARAM = Input_DB[input_param][ind_elem] # if not (PARAM == 'yes' or PARAM == 'no' or pd.isnull(PARAM)): # warning_list.append( 'Input: ' + input_param + ' = ' + str(PARAM) + ' in ' + Input_module + '/index:' + str(ind_elem) + ' is Wrong!' # + 'Only "yes" or "no" accepted.') # ERROR_IN_MODULE = True input_param = 'DP [-]' ERROR_IN_PARAM, warning_list = check_integer(Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True # input_param = 'Rock storage capacity [t]' # ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True # input_param = 'Max dumping depth [m]' # ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True # input_param = 'Max dumping capacity [t/h]' # ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True # input_param = 'Fall pipe diameter [mm]' # ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True # input_param = 'Diving moonpool [yes/no]' # PARAM = Input_DB[input_param][ind_elem] # if not (PARAM == 'yes' or PARAM == 'no' or pd.isnull(PARAM)): # warning_list.append( 'Input: ' + input_param + ' = ' + str(PARAM) + ' in ' + Input_module + '/index:' + str(ind_elem) + ' is Wrong!' # + 'Only "yes" or "no" accepted.') # ERROR_IN_MODULE = True # input_param = 'Diving depth [m]' # ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True # input_param = 'Diving capacity [-]' # ERROR_IN_PARAM, warning_list = check_integer(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True # input_param = 'ROV inspection [yes/no]' # PARAM = Input_DB[input_param][ind_elem] # if not (PARAM == 'yes' or PARAM == 'no' or pd.isnull(PARAM)): # warning_list.append( 'Input: ' + input_param + ' = ' + str(PARAM) + ' in ' + Input_module + '/index:' + str(ind_elem) + ' is Wrong!' # + 'Only "yes" or "no" accepted.') # ERROR_IN_MODULE = True # input_param = 'ROV inspection max depth [m]' # ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True # input_param = 'ROV workclass [yes/no]' # PARAM = Input_DB[input_param][ind_elem] # if not (PARAM == 'yes' or PARAM == 'no' or pd.isnull(PARAM)): # warning_list.append( 'Input: ' + input_param + ' = ' + str(PARAM) + ' in ' + Input_module + '/index:' + str(ind_elem) + ' is Wrong!' # + 'Only "yes" or "no" accepted.') # ERROR_IN_MODULE = True # input_param = 'ROV workclass max depth [m]' # ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True # input_param = 'JackUp leg lenght [m]' # ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True # input_param = 'JackUp leg diameter [m]' # ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True input_param = 'JackUp max water depth [m]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True # input_param = 'JackUp speed Up [m/min]' # ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True input_param = 'JackUp speed down [m/min]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'JackUp max payload [t]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True # input_param = 'Mooring number winches [-]' # ERROR_IN_PARAM, warning_list = check_integer(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True # input_param = 'Mooring line pull [t]' # ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True # input_param = 'Mooring wire lenght [m]' # ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True # input_param = 'Mooring number anchors [-]' # ERROR_IN_PARAM, warning_list = check_integer(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True # input_param = 'Mooring anchor weight [t]' # ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True input_param = 'AH drum capacity [m]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True # input_param = 'AH wire size [mm]' # ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True input_param = 'AH winch rated pull [t]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True # input_param = 'AH winch break load [t]' # ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True # input_param = 'Dredge depth [m]' # ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True # input_param = 'Dredge type [-]' # ERROR_IN_PARAM, warning_list = check_unicode(Input_DB, ind_elem, input_param, Input_module, warning_list) # if ERROR_IN_PARAM: # ERROR_IN_MODULE = True input_param = 'Mob time [h]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Mob percentage [%]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Op min Day Rate [EURO/day]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Op max Day Rate [EURO/day]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True return ERROR_IN_MODULE, warning_list
def check_ports(Input_DB, Input_module, warning_list): ERROR_IN_MODULE = False # default value: for ind_elem, row in Input_DB.iterrows(): input_param = 'UTM x [m]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'UTM y [m]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'UTM zone [-]' ERROR_IN_PARAM, warning_list = check_unicode(Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Type of terminal [Quay/Dry-dock]' ERROR_IN_PARAM, warning_list = check_unicode(Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Entrance width [m]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Terminal length [m]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Terminal load bearing [t/m^2]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Terminal draught [m]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Terminal area [m^2]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Max gantry crane lift capacity [t]' ERROR_IN_PARAM, warning_list = check_float_positive_null( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Max tower crane lift capacity [t]' ERROR_IN_PARAM, warning_list = check_float_positive( Input_DB, ind_elem, input_param, Input_module, warning_list) if ERROR_IN_PARAM: ERROR_IN_MODULE = True input_param = 'Jacking capability [yes/no]' PARAM = Input_DB[input_param][ind_elem] if not (PARAM == 'Yes' or PARAM == 'No' or pd.isnull(PARAM)): warning_list.append('Input: ' + input_param + ' = ' + str(PARAM) + ' in ' + Input_module + '/index:' + str(ind_elem) + ' is Wrong!' + 'Only "Yes" or "No" accepted.') ERROR_IN_MODULE = True return ERROR_IN_MODULE, warning_list