Skip to content

Commit

Permalink
Use np.equal for elementwise comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienPeloton committed Dec 18, 2023
1 parent 62849cb commit 113f3f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/index_sso_resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@ def main():
sso_name, sso_number = rockify(pdf.ssnamenr.copy())

# fill None with values from original ssnamenr
mask1 = sso_name == None
mask1 = np.equal(sso_name, None)
sso_name[mask1] = pdf.ssnamenr[mask1]

# Keep only valid number
mask2 = sso_number == sso_number
mask2 = np.equal(sso_number, sso_number)
sso_number_valid = sso_number[mask2]

# create index vector for SSODNET
Expand Down

0 comments on commit 113f3f7

Please sign in to comment.