|
| 1 | +# Format parameters section (required) # |
| 2 | +[format] |
| 3 | +## Required format parameters: |
| 4 | +#### File type must be one of: excel,json-nested,xml,flat_text |
| 5 | +file_type=excel |
| 6 | +#### Counts are found in one way of: by_name,by_number |
| 7 | +count_location=by_number:3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24 |
| 8 | + |
| 9 | +merged_cells=yes |
| 10 | + |
| 11 | +################################################ |
| 12 | +## Sometimes required format parameters: |
| 13 | +#### for flat_text file type: |
| 14 | +flat_text_delimiter= |
| 15 | +#### if count_columns_specified is 'by_name': |
| 16 | +count_fields_by_name= |
| 17 | +#### if count_columns_specified is 'by_number': |
| 18 | +#### if 'in_count_headers' is in munge_strings |
| 19 | +#### (start numbering from first unskipped row): |
| 20 | +count_header_row_numbers=0,1,2 |
| 21 | +#### if 'constant_over_file' is in munge_strings (NB: give value for each in .ini file): |
| 22 | +constant_over_file=CountItemType |
| 23 | +#### if file type is flat_text or excel and count_columns_specified is 'by_name' |
| 24 | +#### (start numbering from first unskipped row): |
| 25 | +count_field_name_row= |
| 26 | +#### if file type is flat_text or excel and not all rows are data: |
| 27 | +#### (start numbering from first unskipped row): |
| 28 | +noncount_header_row=0 |
| 29 | + |
| 30 | +################################################ |
| 31 | +## Optional format parameters: |
| 32 | +#### for any file type: |
| 33 | +thousands_separator=, |
| 34 | +encoding= |
| 35 | + |
| 36 | +#### for a flat_text or excel file type: |
| 37 | +###### if field names are not given in file |
| 38 | +#all_rows=data |
| 39 | +###### if there are multiple blocks of data per page, each with its own headers |
| 40 | +multi_block=yes |
| 41 | + |
| 42 | +#### for excel file type: |
| 43 | +sheets_to_read_names=Wyandotte,WYANDOTTE |
| 44 | +sheets_to_read_numbers= |
| 45 | +sheets_to_skip_names= |
| 46 | + |
| 47 | +#### for xml file type |
| 48 | +nesting_tags= |
| 49 | + |
| 50 | +# Munge formula sections (required if in munge_strings list) # |
| 51 | +[munge formulas] |
| 52 | +ReportingUnit=<sheet_name>;<column_1> |
| 53 | +Candidate={<count_header_2>,^(?:\w\w\w |)(.*)$} |
| 54 | +CandidateContest=<count_header_0> |
| 55 | +Party={<count_header_2>,^(\w\w\w) .*$} |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | +# Values to ignore (optional) # |
| 60 | +[ignore] |
| 61 | +## E.g: Candidate=Total Votes Cast,Registered Voters ## |
| 62 | +ReportingUnit=WYANDOTTE;Totals,Wyandotte;Totals,WYANDOTTE; |
| 63 | +Candidate=Write-in Totals |
| 64 | + |
| 65 | +# Lookup formula sections # |
| 66 | +## Required when foreign keys are used in munge formulas and ## |
| 67 | +## must be looked up in another table. ## |
| 68 | +## See mi_gen18.munger for example ## |
| 69 | +################################################################## |
| 70 | + |
0 commit comments