Skip to content

Commit

Permalink
BUG: fix data type for coerced firm IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffgortmaker committed Jan 4, 2023
1 parent 09600d7 commit ae4418e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyblp/economies/economy.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def _coerce_optional_firm_ids(self, firm_ids: Optional[Any], market_ids: Optiona
"""
if firm_ids is None:
return None
firm_ids = np.c_[np.asarray(firm_ids, options.dtype)]
firm_ids = np.c_[np.asarray(firm_ids, np.object_)]
rows = self.N
if market_ids is not None:
rows = sum(i.size for t, i in self._product_market_indices.items() if t in market_ids)
Expand Down

0 comments on commit ae4418e

Please sign in to comment.