Skip to content

Commit

Permalink
Allow null for Site input outdoor air temp
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill-Becker committed Sep 10, 2024
1 parent 49ec5d1 commit f8b5b63
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Generated by Django 4.0.7 on 2024-09-10 03:31

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


class Migration(migrations.Migration):

dependencies = [
('reoptjl', '0065_merge_20240910_0128'),
]

operations = [
migrations.AlterField(
model_name='siteinputs',
name='outdoor_air_temperature_degF',
field=django.contrib.postgres.fields.ArrayField(base_field=models.FloatField(blank=True, null=True), blank=True, default=list, help_text="The outdoor air (dry-bulb) temperature in degrees Fahrenheit as determined by the site's location TMY3 data from the PVWatts call or user input. This is used for GHP COP and ASHP COP and CF values based on the default or custom mapping of those.", null=True, size=None),
),
]
2 changes: 2 additions & 0 deletions reoptjl/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,9 +401,11 @@ class SiteInputs(BaseModel, models.Model):
)
outdoor_air_temperature_degF = ArrayField(
models.FloatField(
null=True,
blank=True
),
default=list,
null=True,
blank=True,
help_text=("The outdoor air (dry-bulb) temperature in degrees Fahrenheit as determined by the site's location TMY3 data from the PVWatts call or user input. This is used for GHP COP and ASHP COP and CF values based on the default or custom mapping of those.")
)
Expand Down

0 comments on commit f8b5b63

Please sign in to comment.