Skip to content

Commit b62eed4

Browse files
committed
small makefile & docs tweak
1 parent 222e259 commit b62eed4

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

Makefile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ test: setup-test clean-test-docs test-docs
4141
pytest tests/phmdoctest -n $(PARALLEL) --dist loadfile --color=yes --verbose
4242
pytest tests --cov=energypylinear --cov-report=html -n $(PARALLEL) --color=yes --durations=5 --verbose --ignore tests/phmdoctest
4343

44-
test-ci: test
45-
46-
test-docs: clean-test-docs
44+
test-docs: setup-test clean-test-docs
4745
mkdir -p ./tests/phmdoctest
4846
python -m phmdoctest README.md --outfile tests/phmdoctest/test_readme.py
4947
python -m phmdoctest ./docs/docs/validation/battery.md --outfile tests/phmdoctest/test_validate_battery.py
@@ -110,5 +108,5 @@ docs: setup-docs
110108
# -p = push
111109
# TODO - get VERSION from pyproject.toml
112110
# TODO - this is not used in CI anywhere yet
113-
mike-deploy: setup-docs generate-docs-images
111+
mike-deploy: setup-docs
114112
cd docs; mike deploy $(VERSION) latest -u -b mike-pages -r origin -p

docs/docs/validation/evs.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,14 @@ results = asset.optimize(
2424
asset.plot(results, path="./docs/docs/static/ev-validation-1.png")
2525
```
2626

27-
Note third charger - this is the spill charger
27+
The third charger is the spill charger.
2828

2929
![](../static/ev-validation-1.png)
3030

3131
## Expanding a Charge Event Window
3232

33+
Let's expand out the charge event window to the last three intervals for the last charge event:
34+
3335
```python
3436
import energypylinear as epl
3537

@@ -56,6 +58,8 @@ Now we see that the charge has happened in interval 3, this is because electrici
5658

5759
## Overlapping Charge Events
5860

61+
When charge events overlap at low prices, both (but only two) chargers are used:
62+
5963
```python
6064
import energypylinear as epl
6165

@@ -68,7 +72,7 @@ asset = epl.EVs(
6872
results = asset.optimize(
6973
electricity_prices=[-100, 50, 300, 10, 40],
7074
charge_events=[
71-
[1, 0, 0, 0, 0],
75+
[1, 0, 0, 1, 0],
7276
[0, 1, 1, 1, 1],
7377
[0, 0, 1, 1, 1],
7478
]
@@ -78,12 +82,6 @@ asset.plot(results, path="./docs/docs/static/ev-validation-3.png")
7882

7983
![](../static/ev-validation-3.png)
8084

81-
we have moved our 100 MWh charging into the third interval
82-
83-
our first charge event is still at the negative price because splitting our 100 MWh load would be worse
84-
85-
do the math here just as a fyi
86-
8785
## Adding V2G
8886

8987
```python

0 commit comments

Comments
 (0)