-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #622 from NREL/norm-scale-load
Normalize and Scale Load Profiles
- Loading branch information
Showing
10 changed files
with
537 additions
and
283 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
...ename_industry_reference_name_processheatloadinputs_industrial_reference_name_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Generated by Django 4.0.7 on 2024-10-27 04:32 | ||
|
||
import django.contrib.postgres.fields | ||
import django.core.validators | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('reoptjl', '0070_merge_20240925_0600'), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameField( | ||
model_name='processheatloadinputs', | ||
old_name='industry_reference_name', | ||
new_name='industrial_reference_name', | ||
), | ||
migrations.RemoveField( | ||
model_name='processheatloadinputs', | ||
name='blended_industry_reference_names', | ||
), | ||
migrations.RemoveField( | ||
model_name='processheatloadinputs', | ||
name='blended_industry_reference_percents', | ||
), | ||
migrations.AddField( | ||
model_name='processheatloadinputs', | ||
name='blended_industrial_reference_names', | ||
field=django.contrib.postgres.fields.ArrayField(base_field=models.TextField(blank=True, choices=[('Chemical', 'Chemical'), ('Warehouse', 'Warehouse'), ('FlatLoad', 'Flatload'), ('FlatLoad_24_5', 'Flatload 24 5'), ('FlatLoad_16_7', 'Flatload 16 7'), ('FlatLoad_16_5', 'Flatload 16 5'), ('FlatLoad_8_7', 'Flatload 8 7'), ('FlatLoad_8_5', 'Flatload 8 5')], null=True), blank=True, default=list, help_text='Used in concert with blended_industrial_reference_percents to create a blended load profile from multiple Industrial reference facility/sector types.', size=None), | ||
), | ||
migrations.AddField( | ||
model_name='processheatloadinputs', | ||
name='blended_industrial_reference_percents', | ||
field=django.contrib.postgres.fields.ArrayField(base_field=models.FloatField(blank=True, null=True, validators=[django.core.validators.MinValueValidator(0), django.core.validators.MaxValueValidator(1.0)]), blank=True, default=list, help_text='Used in concert with blended_industrial_reference_names to create a blended load profile from multiple Industrial reference facility/sector types. Must sum to 1.0.', size=None), | ||
), | ||
] |
33 changes: 33 additions & 0 deletions
33
...ations/0072_domestichotwaterloadinputs_normalize_and_scale_load_profile_input_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Generated by Django 4.0.7 on 2024-10-27 04:45 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('reoptjl', '0071_rename_industry_reference_name_processheatloadinputs_industrial_reference_name_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='domestichotwaterloadinputs', | ||
name='normalize_and_scale_load_profile_input', | ||
field=models.BooleanField(blank=True, default=True, help_text='Takes the input fuel_loads_mmbtu_per_hour and normalizes and scales it to annual or monthly energy inputs.'), | ||
), | ||
migrations.AddField( | ||
model_name='electricloadinputs', | ||
name='normalize_and_scale_load_profile_input', | ||
field=models.BooleanField(blank=True, default=True, help_text='Takes the input loads_kw and normalizes and scales it to annual or monthly energy inputs.'), | ||
), | ||
migrations.AddField( | ||
model_name='processheatloadinputs', | ||
name='normalize_and_scale_load_profile_input', | ||
field=models.BooleanField(blank=True, default=True, help_text='Takes the input fuel_loads_mmbtu_per_hour and normalizes and scales it to annual or monthly energy inputs.'), | ||
), | ||
migrations.AddField( | ||
model_name='spaceheatingloadinputs', | ||
name='normalize_and_scale_load_profile_input', | ||
field=models.BooleanField(blank=True, default=True, help_text='Takes the input fuel_loads_mmbtu_per_hour and normalizes and scales it to annual or monthly energy inputs.'), | ||
), | ||
] |
29 changes: 29 additions & 0 deletions
29
reoptjl/migrations/0073_domestichotwaterloadinputs_year_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Generated by Django 4.0.7 on 2024-10-28 20:15 | ||
|
||
import django.core.validators | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('reoptjl', '0072_domestichotwaterloadinputs_normalize_and_scale_load_profile_input_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='domestichotwaterloadinputs', | ||
name='year', | ||
field=models.IntegerField(blank=True, default=2022, help_text="Year of Custom Load Profile. If a custom load profile is uploaded via the fuel_loads_mmbtu_per_hour parameter, it is important that this year correlates with the electric load profile so that weekdays/weekends are determined correctly for the utility rate tariff. If a DOE Reference Building profile (aka 'simulated' profile) is used, the year is set to 2017 since the DOE profiles start on a Sunday.", null=True, validators=[django.core.validators.MinValueValidator(1), django.core.validators.MaxValueValidator(9999)]), | ||
), | ||
migrations.AddField( | ||
model_name='processheatloadinputs', | ||
name='year', | ||
field=models.IntegerField(blank=True, default=2022, help_text="Year of Custom Load Profile. If a custom load profile is uploaded via the fuel_loads_mmbtu_per_hour parameter, it is important that this year correlates with the electric load profile so that weekdays/weekends are determined correctly for the utility rate tariff. If a DOE Reference Building profile (aka 'simulated' profile) is used, the year is set to 2017 since the DOE profiles start on a Sunday.", null=True, validators=[django.core.validators.MinValueValidator(1), django.core.validators.MaxValueValidator(9999)]), | ||
), | ||
migrations.AddField( | ||
model_name='spaceheatingloadinputs', | ||
name='year', | ||
field=models.IntegerField(blank=True, default=2022, help_text="Year of Custom Load Profile. If a custom load profile is uploaded via the fuel_loads_mmbtu_per_hour parameter, it is important that this year correlates with the electric load profile so that weekdays/weekends are determined correctly for the utility rate tariff. If a DOE Reference Building profile (aka 'simulated' profile) is used, the year is set to 2017 since the DOE profiles start on a Sunday.", null=True, validators=[django.core.validators.MinValueValidator(1), django.core.validators.MaxValueValidator(9999)]), | ||
), | ||
] |
33 changes: 33 additions & 0 deletions
33
.../0074_alter_domestichotwaterloadinputs_normalize_and_scale_load_profile_input_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.