From 03626812bbf14d55ccfc5cd21b986f24f7241f38 Mon Sep 17 00:00:00 2001 From: cha198 Date: Wed, 7 Oct 2026 13:23:13 -0700 Subject: [PATCH] move the wrap-up function visualize_plots to the front --- odp/Plots/plotting_utilities.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/odp/Plots/plotting_utilities.py b/odp/Plots/plotting_utilities.py index dd98ebc..c989d46 100644 --- a/odp/Plots/plotting_utilities.py +++ b/odp/Plots/plotting_utilities.py @@ -4,6 +4,14 @@ from odp.Grid import Grid import numpy as np +def visualize_plots(V, grid, plot_option): + # Only plots last value array for now + if plot_option.plot_type == "set": + plot_isosurface(grid, V, plot_option) + elif plot_option.plot_type == "value": + plot_valuefunction(grid, V, plot_option) + return + def plot_isosurface(grid, my_V, plot_option): dims_plot = plot_option.dims_plot @@ -552,12 +560,4 @@ def downsample(g, data, scale): return g_out, data_out -def visualize_plots(V, grid, plot_option): - # Only plots last value array for now - if plot_option.plot_type == "set": - plot_isosurface(grid, V, plot_option) - elif plot_option.plot_type == "value": - plot_valuefunction(grid, V, plot_option) - - return \ No newline at end of file