Skip to content

Commit 9cec4ba

Browse files
authored
Merge pull request #7 from paperswithbacktest/codex/propose-codebase-improvements-and-fixes
Fix typos and update docs
2 parents 4b575f5 + 1e65fd7 commit 9cec4ba

File tree

11 files changed

+42
-9
lines changed

11 files changed

+42
-9
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ from alphaevolve import AlphaEvolve
4343

4444
# Initialize the system
4545
evolve = AlphaEvolve(
46-
initial_program_paths=["example/sma_momentum.py"],
47-
config_path="example/config.py"
46+
initial_program_paths=["examples/sma_momentum.py"],
47+
config_path="examples/config.py"
4848
)
4949

5050
# Run the evolution
@@ -67,7 +67,7 @@ The dashboard uses Streamlit to visualize the evolution process and back‑test
6767
## 📂 Project structure (high‑level)
6868

6969
```
70-
alpha_trader/
70+
alphaevolve/
7171
├── data/ # loaders & helpers on top of pwb_toolbox
7272
├── strategies/ # seed strategies (EVOLVE‑BLOCK markers)
7373
├── evaluator/ # Backtrader KPIs & walk‑forward

alphaevolve/evaluator/backtest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import backtrader as bt
1616
import pandas as pd
1717

18-
from example import config as example_config
18+
from examples import config as example_config
1919
from alphaevolve.data.loader import load_ohlc, add_feeds_to_cerebro
2020
from alphaevolve.utils import metrics as mt
2121

alphaevolve/evolution/controller.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,11 @@ async def _spawn(self, parent_id: Optional[str]):
8383
logger.error(f"Model did not return valid JSON: {e}\n{msg.content[:500]}")
8484
return
8585

86-
child_startegy = apply_patch(parent["code"], diff_json)
86+
child_strategy = apply_patch(parent["code"], diff_json)
8787

8888
imports = "from collections import deque\nimport backtrader as bt"
8989
base_cls = inspect.getsource(BaseLoggingStrategy)
90-
child_code = textwrap.dedent(imports + "\n\n" + base_cls + "\n\n" + child_startegy)
90+
child_code = textwrap.dedent(imports + "\n\n" + base_cls + "\n\n" + child_strategy)
9191

9292
# 4) Evaluate
9393
try:

alphaevolve/store/sqlite.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
from alphaevolve.config import settings
1919

20-
from example import config as example_config
20+
from examples import config as example_config
2121

2222

2323
class ProgramStore:
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Issues = "https://github.com/your-org/pwb-alphaevolve/issues"
6262
# ---------------------------------------------------------------------
6363
[tool.hatch.build.targets.wheel]
6464
include = [
65-
"alpha_trader/**",
65+
"alphaevolve/**",
6666
"scripts/**",
6767
"README.md",
6868
"LICENSE",

scripts/dashboard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import matplotlib.pyplot as plt
1818

1919
from alphaevolve.store.sqlite import ProgramStore
20-
from example import config as example_config
20+
from examples import config as example_config
2121
from alphaevolve.evaluator.backtest import (
2222
_load_module_from_code, # type: ignore (private helper is okay for internal app)
2323
_find_strategy, # type: ignore

0 commit comments

Comments
 (0)