Skip to content

Commit d685f4a

Browse files
committed
Check if output retirement table exists
Signed-off-by: Davey Elder <iandavidelder@gmail.com>
1 parent fb13b81 commit d685f4a

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

temoa/data_io/hybrid_loader.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,13 @@ def _load_retired_existing_capacity(
654654
"""
655655
Only needed in myopic to bring past early retirement decisions forward
656656
"""
657+
if not self.table_exists('output_retired_capacity'):
658+
logger.info(
659+
"Table 'output_retired_capacity' not found. Skipping loading "
660+
'of retired existing capacity.'
661+
)
662+
return
663+
657664
model = TemoaModel()
658665
cur = self.con.cursor()
659666
mi = self.myopic_index

0 commit comments

Comments
 (0)