Skip to content

Commit acd2c94

Browse files
address FIXME to consolidate HIP-RA-X get_output_params_table_rst with generated result schema
1 parent 654c2a9 commit acd2c94

1 file changed

Lines changed: 0 additions & 32 deletions

File tree

src/geophires_x_schema_generator/__init__.py

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -411,38 +411,6 @@ def get_parameter_sources(self) -> list:
411411
def get_schema_title(self) -> str:
412412
return 'HIP-RA-X'
413413

414-
def get_output_params_table_rst(self, output_params_json) -> str:
415-
"""
416-
FIXME TODO consolidate with generated result schema
417-
"""
418-
419-
output_params = json.loads(output_params_json)
420-
421-
output_rst = """
422-
.. list-table:: Outputs
423-
:header-rows: 1
424-
425-
* - Name
426-
- Description
427-
- Preferred Units
428-
- Default Value Type"""
429-
430-
for param_name in output_params:
431-
param = output_params[param_name]
432-
433-
def get_key(k):
434-
if k in param and str(param[k]) != '': # noqa
435-
return param[k] # noqa
436-
else:
437-
return ''
438-
439-
output_rst += f"""\n * - {param['Name']}
440-
- {get_key('ToolTipText')}
441-
- {get_key('PreferredUnits')}
442-
- {get_key('json_parameter_type')}"""
443-
444-
return output_rst
445-
446414
def get_input_schema_reference(self) -> str:
447415
return 'hip-ra-x-request.json'
448416

0 commit comments

Comments
 (0)