Skip to content

Commit

Permalink
added rich HTML output for MC_GEOPHIRES. Also fixed bug for when run …
Browse files Browse the repository at this point in the history
…from command line
  • Loading branch information
malcolm-dsider committed Mar 13, 2024
1 parent b6af2ac commit 438880e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/geophires_monte_carlo/MC_GeoPHIRES3.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 438880e

Please sign in to comment.