sovabids.heuristics¶
Heuristics Module
Functions should return a dictionary.
Functions¶
|
Get the path pattern from a source-target mapping example. |
Module Contents¶
- 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 | pathlib.Path) – The sourcepath that will be modified to get the path pattern
targetpath (str | pathlib.Path) – The bidspath we are going to derive the information on.
- Returns:
- {
‘pattern’: The path pattern in placeholder format.
}
- Return type:
dict