- Timestamp:
- 07/10/15 14:03:04 (9 years ago)
- Location:
- trunk/lib/nanownlib
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/nanownlib/storage.py
r8 r9 130 130 offset = numpy.random.random_integers(0,len(population)-1) 131 131 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 133 137 if len(ret_val) < size: 134 138 ret_val += population[0:size-len(ret_val)]
Note: See TracChangeset
for help on using the changeset viewer.