Skip to content

Commit

Permalink
BUG: remove non-finite ownership check (NaNs are okay)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffgortmaker committed Feb 25, 2023
1 parent 15010d1 commit 8ff613d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pyblp/primitives.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,6 @@ def __new__(
if firm_ids is not None:
ownership = extract_matrix(product_data, 'ownership')
if ownership is not None:
if not np.isfinite(ownership).all():
raise ValueError("The ownership field of product_data should not have NaNs or infinities.")
max_J = market_groups.counts.max()
if ownership.shape[1] != max_J:
raise ValueError(
Expand Down

0 comments on commit 8ff613d

Please sign in to comment.