Skip to content

Commit

Permalink
BUG: implement missing abstract method for LinearCoefficient
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffgortmaker committed Jun 13, 2022
1 parent 3c6272a commit d9ab018
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pyblp/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ def get_group_associations(self, market: 'Market') -> Array:
class LinearCoefficient(Coefficient):
"""Information about a single linear parameter in beta or gamma."""

def get_product_formulation(self, container: Container) -> ColumnFormulation:
"""Get the product formulation associated with the parameter."""
return container._X2_formulations[self.location[0]]

def get_product_characteristic(self, market: 'Market') -> Array:
"""Get the product characteristic associated with the parameter."""
x = self.get_product_formulation(market).evaluate(market.products)
Expand Down

0 comments on commit d9ab018

Please sign in to comment.