From 8ff613dec6f2b8d9640bb5fd65bdc73a965b5c72 Mon Sep 17 00:00:00 2001 From: Jeff Gortmaker Date: Sat, 25 Feb 2023 09:40:49 -0500 Subject: [PATCH] BUG: remove non-finite ownership check (NaNs are okay) --- pyblp/primitives.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/pyblp/primitives.py b/pyblp/primitives.py index e61d571..511b18b 100644 --- a/pyblp/primitives.py +++ b/pyblp/primitives.py @@ -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(