Skip to content

Commit

Permalink
Explicitly convert model config options to float
Browse files Browse the repository at this point in the history
This seems to be necessary because the yaml parser doesn't understand
numpy scalars.
  • Loading branch information
xylar committed Aug 7, 2024
1 parent fd25714 commit adf207a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions polaris/ocean/tasks/manufactured_solution/forward.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit adf207a

Please sign in to comment.