urbanopt-reporting 0.7.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/nightly_ci_build.yml +57 -0
  3. data/CHANGELOG.md +17 -0
  4. data/CONTRIBUTING.md +2 -2
  5. data/Gemfile +5 -0
  6. data/LICENSE.md +16 -11
  7. data/README.md +1 -0
  8. data/Rakefile +2 -37
  9. data/building_loads.csv +52561 -0
  10. data/doc_templates/LICENSE.md +16 -11
  11. data/doc_templates/copyright_erb.txt +22 -16
  12. data/doc_templates/copyright_js.txt +2 -2
  13. data/doc_templates/copyright_ruby.txt +2 -37
  14. data/docs/package-lock.json +3992 -3566
  15. data/lib/measures/.rubocop.yml +1 -2
  16. data/lib/measures/default_feature_reports/LICENSE.md +23 -18
  17. data/lib/measures/default_feature_reports/README.md +43 -5
  18. data/lib/measures/default_feature_reports/measure.rb +21 -59
  19. data/lib/measures/default_feature_reports/measure.xml +38 -46
  20. data/lib/measures/export_modelica_loads/LICENSE.md +23 -18
  21. data/lib/measures/export_modelica_loads/measure.rb +25 -64
  22. data/lib/measures/export_modelica_loads/measure.xml +31 -31
  23. data/lib/measures/export_time_series_modelica/LICENSE.md +23 -18
  24. data/lib/measures/export_time_series_modelica/measure.rb +2 -37
  25. data/lib/measures/export_time_series_modelica/measure.xml +48 -42
  26. data/lib/measures/export_time_series_modelica/resources/os_lib_helper_methods.rb +2 -37
  27. data/lib/urbanopt/reporting/default_reports/construction_cost.rb +2 -37
  28. data/lib/urbanopt/reporting/default_reports/date.rb +2 -37
  29. data/lib/urbanopt/reporting/default_reports/distributed_generation.rb +2 -37
  30. data/lib/urbanopt/reporting/default_reports/end_use.rb +2 -37
  31. data/lib/urbanopt/reporting/default_reports/end_uses.rb +2 -37
  32. data/lib/urbanopt/reporting/default_reports/extension.rb +2 -37
  33. data/lib/urbanopt/reporting/default_reports/feature_report.rb +2 -37
  34. data/lib/urbanopt/reporting/default_reports/generator.rb +2 -37
  35. data/lib/urbanopt/reporting/default_reports/location.rb +2 -37
  36. data/lib/urbanopt/reporting/default_reports/logger.rb +2 -37
  37. data/lib/urbanopt/reporting/default_reports/power_distribution.rb +10 -38
  38. data/lib/urbanopt/reporting/default_reports/program.rb +2 -37
  39. data/lib/urbanopt/reporting/default_reports/qaqc_flags.rb +9 -44
  40. data/lib/urbanopt/reporting/default_reports/reporting_period.rb +6 -41
  41. data/lib/urbanopt/reporting/default_reports/scenario_power_distribution.rb +2 -37
  42. data/lib/urbanopt/reporting/default_reports/scenario_power_distribution_cost.rb +5 -40
  43. data/lib/urbanopt/reporting/default_reports/scenario_report.rb +2 -37
  44. data/lib/urbanopt/reporting/default_reports/schema/scenario_schema.json +1543 -1515
  45. data/lib/urbanopt/reporting/default_reports/solar_pv.rb +2 -37
  46. data/lib/urbanopt/reporting/default_reports/storage.rb +2 -37
  47. data/lib/urbanopt/reporting/default_reports/thermal_storage.rb +2 -37
  48. data/lib/urbanopt/reporting/default_reports/timeseries_csv.rb +2 -37
  49. data/lib/urbanopt/reporting/default_reports/validator.rb +2 -37
  50. data/lib/urbanopt/reporting/default_reports/wind.rb +2 -37
  51. data/lib/urbanopt/reporting/default_reports.rb +2 -37
  52. data/lib/urbanopt/reporting/derived_extension.rb +2 -37
  53. data/lib/urbanopt/reporting/version.rb +3 -38
  54. data/lib/urbanopt/reporting.rb +2 -37
  55. data/urbanopt-reporting-gem.gemspec +5 -5
  56. metadata +16 -16
  57. data/.github/workflows/nightly_build.yml +0 -41
  58. data/Jenkinsfile +0 -10
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 186e2233b38a2f167fadd907eb6d768a589ca55dfc0a11e238b363bbc9574c27
4
- data.tar.gz: 5cdb0f89a17ea078ef7ed61ed5710892ae956620a5370fe140fd4c8107ab73e8
3
+ metadata.gz: 7202d1f41d43e8788757199c40ca519942526d3fb5ce72a081a9196c811cd91e
4
+ data.tar.gz: 7d697016022f30fba74f8e6cccd8d978052c449fc4c779a8b26e3bdef8706c9d
5
5
  SHA512:
6
- metadata.gz: 2bce9e36d7098ceb88b559d01b4e2eeeb5a30b78c0cacfd476a9501592df3b65b2d9807c45203fb3b2bccb53b3e8334e35acd362f5c848ac089635ce3f9ff932
7
- data.tar.gz: 218468f4c8beb0b2dc4c4afa7ef4b7e05410d42bf7898236e58de93048f32c1b3be290a47260bd7d457811821562223e3fbd49845cb77334c5a7e3a9a256bdea
6
+ metadata.gz: f5d06d6fc0ee6790cc483eeb7fcf50c0538a38b1ae02aa3ea861af9385a2697b65e9035cc204f6b1b9371d39fff9a848e51e7de4ca3ded9bc32061f6e312ab5d
7
+ data.tar.gz: fc2c98f9bd05244a6d323c473f49602a9be217e61f2fbacf3b84a591017c9ad4409dc02e9d44e934994e0f0a4b642ad401297aca6f18da9b6afb9903a9377eb3
@@ -0,0 +1,57 @@
1
+ name: Reporting-gem CI
2
+
3
+ on:
4
+ # push:
5
+ schedule:
6
+ # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
7
+ # 5 am UTC (11pm MDT the day before) every weekday night in MDT
8
+ - cron: '22 5 * * 2-6'
9
+ pull_request:
10
+ types: [review_requested]
11
+
12
+ env:
13
+ # This env var should enforce develop branch of all dependencies
14
+ FAVOR_LOCAL_GEMS: true
15
+ GEM_DEVELOPER_KEY: ${{ secrets.GEM_DEVELOPER_KEY }}
16
+ # Enforce language so openstudio doesn't get confused
17
+ LANG: "C.UTF-8"
18
+
19
+ jobs:
20
+ weeknight-tests:
21
+ runs-on: ubuntu-latest
22
+ container:
23
+ image: docker://nrel/openstudio:3.7.0
24
+ steps:
25
+ - uses: actions/checkout@v4
26
+ - name: set git config options
27
+ shell: bash
28
+ run: |
29
+ git config --global --add safe.directory '*'
30
+ - name: Update gems
31
+ run: |
32
+ ruby --version
33
+ bundle update
34
+ - name: List OpenStudio measures
35
+ run: bundle exec rake openstudio:list_measures
36
+ - name: Update OpenStudio measures
37
+ run: bundle exec rake openstudio:update_measures
38
+ - name: Test OpenStudio measures
39
+ run: bundle exec rake openstudio:test_with_openstudio
40
+ - name: Run Rspec
41
+ run: bundle exec rspec
42
+ - name: Upload artifacts
43
+ uses: actions/upload-artifact@v4
44
+ # Only upload if tests fail
45
+ if: ${{ failure() }}
46
+ with:
47
+ name: rspec_results
48
+ path: |
49
+ spec/**
50
+ # coverage/
51
+ retention-days: 7 # If we haven't dealt with an error in a week, fuhgeddaboutit
52
+ - name: Coveralls
53
+ # coveralls action docs: https://github.com/marketplace/actions/coveralls-github-action
54
+ uses: coverallsapp/github-action@v2
55
+ with:
56
+ github-token: ${{ secrets.GITHUB_TOKEN }}
57
+ path-to-lcov: "./coverage/lcov/urbanopt-reporting-gem.lcov"
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # URBANopt Reporting Gem
2
2
 
3
+ ## Version 0.9.0
4
+ Date Range: 6/30/23 - 01/09/24
5
+
6
+ * Support OpenStudio 3.7 by @vtnate in https://github.com/urbanopt/urbanopt-reporting-gem/pull/142
7
+ * add tx incoming and outgoing voltages to power distribution reporting by @vtnate in https://github.com/urbanopt/urbanopt-reporting-gem/pull/138
8
+ * fix schema typos and errors by @vtnate in https://github.com/urbanopt/urbanopt-reporting-gem/pull/140
9
+ * remove Jenkinsfile by @vtnate in https://github.com/urbanopt/urbanopt-reporting-gem/pull/139
10
+ * trigger CI on PR review_request by @vtnate in https://github.com/urbanopt/urbanopt-reporting-gem/pull/141
11
+ * Update export modelica loads by @vtnate in https://github.com/urbanopt/urbanopt-reporting-gem/pull/143
12
+
13
+ ## Version 0.8.0
14
+ Date Range: 12/12/22 - 6/30/23
15
+
16
+ - Added the `feature_location` argument in measure.xml
17
+ - Updated dependencies & CI for OpenStudio 3.6.1
18
+ - Updated license and references to the license file
19
+
3
20
  ## Version 0.7.0
4
21
  Date Range: 08/18/22 - 12/12/22
5
22
 
data/CONTRIBUTING.md CHANGED
@@ -8,7 +8,7 @@ The contribution process for URBANopt is composed of three steps:
8
8
 
9
9
  ## 1. Send consent email
10
10
 
11
- In order for us to distribute your code as part of URBANopt under the URBANopt SDK [license](https://github.com/urbanopt/urbanopt-scenario-gem/blob/develop/LICENSE.md), we’ll need your consent. An email acknowledging your understanding of these terms and agreeing to them is all that will be asked of any contributor. Send an email to the URBANopt project manager ([see below](#documentation) for the address) including the following text and a list of co-contributors (if any):
11
+ In order for us to distribute your code as part of URBANopt under the URBANopt SDK [license](https://github.com/urbanopt/urbanopt-reporting-gem/blob/develop/LICENSE.md), we’ll need your consent. An email acknowledging your understanding of these terms and agreeing to them is all that will be asked of any contributor. Send an email to the URBANopt project manager ([see below](#documentation) for the address) including the following text and a list of co-contributors (if any):
12
12
 
13
13
  *I agree to contribute to the URBANopt SDK. I agree to the following terms and conditions for my contributions: First, I agree that I am licensing the copyright to my contributions under the terms of the current URBANopt SDK license. Second, I hereby grant to Alliance for Sustainable Energy, LLC, to any successor manager and distributor of URBANopt SDK appointed by the U.S. Department of Energy, and to all recipients of a version of URBANopt SDK that includes my contributions, a non-exclusive, worldwide, royalty-free, irrevocable patent license under any patent claims owned by me, or owned by my employer and known to me, that are or will be,necessarily infringed upon by my contributions alone, or by combination of my contributions with the version of URBANopt SDK to which they are contributed, to make, have made, use, offer to sell, sell, import, and otherwise transfer any version of URBANopt SDK that includes my contributions, in source code and object code form. Third, I represent and warrant that I am authorized to make the contributions and grant the foregoing license(s). Additionally, if, to my knowledge, my employer has rights to intellectual property that covers my contributions, I represent and warrant that I have received permission to make these contributions and grant the foregoing license(s) on behalf of my employer.*
14
14
 
@@ -16,7 +16,7 @@ Once we have your consent on file, you’ll only need to redo it if conditions c
16
16
 
17
17
  ## 2. Scope agreement and timeline commitment
18
18
 
19
- If your contribution is small (e.g. a bug fix), simply submit your contribution via GitHub. If you find a bug, first make sure it is not an already known issue, then report it in the GitHub [issue tracker](https://github.com/urbanopt/urbanopt-scenario-gem/issues) for this repository. If your contribution is larger (e.g. a new feature or new functionality/capability), we’ll need to evaluate your proposed contribution first. We may ask you to revise your materials and make changes to it, which we will then re-review.
19
+ If your contribution is small (e.g. a bug fix), simply submit your contribution via GitHub. If you find a bug, first make sure it is not an already known issue, then report it in the GitHub [issue tracker](https://github.com/urbanopt/urbanopt-reporting-gem/issues) for this repository. If your contribution is larger (e.g. a new feature or new functionality/capability), we’ll need to evaluate your proposed contribution first. We may ask you to revise your materials and make changes to it, which we will then re-review.
20
20
 
21
21
  ## 3. Technical contribution process
22
22
 
data/Gemfile CHANGED
@@ -11,6 +11,11 @@ gemspec
11
11
  # checkout the latest version (develop) from github.
12
12
  allow_local = ENV['FAVOR_LOCAL_GEMS']
13
13
 
14
+ # pin this dependency to avoid unicode_normalize error
15
+ gem 'addressable', '2.8.1'
16
+ # pin this dependency to avoid using racc dependency (which has native extensions)
17
+ gem 'parser', '3.2.2.2'
18
+
14
19
  # if allow_local && File.exist?('../openstudio-extension-gem')
15
20
  # gem 'openstudio-extension', path: '../openstudio-extension-gem'
16
21
  # elsif allow_local
data/LICENSE.md CHANGED
@@ -1,4 +1,4 @@
1
- URBANopt (tm), Copyright (c) 2019-2022, Alliance for Sustainable Energy, LLC, and other
1
+ URBANopt (tm), Copyright (c) 2019-2024, Alliance for Sustainable Energy, LLC, and other
2
2
  contributors. All rights reserved.
3
3
 
4
4
  Redistribution and use in source and binary forms, with or without modification,
@@ -15,13 +15,18 @@ Neither the name of the copyright holder nor the names of its contributors may b
15
15
  used to endorse or promote products derived from this software without specific
16
16
  prior written permission.
17
17
 
18
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
22
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
23
- BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24
- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
25
- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
26
- OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
27
- OF THE POSSIBILITY OF SUCH DAMAGE.
18
+ The name of the copyright holder(s), any contributors, the United States Government,
19
+ the United States Department of Energy, or any of their employees may not be used to
20
+ endorse or promote products derived from this software without specific prior written
21
+ permission from the respective party.
22
+
23
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) AND ANY CONTRIBUTORS "AS IS" AND
24
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
25
+ OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
26
+ THE COPYRIGHT HOLDER(S), ANY CONTRIBUTORS, THE UNITED STATES GOVERNMENT, OR THE UNITED
27
+ STATES DEPARTMENT OF ENERGY, NOR ANY OF THEIR EMPLOYEES, BE LIABLE FOR ANY DIRECT,
28
+ INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
29
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
30
+ OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
31
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
32
+ WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # URBANopt Reporting Gem
2
2
 
3
3
  [![Coverage Status](https://coveralls.io/repos/github/urbanopt/urbanopt-reporting-gem/badge.svg?branch=develop)](https://coveralls.io/github/urbanopt/urbanopt-reporting-gem?branch=develop)
4
+ [![nightly_ci_build](https://github.com/urbanopt/urbanopt-reporting-gem/actions/workflows/nightly_ci_build.yml/badge.svg)](https://github.com/urbanopt/urbanopt-reporting-gem/actions/workflows/nightly_ci_build.yml)
4
5
 
5
6
  The URBANopt<sup>&trade;</sup> Reporting Gem defines the URABNopt reports (Scenario and Feature reports). It also includes the default reporting measure which query results from the energyplus sql database and reports it in the Feature reports.
6
7
 
data/Rakefile CHANGED
@@ -1,41 +1,6 @@
1
1
  # *********************************************************************************
2
- # URBANopt™, Copyright (c) 2019-2021, Alliance for Sustainable Energy, LLC, and other
3
- # contributors. All rights reserved.
4
-
5
- # Redistribution and use in source and binary forms, with or without modification,
6
- # are permitted provided that the following conditions are met:
7
-
8
- # Redistributions of source code must retain the above copyright notice, this list
9
- # of conditions and the following disclaimer.
10
-
11
- # Redistributions in binary form must reproduce the above copyright notice, this
12
- # list of conditions and the following disclaimer in the documentation and/or other
13
- # materials provided with the distribution.
14
-
15
- # Neither the name of the copyright holder nor the names of its contributors may be
16
- # used to endorse or promote products derived from this software without specific
17
- # prior written permission.
18
-
19
- # Redistribution of this software, without modification, must refer to the software
20
- # by the same designation. Redistribution of a modified version of this software
21
- # (i) may not refer to the modified version by the same designation, or by any
22
- # confusingly similar designation, and (ii) must refer to the underlying software
23
- # originally provided by Alliance as “URBANopt”. Except to comply with the foregoing,
24
- # the term “URBANopt”, or any confusingly similar designation may not be used to
25
- # refer to any modified version of this software or any modified version of the
26
- # underlying software originally provided by Alliance without the prior written
27
- # consent of Alliance.
28
-
29
- # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
30
- # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
31
- # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
32
- # IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
33
- # INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
34
- # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
35
- # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
36
- # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
37
- # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
38
- # OF THE POSSIBILITY OF SUCH DAMAGE.
2
+ # URBANopt™, Copyright © Alliance for Sustainable Energy, LLC.
3
+ # See also https://github.com/urbanopt/urbanopt-reporting-gem/blob/develop/LICENSE.md
39
4
  # *********************************************************************************
40
5
 
41
6
  require 'bundler/gem_tasks'