Skip to content

Commit 287e50b

Browse files
committed
doc fix
1 parent c054fda commit 287e50b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Otherwise, clone/download the project and in the project directory run:
9191
python setup.py install
9292
```
9393

94-
PyPortfolioOpt supports Docker. Build your first container with `docker build -f docker/Dockerfile . -t pypfopt`. You can use the image to run tests or even launch a Jupyter server.
94+
PyPortfolioOpt supports Docker. Build your first container with `docker build -f docker/Dockerfile . -t pypfopt`. You can use the image to run tests or even launch a Jupyter server.
9595

9696
```bash
9797
# iPython interpreter:
@@ -107,6 +107,7 @@ docker run -t pypfopt poetry run pytest
107107
# Bash
108108
docker run -it pypfopt bash
109109
```
110+
110111
For more information, please read [this guide](https://docker-curriculum.com/#introduction).
111112

112113
### For development
@@ -187,7 +188,7 @@ from pypfopt.discrete_allocation import DiscreteAllocation, get_latest_prices
187188
latest_prices = get_latest_prices(df)
188189

189190
da = DiscreteAllocation(weights, latest_prices, total_portfolio_value=10000)
190-
allocation, leftover = da.lp_portfolio()
191+
allocation, leftover = da.greedy_portfolio()
191192
print("Discrete allocation:", allocation)
192193
print("Funds remaining: ${:.2f}".format(leftover))
193194
```

0 commit comments

Comments
 (0)