tightbinder.fileparse.shape_arguments#

shape_arguments(arguments)[source]#

Routine to rewrite correctly the arguments parsed (raw) from the input file.

Parameters:

arguments (dict) – Dictionary with the raw contents of the config. file.

Return type:

dict

Returns:

Dictionary with the contents of the config. file in numerical format.

Raises:
  • IndexError – Raised if some arguments are missing

  • ValueError – Raised if some arguments have incorrect values (e.g. string instead of numbers).

  • SyntaxError – Raised for the SK amplitudes if not using correctly the brackets.

  • NotImplementedError – Raised if there is an unexpected argument present.