Changeset 2689 for simo


Ignore:
Timestamp:
01/13/12 22:50:10 (4 months ago)
Author:
jussi
Message:

change: id_list handling for celery_runner

File:
1 edited

Legend:

Unmodified
Added
Removed
  • simo/trunk/src/celery_runner.py

    r2635 r2689  
    9191                                                          main_level, 
    9292                                                          distinct=True) 
    93             # TODO: this is still missing the id list option handling 
    9493            ids = [i[0] for i in ids] 
    95             ind_seq = runner_obj.cfg['simulation.index_sequence'] 
    96             if ind_seq is not None: 
     94            id_list = runner_obj.cfg.get('simulation.id_list') 
     95            ind_seq = runner_obj.cfg.get('simulation.index_sequence') 
     96            if id_list: 
     97                ids = set(ids) 
     98                id_list = set(id_list) 
     99                ids = ids.intersection(id_list) 
     100            elif ind_seq is not None: 
    97101                if ind_seq[1] is None: 
    98102                    ind_seq = (ind_seq[0], len(ids) + 1) 
Note: See TracChangeset for help on using the changeset viewer.