File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1054,8 +1054,7 @@ def simulate_cmd(
10541054 om_cmd .arg_set (key = "overrideFile" , val = override_file .as_posix ())
10551055
10561056 if self ._inputs : # if model has input quantities
1057- for key in self ._inputs :
1058- val = self ._inputs [key ]
1057+ for key , val in self ._inputs .items ():
10591058 if val is None :
10601059 val = [(float (self ._simulate_options ["startTime" ]), 0.0 ),
10611060 (float (self ._simulate_options ["stopTime" ]), 0.0 )]
@@ -1653,8 +1652,7 @@ def linearize(
16531652 om_cmd .arg_set (key = "overrideFile" , val = overrideLinearFile .as_posix ())
16541653
16551654 if self ._inputs :
1656- for key in self ._inputs :
1657- data = self ._inputs [key ]
1655+ for key , data in self ._inputs .items ():
16581656 if data is not None :
16591657 for value in data :
16601658 if value [0 ] < float (self ._simulate_options ["startTime" ]):
You can’t perform that action at this time.
0 commit comments