Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 4 additions & 2 deletions julia_src/Manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -948,9 +948,11 @@ version = "1.11.0"

[[deps.REopt]]
deps = ["ArchGDAL", "CSV", "CoolProp", "DataFrames", "Dates", "DelimitedFiles", "HTTP", "JLD", "JSON", "JuMP", "LinDistFlow", "LinearAlgebra", "Logging", "MathOptInterface", "Requires", "Roots", "Statistics", "TestEnv"]
git-tree-sha1 = "00bb39c8f932a3320960f01adc139229c24e12b7"
git-tree-sha1 = "dad8d89841fe74d3027414359a883b991258d934"
repo-rev = "chp-expand"
repo-url = "https://github.com/NREL/REopt.jl.git"
uuid = "d36ad4e8-d74a-4f7a-ace1-eaea049febf6"
version = "0.56.2"
version = "0.56.4"

[[deps.Random]]
deps = ["SHA"]
Expand Down
2 changes: 1 addition & 1 deletion julia_src/http.jl
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ function reopt(req::HTTP.Request)
:size_class, :electric_efficiency_half_load, :thermal_efficiency_half_load,
:macrs_option_years, :macrs_bonus_fraction, :federal_itc_fraction
]
chp_dict = Dict(key=>getfield(model_inputs.s.chp, key) for key in inputs_with_defaults_from_julia_chp)
chp_dict = Dict(key=>getfield(model_inputs.s.chps[1], key) for key in inputs_with_defaults_from_julia_chp)
else
chp_dict = Dict()
end
Expand Down
19 changes: 19 additions & 0 deletions reoptjl/migrations/0114_chpoutputs_electric_curtailed_series_kw.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Generated by Django 4.2.26 on 2026-02-03 16:40

import django.contrib.postgres.fields
from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('reoptjl', '0113_merge_20251209_2338'),
]

operations = [
migrations.AddField(
model_name='chpoutputs',
name='electric_curtailed_series_kw',
field=django.contrib.postgres.fields.ArrayField(base_field=models.FloatField(blank=True, null=True), blank=True, default=list, help_text='Electric power curtailed time-series array [kW]', size=None),
),
]
7 changes: 7 additions & 0 deletions reoptjl/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -4939,6 +4939,13 @@ class CHPOutputs(BaseModel, models.Model):
default=list, blank=True,
help_text="Electric power serving the electric load time-series array [kW]"
)
electric_curtailed_series_kw = ArrayField(
models.FloatField(
null=True, blank=True
),
default=list, blank=True,
help_text="Electric power curtailed time-series array [kW]"
)
thermal_to_storage_series_mmbtu_per_hour = ArrayField(
models.FloatField(
null=True, blank=True
Expand Down