Skip to content

Commit

Permalink
Updated the ExportNWP to run from the GUI properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesVaughan committed May 25, 2021
1 parent a6df61d commit 13e75fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions TMGToolbox/src/input_output/export_network_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class ExportNetworkPackage(m.Tool()):
number_of_tasks = 11 # For progress reporting, enter the integer number of tasks here

Scenario = m.Attribute(m.InstanceType)
export_file = m.Attribute(str)
ExportFile = m.Attribute(str)
ExportAllFlag = m.Attribute(bool)
AttributeIdsToExport = m.Attribute(m.ListType)
ExportMetadata = m.Attribute(str)
Expand Down Expand Up @@ -132,13 +132,13 @@ def run(self):
def check_all_flag(self):
return self.ExportAllFlag

def __call__(self, scenario_number, export_file, export_attributes):
def __call__(self, scenario_number, ExportFile, export_attributes):

self.Scenario = mm.emmebank.scenario(scenario_number)
if self.Scenario is None:
raise Exception('Scenario %s was not found!' % scenario_number)

self.ExportFile = export_file
self.ExportFile = ExportFile
if export_attributes.lower() == 'all':
self.ExportAllFlag = True # if true, self.AttributeIdsToExport gets set in execute
else:
Expand Down

0 comments on commit 13e75fe

Please sign in to comment.