From b6af2ac25aeb50c0f80c3665e449855001f4db49 Mon Sep 17 00:00:00 2001 From: Malcolm Ross Date: Wed, 13 Mar 2024 10:13:52 -0500 Subject: [PATCH] added rich HTML output for MC_GEOPHIRES. Also fixed bug for when run from command line --- src/hip_ra_x/hip_ra_x.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hip_ra_x/hip_ra_x.py b/src/hip_ra_x/hip_ra_x.py index 5b35dbd1..9b841582 100644 --- a/src/hip_ra_x/hip_ra_x.py +++ b/src/hip_ra_x/hip_ra_x.py @@ -811,10 +811,10 @@ def PrintOutputs(self): try: outputfile = 'HIP.out' if len(sys.argv) <= 2 else sys.argv[2] - def render_default(p: floatParameter | OutputParameter) -> str: + def render_default(p: Parameter) -> str: return f'{p.value:10.2f} {p.CurrentUnits.value}' - def render_scientific(p: floatParameter | OutputParameter) -> str: + def render_scientific(p: Parameter) -> str: return f'{p.value:10.2e} {p.CurrentUnits.value}' summary_of_inputs = {}