Skip to content

move to cvxsimulator - #588

Merged
tschm merged 7 commits into
mainfrom
587-change-to-cvxsimulator
Jun 9, 2025
Merged

tschm merged 7 commits into
mainfrom
587-change-to-cvxsimulator

Conversation

@tschm

@tschm tschm commented Jun 9, 2025

Copy link
Copy Markdown
Member

No description provided.

@tschm tschm linked an issue Jun 9, 2025 that may be closed by this pull request
@tschm
tschm requested a review from Copilot June 9, 2025 18:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR renames module references from "cvx.simulator" to "cvxsimulator" throughout the codebase to consolidate the simulator’s namespace.

  • Updated import statements in tests, examples, and documentation.
  • Removed the old "cvx/simulator" module and updated configuration files and workflows accordingly.

Reviewed Changes

Copilot reviewed 34 out of 34 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/tests/test_applications/test_talk/test_experiment3.py Changed Portfolio import from cvx.simulator.portfolio to cvxsimulator.portfolio.
src/tests/test_applications/test_talk/test_experiment2.py Changed Portfolio import from cvx.simulator.portfolio to cvxsimulator.
src/tests/test_applications/test_talk/test_experiment1.py Changed Portfolio import from cvx.simulator.portfolio to cvxsimulator.
src/tests/test_applications/test_talk/conftest.py Updated interpolation import to use cvxsimulator.
src/tests/test_applications/test_reference/test_markowitz.py Changed Builder import to use cvxsimulator.builder.
src/cvxsimulator/utils/init.py Added new interpolation functions to all.
src/cvxsimulator/init.py New module initialization for cvxsimulator.
src/cvx/simulator/init.py Removed the deprecated module.
pyproject.toml Updated package path exclusions and package configuration.
.github/workflows/*.yml Updated import paths in workflow configuration.
book/marimo/*.py & README.md Updated code examples to reference the new module name.

from tinycta.signal import osc, returns_adjust

from cvx.simulator.portfolio import Portfolio
from cvxsimulator.portfolio import Portfolio

Copilot AI Jun 9, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The import for Portfolio differs across tests; test_experiment3.py uses 'cvxsimulator.portfolio' while test_experiment1.py and test_experiment2.py use 'cvxsimulator'. Consider standardizing the import statement to maintain consistency across the codebase.

Suggested change
from cvxsimulator.portfolio import Portfolio
from cvxsimulator import Portfolio

Copilot uses AI. Check for mistakes.
@tschm
tschm force-pushed the 587-change-to-cvxsimulator branch from cfc940e to 43069ff Compare June 9, 2025 18:59
@tschm
tschm merged commit 6590f0f into main Jun 9, 2025
@tschm
tschm deleted the 587-change-to-cvxsimulator branch June 9, 2025 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

change to cvxsimulator

2 participants