-
Notifications
You must be signed in to change notification settings - Fork 310
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #414 from sartography/feature/performance-improvem…
…ents Feature/performance improvements
- Loading branch information
Showing
10 changed files
with
566 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
def update_mi_states(dct): | ||
|
||
typenames = ['StandardLoopTask', 'SequentialMultiInstanceTask', 'ParallelMultiInstanceTask'] | ||
def update(tasks, task_specs): | ||
for task in tasks: | ||
task_spec = task_specs.get(task['task_spec'], {}) | ||
if task['state'] == 8 and task_spec['typename'] in typenames: | ||
task['state'] = 32 | ||
|
||
for up in dct['subprocesses'].values(): | ||
update(sp['tasks'].values(), sp['spec']['task_specs']) | ||
update(dct['tasks'].values(), dct['spec']['task_specs']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.