[Feature] More on Legacy API (#142)

Co-authored-by: Tim Lorsbach <tim@lorsba.ch>
Reviewed-on: enviPath/enviPy#142
This commit is contained in:
2025-10-03 00:07:30 +13:00
parent 7ad4112343
commit 3f2b046bd6
3 changed files with 536 additions and 89 deletions

View File

@ -1402,13 +1402,13 @@ class Pathway(EnviPathModel, AliasMixin, ScenarioMixin):
# Mode
def is_built(self):
return self.kv.get('mode', 'build') == 'predicted'
return self.kv.get('mode', 'build') == 'build'
def is_predicted(self):
return self.kv.get('mode', 'build') == 'predicted'
def is_predicted(self):
return self.kv.get('mode', 'build') == 'predicted'
def is_incremental(self):
return self.kv.get('mode', 'build') == 'incremental'
# Status
def status(self):