Skip to content

Commit

Permalink
allow dublivate isins in sbti file
Browse files Browse the repository at this point in the history
  • Loading branch information
joriscram committed Sep 24, 2020
1 parent 85ff271 commit 24a36f0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions SBTi/data/sbti.py
Expand Up @@ -25,10 +25,7 @@ def get_sbti_targets(self, companies: List[IDataProviderCompany], isin_map: dict
"""
for company in companies:
targets = self.targets[self.targets[self.c.COL_COMPANY_ISIN] == isin_map.get(company.company_id)]
if len(targets) > 1:
raise ValueError("There is more than one target classification available for company: {}".format(
company.company_name))
elif len(targets) == 1:
company.sbti_validated = targets.iloc[0][self.c.COL_TARGET_STATUS] == self.c.VALUE_TARGET_SET
if len(targets) > 0:
company.sbti_validated = self.c.VALUE_TARGET_SET in targets[self.c.COL_TARGET_STATUS].values

return companies

0 comments on commit 24a36f0

Please sign in to comment.