descmap.io

Input/Output functionality

descmap.io.organize_excel_inputs(in_path='./inputs.xlsx')[source]

Reads Excel sheet and creates accessible JSON

Parameters:

in_path (str) – Path to Excel sheet

Returns:

out_dict – Output dictionary whose keys are important sheets. The values types vary based on information found in the spreadsheet.

Return type:

dict

descmap.io.write_out_file(in_path, out_path, fields)[source]

Helper method to write submission files

Parameters:
  • in_path (str) – Path to read the input file to modify. Fields to be replace should be proceeded by ‘__’. e.g. __omkm_path.

  • out_path (str) – Path to write the output file with modified fields filled in.

  • fields (dict) – Keys of dictionary are the fields to replace (without ‘__’) and the values are the strings to replace the text.