Skip to content

Commit

Permalink
ugly fix when applicants aren't specified
Browse files Browse the repository at this point in the history
  • Loading branch information
Patent2net committed Jul 6, 2021
1 parent 5860aa2 commit f06088b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Patent2Net/P2N-Nets-new.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,9 +562,12 @@ def cycle (liste):
TailleFamiile += sum( [appl in truc for truc in df_Fam ['applicant']]) # nombre d'apparition dans les familles
NbBrevets += sum( [appl in truc for truc in df ['applicant']]) # nombre de brevets
nbCitations += sum ( [bre.Citations for bre in df.itertuples() if appl in bre.applicant])
IPC11 +=dicoAttrsAppli [appl]['IPC11-range']
IPC7 += dicoAttrsAppli [appl]['IPC7-range']
IPC4 +=dicoAttrsAppli [appl]['IPC4-range']
if len(appl)>0:
IPC11 +=dicoAttrsAppli [appl]['IPC11-range']
if len(appl)>0:
IPC7 += dicoAttrsAppli [appl]['IPC7-range']
if len(appl)>0:
IPC4 +=dicoAttrsAppli [appl]['IPC4-range']
IPCForce += Techno [appl]

IPCDiversity = len(set(IPCForce))
Expand Down

0 comments on commit f06088b

Please sign in to comment.