Skip to content

Commit cf63408

Browse files
committed
cleanup
1 parent 420eb7b commit cf63408

File tree

1 file changed

+1
-18
lines changed
  • src/DynamicVehicleScheduling

1 file changed

+1
-18
lines changed

src/DynamicVehicleScheduling/plot.jl

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ function plot_epochs(
289289
:markerstrokewidth => 0.5,
290290
)
291291

292-
if plot_routes_flag && !isnothing(sample.y_true)
292+
if plot_routes_flag
293293
fig = plot_routes(
294294
state,
295295
sample.y_true;
@@ -325,19 +325,6 @@ function plot_epochs(
325325

326326
return combined_plot
327327
end
328-
329-
"""
330-
$TYPEDSIGNATURES
331-
332-
Plot multiple epochs side by side, optionally filtering to specific epoch indices.
333-
"""
334-
function plot_epochs(
335-
data_samples::Vector{<:DataSample}, epoch_indices::Vector{Int}; kwargs...
336-
)
337-
filtered_samples = data_samples[epoch_indices]
338-
return plot_epochs(filtered_samples; kwargs...)
339-
end
340-
341328
"""
342329
$TYPEDSIGNATURES
343330
@@ -363,10 +350,6 @@ function animate_epochs(
363350
cost_bar_color_palette=:turbo,
364351
kwargs...,
365352
)
366-
if length(data_samples) == 0
367-
error("No data samples provided")
368-
end
369-
370353
pd = build_plot_data(data_samples)
371354
epoch_costs = [-sample.instance.reward for sample in data_samples]
372355

0 commit comments

Comments
 (0)