Multiply mobilization cost by number of crews
akey7 opened this issue · 1 comments
akey7 commented
In ErectionCost.py, there are the following lines
# if more than one crew needed to complete within construction duration then assume that all construction happens
# within that window and use that time frame for weather delays; if not, use the number of days calculated
operation_time['time_construct_bool'] = (operation_time['Operational construct days'] > erection_construction_time * 30)
boolean_dictionary = {True: erection_construction_time * 30, False: np.NAN}
operation_time['time_construct_bool'] = operation_time['time_construct_bool'].map(boolean_dictionary)
operation_time['Time construct days'] = operation_time[['time_construct_bool', 'Operational construct days']].min(axis=1)
Do two things with these lines:
- Output the number of crews to the details sheet.
- If more than one crew is required, then multiply the mobilization costs by the number of crews
An example of how to accomplish this is in the SitePreparationCost on the following line
operation_data['Number of crews'] = np.ceil((operation_data['Number of days'] / 30) / estimate_construction_time_output['road_construction_time'])