Skip to content

Commit

Permalink
BUG: add missing new SimulationResults.to_dict attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffgortmaker committed Jun 19, 2022
1 parent 98cbf85 commit 2f8e95c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyblp/results/simulation_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,9 @@ def to_pickle(self, path: Union[str, Path]) -> None:

def to_dict(
self, attributes: Sequence[str] = (
'product_data', 'computation_time', 'fp_converged', 'fp_iterations', 'contraction_evaluations'
'product_data', 'delta', 'costs', 'computation_time', 'fp_converged', 'fp_iterations',
'contraction_evaluations', 'profit_gradients', 'profit_gradient_norms', 'profit_hessians',
'profit_hessian_eigenvalues'
)) -> dict:
"""Convert these results into a dictionary that maps attribute names to values.
Expand Down

0 comments on commit 2f8e95c

Please sign in to comment.