spinn_utilities.make_tools package

Submodules

spinn_utilities.make_tools.replacer module

class spinn_utilities.make_tools.replacer.Replacer(new_dict=False)[source]

Bases: spinn_utilities.make_tools.log_sqllite_database.LogSqlLiteDatabase

Performs replacements.

Connects to a log dict.

Parameters:new_dict (bool) – Flag to say if this is a new dict or not if True clears and previous values. If False makes sure the dict exists.
replace(short)[source]

Module contents

class spinn_utilities.make_tools.FileConverter[source]

Bases: object

bracket_count(text)[source]

Net count of open brackets in line.

Parameters:text (str) –
Return type:int
static convert(src_dir, dest_dir, file_name)[source]

Static method to create Object and do the conversion

Parameters:
  • src (str) – Source file
  • dest (str) – Destination file
quote_part(text)[source]

Net count of double quotes in line.

Parameters:text (str) –
Return type:int
split_by_comma_plus(main, line_num)[source]

split line by comma and partially parse

Parameters:
  • main (str) –
  • line_num (int) –
Return type:

list(str)