Changeset 9 for trunk/lib


Ignore:
Timestamp:
07/10/15 14:03:04 (9 years ago)
Author:
tim
Message:

.

Location:
trunk/lib/nanownlib
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/nanownlib/storage.py

    r8 r9  
    130130            offset = numpy.random.random_integers(0,len(population)-1)
    131131
    132         ret_val = population[offset:offset+size]
     132        try:
     133            ret_val = population[offset:offset+size]
     134        except Exception as e:
     135            print(e, offset, size)
     136           
    133137        if len(ret_val) < size:
    134138            ret_val += population[0:size-len(ret_val)]
Note: See TracChangeset for help on using the changeset viewer.