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 060bd19 commit b6af2ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hip_ra_x/hip_ra_x.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand Down

0 comments on commit b6af2ac

Please sign in to comment.