def check_parameter_file(filename):
<EOL>with open(filename, "<STR_LIT:r>") as fin:<EOL><INDENT>content = fin.read()<EOL><DEDENT>bad_names = []<EOL>line_numbers = []<EOL>strs = ["<STR_LIT>", "<STR_LIT>", "<STR_LIT>"]<EOL>for tstr in strs:<EOL><INDENT>start = content.find(tstr)<EOL>while start != -<NUM_LIT:1>:<EOL><INDENT>cols_str = "<STR_LIT>".join(content[start:].split("<STR_LIT:\n>")[<NUM_LIT:0>].split("<STR_LIT:=>")[-<NUM_LIT:1>].split("<STR_LIT:U+0020>"))<EOL>semis = cols_str.count("<STR_LIT:;>")<EOL>line_end = content.find("<STR_LIT:\n>", start)<EOL>line_number = content[:line_end].count("<STR_LIT:\n>") + <NUM_LIT:1><EOL>if tstr == "<STR_LIT>":<EOL><INDENT>colons = cols_str.count("<STR_LIT:U+002C>")<EOL><DEDENT>else:<EOL><INDENT>colons = cols_str.count("<STR_LIT::>")<EOL><DEDENT>if colons != (semis + <NUM_LIT:1>):<EOL><INDENT>bad_names.append(tstr)<EOL>line_numbers.append(line_number)<EOL><DEDENT>start = content.find(tstr, start + <NUM_LIT:1>)<EOL><DEDENT><DEDENT>return bad_names, line_numbers<EOL>
Function does a rudimentary check whether the cols, splits and divs columns
in the parameter files are formatted properly.

Just provides a preliminary check. Will only catch basic mistakes

Parameters
----------
filename : str
    Path to parameters file

Returns
-------
: list
    Contains the number of possible bad strings detected