Skip to content

Commit

Permalink
Remove type union in helper function since unions don't appear to be …
Browse files Browse the repository at this point in the history
…supported in python < 3.9
  • Loading branch information
softwareengineerprogrammer committed Oct 18, 2023
1 parent d83c658 commit 2a3bf38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hip_ra/HIP_RA.py
Original file line number Diff line number Diff line change
Expand Up @@ -744,10 +744,10 @@ def PrintOutputs(self):
if len(sys.argv) > 2:
outputfile = sys.argv[2]

def render_default(p: floatParameter | OutputParameter) -> str:
def render_default(p) -> str:
return f'{p.value:10.2f} {p.CurrentUnits.value}'

def render_scientific(p: floatParameter | OutputParameter) -> str:
def render_scientific(p) -> str:
return f'{p.value:10.2e} {p.CurrentUnits.value}'

case_data = {
Expand Down

0 comments on commit 2a3bf38

Please sign in to comment.