[importer] Remove age from Random importer
authorVincent Michel <vincent.michel@logilab.fr>
Fri, 20 Sep 2013 12:06:51 +0000
changeset 387 1fadd043e96c
parent 386 64421be0d75b
child 388 b3dfaba082e0
[importer] Remove age from Random importer
importers/random.py
--- a/importers/random.py	Fri Sep 20 12:37:14 2013 +0000
+++ b/importers/random.py	Fri Sep 20 12:06:51 2013 +0000
@@ -339,11 +339,9 @@
 for ind in range(NB_SUBJECTS):
     print ind
     date = random_date('age')
-    age = datetime.now() - date
-    age = int(age.days/365.)
     subject = store.create_entity('Subject', identifier='demo_subject_%s' % ind,
                                   gender=SEX[nr.randint(len(SEX))],
-                                  date_of_birth=date, age=age,
+                                  date_of_birth=date,
                                   handedness=HANDEDNESS[nr.randint(len(HANDEDNESS))]).eid
     subjects.append(subject)
     store.relate(subject, 'related_studies', study)