|
8 | 8 | from pathlib import Path
|
9 | 9 |
|
10 | 10 | import pint
|
11 |
| - |
12 | 11 | from rich.console import Console
|
13 | 12 | from rich.table import Table
|
14 | 13 |
|
@@ -944,13 +943,13 @@ def PrintOutputsHTML(self, inputs, outputs, output_filename: str = 'HIP.html'):
|
944 | 943 | self.logger.info(f'Init {__class__.__name__!s}: {__name__}')
|
945 | 944 |
|
946 | 945 | try:
|
947 |
| - inputs_table = Table(title="***SUMMARY OF INPUTS***") |
| 946 | + inputs_table = Table(title='***SUMMARY OF INPUTS***') |
948 | 947 | inputs_table.add_column('Parameter Name', no_wrap=True)
|
949 |
| - inputs_table.add_column('Value', no_wrap=True, justify="center") |
| 948 | + inputs_table.add_column('Value', no_wrap=True, justify='center') |
950 | 949 | inputs_table.add_column('Units', no_wrap=True)
|
951 |
| - outputs_table = Table(title="***SUMMARY OF RESULTS***") |
| 950 | + outputs_table = Table(title='***SUMMARY OF RESULTS***') |
952 | 951 | outputs_table.add_column('Result Name', no_wrap=True)
|
953 |
| - outputs_table.add_column('Value', no_wrap=True, justify="center") |
| 952 | + outputs_table.add_column('Value', no_wrap=True, justify='center') |
954 | 953 | outputs_table.add_column('Units', no_wrap=True)
|
955 | 954 |
|
956 | 955 | for key, value in inputs['SUMMARY OF INPUTS'].items():
|
@@ -983,10 +982,10 @@ def PrintOutputsHTML(self, inputs, outputs, output_filename: str = 'HIP.html'):
|
983 | 982 | unit = unit.replace('deg', '\u00b0')
|
984 | 983 | outputs_table.add_row(name, val, unit)
|
985 | 984 |
|
986 |
| - console = Console(style="bold white on blue", force_terminal=True, record=True) |
987 |
| - console.print(f' *********************') |
988 |
| - console.print(f' ***HIP CASE REPORT***') |
989 |
| - console.print(f' *********************') |
| 985 | + console = Console(style='bold white on blue', force_terminal=True, record=True) |
| 986 | + console.print(' *********************') |
| 987 | + console.print(' ***HIP CASE REPORT***') |
| 988 | + console.print(' *********************') |
990 | 989 | console.print(' ')
|
991 | 990 | console.print(inputs_table)
|
992 | 991 | console.print(' ')
|
@@ -1020,7 +1019,6 @@ def PrintOutputsHTML(self, inputs, outputs, output_filename: str = 'HIP.html'):
|
1020 | 1019 | self.logger.critical(msg)
|
1021 | 1020 | raise
|
1022 | 1021 |
|
1023 |
| - |
1024 | 1022 | def __str__(self):
|
1025 | 1023 | return 'HIP_RA_X'
|
1026 | 1024 |
|
|
0 commit comments