Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
917200a
Update to Python 3.12 (from 3.8), with updated packages
Bill-Becker Sep 10, 2025
ac0f883
Set Django at latest LTE patch version 4.2.24 per dependabot suggestion
Bill-Becker Sep 10, 2025
13436f2
python 3.12 replaces assertEquals with assertEqual
Bill-Becker Sep 10, 2025
071c723
Remove s from assertAlmostEquals for py 3.12
Bill-Becker Sep 10, 2025
9112309
Address SyntaxWarning for escape / with $
Bill-Becker Sep 10, 2025
0267f72
Remove deprecated '\$' SyntaxWarning: invalid escape sequence '\$'
Bill-Becker Sep 10, 2025
12c4023
Update outdated syntax T->min
Bill-Becker Sep 10, 2025
e2de5f9
Add git submodule for the EVI-EnLitePy server_version branch
Bill-Becker Sep 10, 2025
21b6ae7
Conditionally install EVI-EnLitePy if submodule is installed
Bill-Becker Sep 10, 2025
a7dd6fa
Add an example view for EVI-EnLitePy with internal I/O .json file
Bill-Becker Sep 10, 2025
af876f8
Update ensite_view to accept POST body and return results
Bill-Becker Sep 10, 2025
472d378
Add EVI-EnLitePy submodule pointer
Bill-Becker Sep 11, 2025
5d99c22
Reduce dev and staging branch server resources
Bill-Becker Sep 11, 2025
822a062
Add more celery memory; separate lower memory for Julia-only pod
Bill-Becker Sep 11, 2025
ef3aa9e
feat(ensite): default enrichment (normalize + annual + utilization) w…
bpulluta Sep 25, 2025
0b52d31
add enrichment_version to response and default clean/annual compare s…
bpulluta Sep 25, 2025
9923ba4
Update EVI-EnLitePy server_version branch to latest commit
Bill-Becker Sep 25, 2025
e7ea6ac
Keep same celery resource values for production as development and st…
Bill-Becker Sep 25, 2025
31592c2
Remove example input ensite.json file
Bill-Becker Sep 25, 2025
9ba73ec
removed example files
bpulluta Sep 25, 2025
e05bd16
Pull
bpulluta Sep 25, 2025
3b68902
document maxChargeDurationHr, returns power timeseries in kW and add …
bpulluta Sep 26, 2025
98287d9
document maxChargeDurationHr, returns power timeseries in kW and add …
bpulluta Sep 26, 2025
000cf75
clean $ sign in migration file
rathod-b Sep 30, 2025
eb53c68
Merge remote-tracking branch 'origin/develop' into ensite-py312
rathod-b Sep 30, 2025
319e44c
Resolve migration issues
rathod-b Sep 30, 2025
72323ed
dynamic EMS charging capacity (sum of chargers) with override
bpulluta Sep 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,4 @@ julia_src/licenseserver
julia_src/Dockerfile.xpress
docker-compose.xpress.yml
julia_src/solver_setup.sh
compare_run_*.json
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[submodule "EVI-EnLitePy"]
path = EVI-EnLitePy
url = https://github.nrel.gov/AVCI/EVI-EnLitePy.git
branch = server_version
4 changes: 2 additions & 2 deletions .helm/templates/julia-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ spec:
resources:
requests:
cpu: {{ .Values.juliaCpuRequest | quote }}
memory: {{ .Values.juliaMemoryRequest | quote }}
memory: "2000Mi"
limits:
cpu: {{ .Values.juliaCpuLimit | quote }}
memory: {{ .Values.juliaMemoryLimit | quote }}
memory: "2000Mi"
4 changes: 2 additions & 2 deletions .helm/values.production.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
appEnv: production
djangoSettingsModule: reopt_api.production_settings
djangoReplicas: 10
djangoCpuRequest: "1000m"
djangoCpuLimit: "2000m"
djangoMemoryRequest: "2000Mi"
djangoMemoryLimit: "2000Mi"
celeryReplicas: 10
celeryMemoryRequest: "900Mi"
celeryMemoryLimit: "900Mi"
juliaReplicas: 5
juliaCpuRequest: "2000m"
juliaCpuLimit: "4000m"
Expand Down
4 changes: 1 addition & 3 deletions .helm/values.staging.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
appEnv: staging
djangoSettingsModule: reopt_api.staging_settings
juliaMemoryRequest: "8000Mi"
juliaMemoryLimit: "8000Mi"
djangoSettingsModule: reopt_api.staging_settings
24 changes: 12 additions & 12 deletions .helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ redisDataVolumeStorageClassName:
juliaHost: "{{ .Chart.Name }}-julia-service"
redisHost: "{{ .Chart.Name }}-redis-service"
redisPort: 6379
djangoReplicas: 2
djangoCpuRequest: "2000m"
djangoCpuLimit: "4000m"
djangoMemoryRequest: "1600Mi"
djangoMemoryLimit: "1600Mi"
celeryReplicas: 2
djangoReplicas: 1
djangoCpuRequest: "500m"
djangoCpuLimit: "2000m"
djangoMemoryRequest: "700Mi"
djangoMemoryLimit: "700Mi"
celeryReplicas: 1
celeryCpuRequest: "100m"
celeryCpuLimit: "2000m"
celeryMemoryRequest: "700Mi"
celeryMemoryLimit: "700Mi"
celeryCpuLimit: "1000m"
celeryMemoryRequest: "1600Mi"
celeryMemoryLimit: "1600Mi"
juliaReplicas: 1
juliaCpuRequest: "1000m"
juliaCpuRequest: "500m"
juliaCpuLimit: "2000m"
juliaMemoryRequest: "8000Mi"
juliaMemoryLimit: "8000Mi"
juliaMemoryRequest: "6000Mi"
juliaMemoryLimit: "6000Mi"
10 changes: 8 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM reopt/py38
FROM reopt/py312

# Install NREL root certs for machines running on NREL's network.
ARG NREL_ROOT_CERT_URL_ROOT=""
Expand All @@ -9,12 +9,18 @@ ENV SRC_DIR=/opt/reopt/reo/src
ENV LD_LIBRARY_PATH="/opt/reopt/reo/src:${LD_LIBRARY_PATH}"

# Copy all code
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONDONTWRITEBYTECODE=1
COPY . /opt/reopt

# Install python packages
WORKDIR /opt/reopt
RUN ["pip", "install", "-r", "requirements.txt"]

# Conditionally install EVI-EnLitePy and pydantic (dependency) if EVI-EnLitePy has been cloned via git submodule
RUN if [ -d "/opt/reopt/EVI-EnLitePy" ] && [ "$(ls -A /opt/reopt/EVI-EnLitePy)" ]; then \
cd /opt/reopt/EVI-EnLitePy && pip install -e .; \
pip install pydantic; \
fi

EXPOSE 8000
ENTRYPOINT ["/bin/bash", "-c"]
1 change: 1 addition & 0 deletions EVI-EnLitePy
Submodule EVI-EnLitePy added at 75e5e6
1 change: 1 addition & 0 deletions load_builder/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@

urlpatterns = [
re_path(r'^load_builder/?$', views.load_builder),
re_path(r'^ensite/?$', views.ensite_view),
]
Loading