src.core.process.map module

class src.core.process.map.IdMapper(patch='16.10.1')[source]

Bases: object

handles the mapping of ids in the league datasets

Parameters:

patch (str)

loadedpatches

the set of loaded patch metadata files for mapping

Type:

set[str]

map

(typeOfId,patch) –> mapfunction

Type:

dict[tuple[str, str], dict[str, str]]

addPatchIfMissing[source]

checks, if the maps for the passed patch are loaded, and loads them if they are not present

Type:

function

Parameters:

patch (str)

addPatchIfMissing(patch)[source]
Parameters:

patch (str)

mapItem(id, req, patch)[source]
Parameters:
  • id (str)

  • req (str)

  • patch (str)

src.core.process.map.initializeMapper(dataRequested, patch=None)[source]

Maps the given id, to the corresponding name ingame.

Parameters:
  • dataRequested (str) – Determines the dataBase, which the function will downstream. Currently supported: “summoner”, “perk”, “champion”, “item”

  • patch (str, optional) – if an Argument is passed, the passed patchnumber will be used instead of the most recent

Returns:

final_dict – the mapper

Return type:

dict[str, str]

src.core.process.map.lsasmapper: IdMapper = <src.core.process.map.IdMapper object>

the global map function

Dependency Diagrams (without externals):

digraph imports {
  rankdir=LR;
  node [shape=box];
  "src.core.process.pipelines.client" -> "src.core.process.map";
}

Import dependencies (collapsed)

Dependency Diagrams:

digraph imports {
  rankdir=LR;
  node [shape=box];
  "src.core.process.pipelines.client" -> "src.core.process.map";
}

Import dependencies (collapsed)