SourceCode.paths#
paths.py#
Centralized path configuration for FTT
This module provides a single place to configure the data directories used by
the model (Inputs and Utilities). Override the defaults before instantiating
RunFTT when using FTT as an
imported package with local data.
Example usage#
Default behaviour (uses the data bundled with the repository):
from future_technology_transformation import RunFTT
model = RunFTT()
Using custom data directories:
from future_technology_transformation import RunFTT, set_paths
set_paths(
inputs_path="/path/to/my/Inputs",
utilities_path="/path/to/my/Utilities",
)
model = RunFTT()
Or equivalently via RunFTT keyword arguments:
from future_technology_transformation import RunFTT
model = RunFTT(
inputs_path="/path/to/my/Inputs",
utilities_path="/path/to/my/Utilities",
)
Functions
|
Return the active Inputs directory as a |
|
Return the active Utilities directory as a |
|
Reset both path overrides to their defaults. |
|
Set the data directories used by the model. |