sovabids.heuristics#

Heuristics Module

Functions should return a dictionary.

Module Contents#

Functions#

from_io_example(sourcepath, targetpath)

Get the path pattern from a source-target mapping example.

sovabids.heuristics.from_io_example(sourcepath, targetpath)[source]#

Get the path pattern from a source-target mapping example.

The name of the function means “from input-output example”, as one provides an input and output pair of (source,target) paths.

Parameters:
  • sourcepath (str) – The sourcepath that will be modified to get the path pattern

  • targetpath (str) – The bidspath we are going to derive the information on.

Returns:

{

‘pattern’: The path pattern in placeholder format.

}

Return type:

dict