Skip to content

Commit

Permalink
Merge pull request #277 from cvxgrp/276-expose-state
Browse files Browse the repository at this point in the history
exposed state
  • Loading branch information
tschm authored Jan 2, 2024
2 parents 65f3acb + f308187 commit 1d91216
Show file tree
Hide file tree
Showing 7 changed files with 193 additions and 215 deletions.
4 changes: 1 addition & 3 deletions cvx/simulator/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# from cvx.simulator.futures.builder import FuturesBuilder
# from cvx.simulator.futures.portfolio import FuturesPortfolio

from cvx.simulator.builder import Builder
from cvx.simulator.portfolio import Portfolio
from cvx.simulator.state import State
from cvx.simulator.utils.interpolation import interpolate
13 changes: 0 additions & 13 deletions cvx/simulator/_state/__init__.py

This file was deleted.

3 changes: 1 addition & 2 deletions cvx/simulator/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@
import pandas as pd

from cvx.simulator.portfolio import Portfolio
from cvx.simulator.state import State
from cvx.simulator.utils.interpolation import valid
from cvx.simulator.utils.rescale import returns2prices

from ._state.state import State


@dataclass
class Builder:
Expand Down
File renamed without changes.
386 changes: 190 additions & 196 deletions poetry.lock

Large diffs are not rendered by default.

Empty file removed tests/test__state/__init__.py
Empty file.
2 changes: 1 addition & 1 deletion tests/test__state/test_state.py → tests/test_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import pandas as pd
import pytest

from cvx.simulator._state.state import State
from cvx.simulator import State


@pytest.fixture()
Expand Down

0 comments on commit 1d91216

Please sign in to comment.