-
Notifications
You must be signed in to change notification settings - Fork 58
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
RTD: instructions for OS-HPXML subtree #1330
base: develop
Are you sure you want to change the base?
Changes from 5 commits
9d2d669
c427d8c
7d8cbac
94050e3
50a9667
3086d7a
df45642
441f5e2
3d21db6
ab1a6c0
7673aeb
279f575
e2b0202
a2f13e2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
OpenStudio-HPXML | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add a new "OpenStudio-HPXML" section to the Advanced Tutorial? Currently it would have two subsections:
|
||
================ | ||
|
||
ResStock contains a `git subtree <https://www.atlassian.com/git/tutorials/git-subtree>`_ to the `OpenStudio-HPXML <https://github.com/NREL/OpenStudio-HPXML>`_ repository. | ||
The subtree is located at ``resources/hpxml-measures``, and is basically a direct copy of all the files contained in OpenStudio-HPXML. | ||
As OpenStudio-HPXML is updated, ResStock's ``develop`` branch is periodically updated to point to the ``master`` branch of OpenStudio-HPXML, helping to ensure that ResStock stays up-to-date with OpenStudio-HPXML's development. | ||
It may also be helpful to test an OpenStudio-HPXML branch using a branch of ResStock. | ||
In either case, the subtree at ``resources/hpxml-measures`` can be updated using a set of simple commands. | ||
|
||
.. _latest-os-hpxml: | ||
|
||
Syncing OpenStudio-HPXML | ||
------------------------ | ||
|
||
For updating ResStock's ``develop`` branch to point to OpenStudio-HPXML's ``master`` branch, branch off of ``develop`` (e.g., with branch name ``latest-os-hpxml``), and then enter the following command: | ||
|
||
.. code:: bash | ||
|
||
$ openstudio tasks.rb update_resources | ||
|
||
See :doc:`running_tasks` for more information and context about running tasks. | ||
|
||
.. _branch-os-hpxml: | ||
|
||
Testing OpenStudio-HPXML | ||
------------------------ | ||
|
||
For pulling in and testing a specific OpenStudio-HPXML branch, first create a test branch in ResStock. Then enter the following command: | ||
|
||
.. code:: bash | ||
|
||
$ git subtree pull --prefix resources/hpxml-measures https://github.com/NREL/OpenStudio-HPXML.git <branch_name> --squash | ||
|
||
.. _other-updates: | ||
|
||
Other Updates | ||
------------- | ||
|
||
After pulling a branch of OpenStudio-HPXML into ResStock, a few additional steps are involved: | ||
- manually edit measures/ResStockArguments/measure.rb and run ``openstudio tasks.rb update_measures`` to force the measure.xml to be regenerated | ||
- update options lookup with any new ResStockArguments arguments | ||
- address any input/output data dictionary updates at ``resources/data/dictionary`` | ||
- TODO |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,8 @@ Use ``openstudio tasks.rb update_measures`` to apply rubocop auto-correct to mea | |
Updating measure.xmls... | ||
Done. | ||
|
||
.. _update-resources: | ||
|
||
Update Resources | ||
---------------- | ||
|
||
|
@@ -81,20 +83,3 @@ Run ``openstudio tasks.rb download_weather`` to download available EPW weather f | |
Downloading /files/156/BuildStock_TMY3_FIPS.zip ( 2%) | ||
Downloading /files/156/BuildStock_TMY3_FIPS.zip ( 3%) | ||
... | ||
|
||
.. rakefile: | ||
|
||
Rakefile | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove this assuming we've taken out the installer setup section. |
||
-------- | ||
|
||
Once you have completed instructions found in :doc:`installer_setup`, you can then use the `Rakefile <https://github.com/NREL/resstock/blob/develop/Rakefile>`_ contained at the top level of this repository. You can run rake task(s) for :ref:`performing integrity checks on project inputs <integrity-checks>` as well as executing various tests. | ||
|
||
Run ``rake -T`` to see the list of possible rake tasks. The ``-T`` is replaced with the chosen task. | ||
|
||
.. code:: bash | ||
|
||
$ rake -T | ||
rake unit_tests:integrity_check_tests # Run tests for integrity_check_t... | ||
rake unit_tests:measure_tests # Run tests for measure_tests | ||
rake unit_tests:project_integrity_checks # Run tests for project_integrity... | ||
rake workflow:analysis_tests # Run tests for analysis_tests |
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.
Removing installer setup. Does anyone actually need/use this? Seems like we only need the OS CLI...