From adf207a55a5f091f59d3b418c141ad86ffe79513 Mon Sep 17 00:00:00 2001 From: Xylar Asay-Davis Date: Wed, 7 Aug 2024 14:04:46 -0500 Subject: [PATCH] Explicitly convert model config options to float This seems to be necessary because the yaml parser doesn't understand numpy scalars. --- polaris/ocean/tasks/manufactured_solution/forward.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/polaris/ocean/tasks/manufactured_solution/forward.py b/polaris/ocean/tasks/manufactured_solution/forward.py index cd79f3e52..a82d5a375 100644 --- a/polaris/ocean/tasks/manufactured_solution/forward.py +++ b/polaris/ocean/tasks/manufactured_solution/forward.py @@ -76,9 +76,9 @@ def dynamic_model_config(self, at_setup): exact_solution = ExactSolution(self.config) options = {'config_manufactured_solution_amplitude': - exact_solution.eta0, + float(exact_solution.eta0), 'config_manufactured_solution_wavelength_x': - exact_solution.lambda_x, + float(exact_solution.lambda_x), 'config_manufactured_solution_wavelength_y': - exact_solution.lambda_y} + float(exact_solution.lambda_y)} self.add_model_config_options(options)