Skip to content

Commit

Permalink
Merge pull request #206 from cvxgrp/203-address-nans
Browse files Browse the repository at this point in the history
203 address nans
  • Loading branch information
tschm authored Nov 20, 2023
2 parents 8088713 + b308fa3 commit 0529808
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions cvx/simulator/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,6 @@ def builder(
max_trade_fraction: float | None = None,
min_trade_fraction: float | None = None,
**kwargs,
# input_data: dict[str, Any] = field(default_factory=dict),
# **kwargs,
) -> _Builder:
"""The builder function creates an instance of the _Builder class, which
is used to construct a portfolio of assets. The function takes in a pandas
Expand Down Expand Up @@ -212,10 +210,6 @@ def builder(
return builder


def empty():
return dict()


@dataclass(frozen=True)
class _Builder:
prices: pd.DataFrame
Expand All @@ -229,8 +223,7 @@ class _Builder:
min_cap_fraction: float | None = None
max_trade_fraction: float | None = None
min_trade_fraction: float | None = None
input_data: dict[str, Any] = field(default_factory=empty)
parameter: dict[str, Any] = field(default_factory=dict)
input_data: dict[str, Any] = field(default_factory=dict)

def __post_init__(self) -> None:
"""
Expand Down

0 comments on commit 0529808

Please sign in to comment.