From 438880e47e94a2a64838e4d3c65c99b817abca9b Mon Sep 17 00:00:00 2001 From: Malcolm Ross Date: Wed, 13 Mar 2024 10:19:46 -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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/geophires_monte_carlo/MC_GeoPHIRES3.py b/src/geophires_monte_carlo/MC_GeoPHIRES3.py index adbddb46..b571c783 100755 --- a/src/geophires_monte_carlo/MC_GeoPHIRES3.py +++ b/src/geophires_monte_carlo/MC_GeoPHIRES3.py @@ -27,6 +27,7 @@ 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 @@ -192,7 +193,7 @@ def render_scientific(p: float, unit: str = '') -> str: return f'{p:10.2e} {unit}'.strip() -def render_Parameter_default(p: floatParameter | OutputParameter) -> str: +def render_Parameter_default(p: Parameter) -> str: """ RenderDefault - render a float as a string with 2 decimal places, or in scientific notation if it is greater than 10,000 with the unit appended to it if it is not an empty string (the default) by calling the render_default base