From 8238309fc2ec7398c9f8f5578c3f8edcf2bb696b Mon Sep 17 00:00:00 2001 From: Malcolm Ross Date: Wed, 13 Mar 2024 10:23:08 -0500 Subject: [PATCH] added rich HTML output for MC_GEOPHIRES. Also fixed bug for when run from command line --- src/geophires_monte_carlo/MC_GeoPHIRES3.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/geophires_monte_carlo/MC_GeoPHIRES3.py b/src/geophires_monte_carlo/MC_GeoPHIRES3.py index b571c783..1220cd17 100755 --- a/src/geophires_monte_carlo/MC_GeoPHIRES3.py +++ b/src/geophires_monte_carlo/MC_GeoPHIRES3.py @@ -26,9 +26,7 @@ from rich.table import Table from geophires_monte_carlo.common import _get_logger -from geophires_x.Parameter import OutputParameter from geophires_x.Parameter import Parameter -from geophires_x.Parameter import floatParameter from geophires_x_client import GeophiresInputParameters from geophires_x_client import GeophiresXClient from geophires_x_client import GeophiresXResult @@ -205,7 +203,7 @@ def render_Parameter_default(p: Parameter) -> str: return render_default(p.value, p.CurrentUnits.value) -def render_parameter_scientific(p: floatParameter | OutputParameter) -> str: +def render_parameter_scientific(p: Parameter) -> str: """ RenderScientific - render a float as a string in scientific notation with 2 decimal places and the unit appended to it if it is not an empty string (the default) by calling the render_scientific base function