Skip to content

Commit f443c9a

Browse files
committed
Update env*.yml and pyproject.toml
Use new version of acnportal
1 parent 3b65db1 commit f443c9a

File tree

3 files changed

+26
-21
lines changed

3 files changed

+26
-21
lines changed

env_cogen.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,8 @@
1313
# - only supports gymnasium 0.28.1 (see https://github.com/ray-project/ray/blob/ray-2.8.0/python/setup.py#L305)
1414
# - officially seems to only supports pettingzoo 1.23.1 (see https://github.com/ray-project/ray/blob/ray-2.8.0/python/requirements/ml/rllib-test-requirements.txt),
1515
# but empirically seems to work with pettingzoo 1.24.*
16-
# - Onnxruntime 1.16:
17-
# - pre-built pip package only supports up to CUDA 11.8 (see https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html)
18-
# - PyTorch 2.1 supports both CUDA 11.8 and 12.1
1916
#
20-
# last updated: November 13, 2023
17+
# last updated: November 16, 2023
2118
name: sustaingym_cogen
2219
channels:
2320
- pytorch # for pytorch
@@ -47,11 +44,10 @@ dependencies:
4744
- gymnasium==0.28.1
4845
- pettingzoo==1.24.1
4946
- ray[rllib]==2.8.*
47+
- onnxruntime==1.16.* # the ONNX model for CogenEnv is small and runs sufficiently fast on CPU
5048

5149
# uncomment for CPU-only
52-
# - onnxruntime==1.16.*
5350
# - tensorflow==2.14.*
5451

5552
# for GPU. comment out for CPU-only.
56-
- onnxruntime-gpu==1.16.*
5753
- tensorflow[and-cuda]==2.14.*

env_ev.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@
55
# conda remove --name sustaingym_ev --all
66
#
77
# Notes
8-
# - ACNPortal
9-
# - latest official release v0.3.2 only supports up to Pandas 1.1,
10-
# and Pandas 1.1 only supports up to Python 3.9
11-
# - we install from the ACNPortal dev branch, which includes a fix that supports Pandas 2
12-
#
138
# - TensorFlow 2.14:
149
# - the GPU version only works with Python <=3.10 (see https://github.com/tensorflow/tensorflow/issues/61986)
1510
# - TensorFlow 2.15 should fix this issue
@@ -19,7 +14,7 @@
1914
# - officially seems to only supports pettingzoo 1.23.1 (see https://github.com/ray-project/ray/blob/ray-2.8.0/python/requirements/ml/rllib-test-requirements.txt),
2015
# but empirically seems to work with pettingzoo 1.24.*
2116
#
22-
# last updated: November 13, 2023
17+
# last updated: November 25, 2023
2318
name: sustaingym_ev
2419
channels:
2520
- pytorch # for pytorch
@@ -50,7 +45,7 @@ dependencies:
5045
- pytorch-cuda=11.8 # for PyTorch 2
5146

5247
- pip:
53-
- git+https://github.com/zach401/acnportal@0127a055cf
48+
- acnportal>=0.3.3
5449
- gymnasium==0.28.1
5550
- pettingzoo==1.24.1
5651
- ray[rllib]==2.8.*

pyproject.toml

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,26 +24,40 @@ dependencies = [
2424

2525
[project.optional-dependencies]
2626
# Update dependencies in `all` if any are added or removed
27-
evcharging = [
28-
"acnportal==0.3.2",
27+
all = [
28+
"acnportal>=0.3.3",
2929
"cvxpy>=1.3, <2", # semver
3030
"mosek>=10.0.44, <11", # semver
31-
"pandas==1.1.*", # semver
31+
"openpyxl>=3.1",
32+
"onnxruntime>=1.15, <2", # semver
33+
"pandas>=1.1, <3", # semver
34+
"pvlib>=0.10",
3235
"pytz",
3336
"requests>=2.31.0", # semver
3437
"scikit-learn>=1.1.1", # semver
38+
"scipy>=1.0",
39+
"xlrd>=2",
40+
]
41+
building = [
42+
"cvxpy>=1.3, <2", # semver
43+
"pvlib>=0.10",
44+
"scikit-learn>=1.1.1", # semver
45+
"scipy>=1.0",
3546
]
3647
cogen = [
37-
"openpyxl>=3.1",
3848
"onnxruntime>=1.15, <2", # semver
49+
"openpyxl>=3.1",
3950
"pandas>=1.1, <3", # semver
40-
"xlrd>=2"
51+
"xlrd>=2",
4152
]
42-
building = [
53+
evcharging = [
54+
"acnportal>=0.3.3",
4355
"cvxpy>=1.3, <2", # semver
44-
"pvlib>=0.10",
56+
"mosek>=10.0.44, <11", # semver
57+
"pandas>=1.1, <3", # semver
58+
"pytz",
59+
"requests>=2.31.0", # semver
4560
"scikit-learn>=1.1.1", # semver
46-
"scipy>=1.0"
4761
]
4862

4963
[project.urls]

0 commit comments

Comments
 (0)