New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove residential default workflow generator #370
Conversation
Minimum allowed coverage is Generated by 🐒 cobertura-action against 282eeb4 |
- `ResStock National Baseline <https://github.com/NREL/resstock/blob/develop/project_national/national_baseline.yml>`_ | ||
- `ResStock National with Upgrades <https://github.com/NREL/resstock/blob/develop/project_national/national_upgrades.yml>`_ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@classmethod | ||
def validate_output_directory_eagle(cls, project_file): | ||
cfg = get_project_configuration(project_file) | ||
output_dir = path_rel_to_file(project_file, cfg['output_directory']) | ||
if not (output_dir.startswith('/scratch') or output_dir.startswith('/projects')): | ||
raise ValidationError(f"`output_directory` must be in /scratch or /projects, `output_directory` = {output_dir}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added this check because I accidentally set up a run to put my outputs in /home/nmerket
. I should know better and made this mistake. This is a very common error for new people as well who aren't used to Eagle, so I made it so it won't let you try to save your outputs somewhere that doesn't make sense.
I just successfully ran a small run on Eagle to make sure I didn't break anything and it worked. |
@joseph-robertson Could you take a quick look and approve if it looks good to you? |
@@ -16,5 +16,4 @@ and documentation updates. See :doc:`changelog_0_21` for details. | |||
Schema Updates | |||
============== | |||
|
|||
Minor updates were made to the residential workflow generator. See | |||
:doc:`../workflow_generators/residential_default` for details. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to point to an older branch here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Meh. Sounds like too much trouble.
@@ -22,7 +22,7 @@ Residential HPXML Workflow Changes | |||
Two new optional arguments were added to the Residential HPXML Workflow | |||
Generator: ``timeseries_num_decimal_places`` and | |||
``include_timeseries_unmet_hours``. See | |||
:doc:`../workflow_generators/residential_default` for details about their usage. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this previously wrong?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like it. The text above is for the HPXML workflow generator, so I changed the link.
build_existing_model: | ||
simulation_control_timestep: 60 | ||
simulation_control_run_period_begin_month: 1 | ||
simulation_control_run_period_begin_day_of_month: 1.5 # intentional bad input data type for unit testing input validation | ||
simulation_control_run_period_end_month: 12 | ||
simulation_control_run_period_end_day_of_month: 31 | ||
simulation_control_run_period_calendar_year: 2007 | ||
|
||
emissions: | ||
- scenario_name: LRMER_MidCase_15 | ||
type: CO2e | ||
elec_folder: data/cambium/LRMER_MidCase_15 | ||
|
||
utility_bills: | ||
- scenario_name: Bills | ||
|
||
simulation_output_report: | ||
timeseries_frequency: huorly # intentionally misspelled for unit testing input validation | ||
include_timeseries_total_consumptions: true | ||
include_timeseries_fuel_consumptions: true | ||
include_timeseries_end_use_consumptions: true | ||
include_timeseries_emissions: true | ||
include_timeseries_emission_fuels: true | ||
include_timeseries_emission_end_uses: true | ||
include_timeseries_hot_water_uses: true | ||
include_timeseries_total_loads: true | ||
include_timeseries_component_loads: true | ||
include_timeseries_unmet_hours: true | ||
include_timeseries_zone_temperatures: true | ||
include_timeseries_airflows: true | ||
include_timeseries_weather: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like you could probably (based on what you're testing) trim a lot of this as it may have no bearing on the actual test... (same comment for test ymls below)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True. I wasn't sure what that should be so I left it with what works. You're welcome to trim it down, or I'm happy to leave it as is.
spell validator correctly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making all these updates/changes!
Pull Request Description
Remove the residential default workflow generator and modifies tests to continue to work. Also some cleanup of other unnecessary files.
Checklist
Not all may apply
minimum_coverage
in.github/workflows/ci.yml
as necessary.