import os
import sys
pyspa_local_path = os.path.join(
os.path.expanduser("~"),
"github/pyspa"
)
sys.path.append(pyspa_local_path)
and setting a breakpoint ("๐ด") in ~/github/pyspa/pyspa.py
:
def get_spa(
target_ID: int,
max_stage: int,
a_matrix, infosheet,
thresholds,
thresholds_as_percentages=False,
interactive=False,
breakdown_remainder=True,
zero_indexing=False
) -> SupplyChain:
(...)
interface_keywords_dict = _populate_interface_keyword_args_dict(a_matrix, infosheet, thresholds)
interface = Interface(**interface_keywords_dict)
๐ด if not zero_indexing:
target = target_ID - 1 # need to remove 1 to align with 0-indexing in python
else:
target = target_ID
Somehow ends up stepping into (among other libraries) sys.excepthook = old_excepthook
:
sys.excepthook = old_excepthook
cf. also: microsoft/vscode-jupyter#9815