Skip to content

Commit

Permalink
update visualization test
Browse files Browse the repository at this point in the history
  • Loading branch information
warisa-r committed Sep 20, 2024
1 parent 8891535 commit e30a7f4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,19 @@ end
clean_up_temp_files()
end

@testset "2D shock detection and visualization function test" begin
@testset "2D shock detection and 2D visualization function test" begin
flow_data = FlowData(joinpath(DATA_DIR, "sod_shock_right_2d.tape"), false)
point_detect_algo = ImageProcessingShockDetectionAlgo(0.5, :prewitt)
dbscan_algo = DBSCANAlgo(0.25, 3, 10)
fitting_algo = FittingAlgo(0.1, false)
detection = detect(flow_data, point_detect_algo, dbscan_algo, fitting_algo)
plot_shock_fits_over_time(flow_data, detection, true)
# TODO: Test heatmap function as well
create_heatmap_evo_with_shock(flow_data, detection, :density_field, true, false)
try
rm("density_field_evolution.gif")
catch e
@warn "Failed to clean up temporary files" exception=e
end
end

@testset "2D shock detection (with improved initial guess)" begin
Expand Down

0 comments on commit e30a7f4

Please sign in to comment.