-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enh: split active events per vehicle type
- Loading branch information
Showing
4 changed files
with
61 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,21 @@ | ||
from rssched.model.response import Response | ||
from rssched.visualization.active_events import plot_active_events_over_time | ||
from rssched.visualization.fleet_efficiency import plot_fleet_efficiency | ||
from rssched.visualization.active_events import plot_active_events_per_vehicle_type | ||
from rssched.visualization.fleet_efficiency import ( | ||
plot_fleet_efficiency_per_vehicle_type, | ||
) | ||
from rssched.visualization.vehicle_type_gantt import plot_gantt_per_vehicle_type | ||
from rssched.visualization.vehicle_utilization import plot_utilization_per_vehicle_type | ||
|
||
|
||
def generate_plots(response: Response, instance_name: str): | ||
figures = list(plot_gantt_per_vehicle_type(response, instance_name).values()) | ||
figures.append(plot_active_events_over_time(response, instance_name)) | ||
figures.append( | ||
figures.extend( | ||
list(plot_active_events_per_vehicle_type(response, instance_name).values()) | ||
) | ||
figures.extend( | ||
list(plot_utilization_per_vehicle_type(response, instance_name).values()) | ||
) | ||
figures.extend(list(plot_fleet_efficiency(response, instance_name).values())) | ||
figures.extend( | ||
list(plot_fleet_efficiency_per_vehicle_type(response, instance_name).values()) | ||
) | ||
return figures |