Skip to content

Commit

Permalink
simplify string
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett committed Apr 12, 2021
1 parent 585ac52 commit a3b017d
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions client/initialize_adcirc.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,14 +175,9 @@ def main():
if argument in extra_arguments:
tidal_source = extra_arguments[argument]
else:
tidal_source_options_string = '/'.join(
tidal_source.name
if tidal_source != DEFAULT_TIDAL_SOURCE
else '[' + DEFAULT_TIDAL_SOURCE.name + ']'
for tidal_source in TidalSource
)
tidal_source = input(
f'enter tidal forcing source ({tidal_source_options_string}): '
f'enter tidal forcing source '
f'({"/".join(tidal_source.name.lower() if tidal_source != DEFAULT_TIDAL_SOURCE else tidal_source.name.upper() for tidal_source in TidalSource)}): '
)
if len(tidal_source.strip()) == 0:
tidal_source = None
Expand Down

0 comments on commit a3b017d

Please sign in to comment.