Skip to content

Commit c63242c

Browse files
committed
Increase max value of monthly_totals_kwh by 10x
1 parent 14f9e8f commit c63242c

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Generated by Django 4.2.26 on 2025-12-01 23:45
2+
3+
import django.contrib.postgres.fields
4+
import django.core.validators
5+
from django.db import migrations, models
6+
7+
8+
class Migration(migrations.Migration):
9+
10+
dependencies = [
11+
('reoptjl', '0110_electricloadinputs_monthly_peaks_kw_and_more'),
12+
]
13+
14+
operations = [
15+
migrations.AlterField(
16+
model_name='electricloadinputs',
17+
name='monthly_totals_kwh',
18+
field=django.contrib.postgres.fields.ArrayField(base_field=models.FloatField(blank=True, validators=[django.core.validators.MinValueValidator(0), django.core.validators.MaxValueValidator(1000000000.0)]), blank=True, default=list, help_text="Monthly site energy consumption (an array 12 entries long), in kWh, used to scale either loads_kw series (with normalize_and_scale_load_profile_input) or the simulated default building load profile for the site's climate zone", size=None),
19+
),
20+
]

reoptjl/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1382,7 +1382,7 @@ class ElectricLoadInputs(BaseModel, models.Model):
13821382
models.FloatField(
13831383
validators=[
13841384
MinValueValidator(0),
1385-
MaxValueValidator(1.0e8)
1385+
MaxValueValidator(1.0e9)
13861386
],
13871387
blank=True
13881388
),

0 commit comments

Comments
 (0)