Skip to content

Commit

Permalink
Changed how the years are taken in get_expertise_year #12
Browse files Browse the repository at this point in the history
  • Loading branch information
aitoralmeida committed Jul 2, 2013
1 parent 3058997 commit 28090eb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sna/analyzers/expertise_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
@author: aitor
"""
from sets import Set
from datetime import date
import pg # TODO: delete once the queries are djangoized


Expand Down Expand Up @@ -69,10 +70,10 @@ def group_by_expertise(self, persons_expertise):
expertises[tag].add(person)
return expertises

# based on the person expertises recovers their chronological evolution
# Based on the person expertises recovers their chronological evolution
def get_expertise_year(self, person, expertises):
startYear = 2004
endYear = 2013
startYear = 2004 # TODO change it to the first year of the person in the lab
endYear = date.today().year

expertise_year = {}
for expertise in expertises:
Expand Down

0 comments on commit 28090eb

Please sign in to comment.