spinetoolbox.project_items.importer.utils

Contains Importer’s utility functions.

authors:
  1. Soininen (VTT)
date:

6.5.2020

Module Contents

Functions

deserialize_mappings(mappings, project_path) Returns mapping settings as dict with absolute paths as keys.
spinetoolbox.project_items.importer.utils.deserialize_mappings(mappings, project_path)[source]

Returns mapping settings as dict with absolute paths as keys.

Parameters:
  • mappings (list) – List where each element contains two dictionaries (path dict and mapping dict)
  • project_path (str) – Path to project directory
Returns:

Dictionary with absolute paths as keys and mapping settings as values

Return type:

dict