spinetoolbox.project_items.exporter.executable_item

Contains Exporter’s executable item as well as support utilities.

authors:
  1. Soininen (VTT)
date:

2.4.2020

Module Contents

Classes

ExecutableItem The part of a project item that is executed by the Spine Engine.
class spinetoolbox.project_items.exporter.executable_item.ExecutableItem(name, settings_packs, cancel_on_error, data_dir, gams_path, logger)[source]

Bases: spinetoolbox.executable_item_base.ExecutableItemBase

The part of a project item that is executed by the Spine Engine.

Parameters:
  • name (str) – item’s name
  • settings_packs (dict) – mapping from database URLs to SettingsPacks
  • cancel_on_error (bool) – True if execution should fail on all errors, False if certain errors can be ignored
  • data_dir (str) – absolute path to exporter’s data directory
  • gams_path (str) – GAMS path from Toolbox settings
  • logger (LoggerInterface) – a logger
static item_type()[source]

Returns Exporter’s type identifier string.

_execute_forward(self, resources)[source]

See base class.

_output_resources_forward(self)[source]

See base class.

_resolve_gams_system_directory(self)[source]

Returns GAMS system path from Toolbox settings or None if GAMS default is to be used.

classmethod from_dict(cls, item_dict, name, project_dir, app_settings, specifications, logger)[source]

See base class.