-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
55 changed files
with
3,848 additions
and
187 deletions.
There are no files selected for viewing
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
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
26 changes: 26 additions & 0 deletions
26
src/mmw/apps/modeling/migrations/0030_custom_weather_dataset.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,26 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.29 on 2020-03-24 19:52 | ||
from __future__ import unicode_literals | ||
|
||
import apps.modeling.models | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('modeling', '0029_project_on_delete'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='project', | ||
name='custom_weather_dataset', | ||
field=models.FileField(help_text='Reference path of the uploaded file.', null=True, upload_to=apps.modeling.models.project_filename), | ||
), | ||
migrations.AddField( | ||
model_name='project', | ||
name='uses_custom_weather', | ||
field=models.BooleanField(default=False, help_text='Whether or not this project currently uses a custom weather dataset. If true, requires a non-NULL value for custom_weather_dataset.'), | ||
), | ||
] |
31 changes: 31 additions & 0 deletions
31
src/mmw/apps/modeling/migrations/0031_scenario_add_weather_fields.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,31 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.29 on 2020-04-21 02:19 | ||
from __future__ import unicode_literals | ||
|
||
import apps.modeling.models | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('modeling', '0030_custom_weather_dataset'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='scenario', | ||
name='weather_type', | ||
field=models.CharField(choices=[('DEFAULT', 'DEFAULT'), ('SIMULATION', 'SIMULATION'), ('CUSTOM', 'CUSTOM')], default='DEFAULT', help_text='The source of weather data for this scenario. Only applies to GWLF-E scenarios.', max_length=255), | ||
), | ||
migrations.AddField( | ||
model_name='scenario', | ||
name='weather_simulation', | ||
field=models.CharField(help_text='Identifier of the weather simulation to use.', max_length=255, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='scenario', | ||
name='weather_custom', | ||
field=models.FileField(help_text='Reference path of the custom weather file.', null=True, upload_to=apps.modeling.models.scenario_filename), | ||
), | ||
] |
23 changes: 23 additions & 0 deletions
23
src/mmw/apps/modeling/migrations/0032_project_remove_weather_fields.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,23 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.29 on 2020-04-21 04:42 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('modeling', '0031_scenario_add_weather_fields'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='project', | ||
name='custom_weather_dataset', | ||
), | ||
migrations.RemoveField( | ||
model_name='project', | ||
name='uses_custom_weather', | ||
), | ||
] |
Oops, something went wrong.