Skip to content

Commit

Permalink
Fix default for new input to false
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill-Becker committed Oct 29, 2024
1 parent 4d09775 commit f6e5910
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Generated by Django 4.0.7 on 2024-10-29 04:04

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('reoptjl', '0073_domestichotwaterloadinputs_year_and_more'),
]

operations = [
migrations.AlterField(
model_name='domestichotwaterloadinputs',
name='normalize_and_scale_load_profile_input',
field=models.BooleanField(blank=True, default=False, help_text='Takes the input fuel_loads_mmbtu_per_hour and normalizes and scales it to annual or monthly energy inputs.'),
),
migrations.AlterField(
model_name='electricloadinputs',
name='normalize_and_scale_load_profile_input',
field=models.BooleanField(blank=True, default=False, help_text='Takes the input loads_kw and normalizes and scales it to annual or monthly energy inputs.'),
),
migrations.AlterField(
model_name='processheatloadinputs',
name='normalize_and_scale_load_profile_input',
field=models.BooleanField(blank=True, default=False, help_text='Takes the input fuel_loads_mmbtu_per_hour and normalizes and scales it to annual or monthly energy inputs.'),
),
migrations.AlterField(
model_name='spaceheatingloadinputs',
name='normalize_and_scale_load_profile_input',
field=models.BooleanField(blank=True, default=False, help_text='Takes the input fuel_loads_mmbtu_per_hour and normalizes and scales it to annual or monthly energy inputs.'),
),
]
10 changes: 5 additions & 5 deletions reoptjl/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1246,7 +1246,7 @@ class ElectricLoadInputs(BaseModel, models.Model):
)
normalize_and_scale_load_profile_input = models.BooleanField(
blank=True,
default=True,
default=False,
help_text=("Takes the input loads_kw and normalizes and scales it to annual or monthly energy inputs.")
)
critical_loads_kw = ArrayField(
Expand Down Expand Up @@ -6903,7 +6903,7 @@ class SpaceHeatingLoadInputs(BaseModel, models.Model):

normalize_and_scale_load_profile_input = models.BooleanField(
blank=True,
default=True,
default=False,
help_text=("Takes the input fuel_loads_mmbtu_per_hour and normalizes and scales it to annual or monthly energy inputs.")
)

Expand Down Expand Up @@ -7083,7 +7083,7 @@ class DomesticHotWaterLoadInputs(BaseModel, models.Model):

normalize_and_scale_load_profile_input = models.BooleanField(
blank=True,
default=True,
default=False,
help_text=("Takes the input fuel_loads_mmbtu_per_hour and normalizes and scales it to annual or monthly energy inputs.")
)

Expand Down Expand Up @@ -7256,10 +7256,10 @@ class ProcessHeatLoadInputs(BaseModel, models.Model):

normalize_and_scale_load_profile_input = models.BooleanField(
blank=True,
default=True,
default=False,
help_text=("Takes the input fuel_loads_mmbtu_per_hour and normalizes and scales it to annual or monthly energy inputs.")
)

year = models.IntegerField(
default=2022,
validators=[
Expand Down

0 comments on commit f6e5910

Please sign in to comment.