urbanopt-reporting 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/nightly_ci_build.yml +54 -0
- data/CHANGELOG.md +7 -0
- data/Gemfile +5 -0
- data/LICENSE.md +16 -11
- data/README.md +1 -0
- data/Rakefile +2 -37
- data/building_loads.csv +52561 -0
- data/doc_templates/LICENSE.md +16 -11
- data/doc_templates/copyright_erb.txt +22 -16
- data/doc_templates/copyright_js.txt +2 -2
- data/doc_templates/copyright_ruby.txt +2 -37
- data/lib/measures/.rubocop.yml +1 -2
- data/lib/measures/default_feature_reports/LICENSE.md +23 -18
- data/lib/measures/default_feature_reports/measure.rb +21 -59
- data/lib/measures/default_feature_reports/measure.xml +40 -45
- data/lib/measures/export_modelica_loads/LICENSE.md +23 -18
- data/lib/measures/export_modelica_loads/measure.rb +19 -54
- data/lib/measures/export_modelica_loads/measure.xml +31 -31
- data/lib/measures/export_time_series_modelica/LICENSE.md +23 -18
- data/lib/measures/export_time_series_modelica/measure.rb +2 -37
- data/lib/measures/export_time_series_modelica/measure.xml +48 -42
- data/lib/measures/export_time_series_modelica/resources/os_lib_helper_methods.rb +2 -37
- data/lib/urbanopt/reporting/default_reports/construction_cost.rb +2 -37
- data/lib/urbanopt/reporting/default_reports/date.rb +2 -37
- data/lib/urbanopt/reporting/default_reports/distributed_generation.rb +2 -37
- data/lib/urbanopt/reporting/default_reports/end_use.rb +2 -37
- data/lib/urbanopt/reporting/default_reports/end_uses.rb +2 -37
- data/lib/urbanopt/reporting/default_reports/extension.rb +2 -37
- data/lib/urbanopt/reporting/default_reports/feature_report.rb +2 -37
- data/lib/urbanopt/reporting/default_reports/generator.rb +2 -37
- data/lib/urbanopt/reporting/default_reports/location.rb +2 -37
- data/lib/urbanopt/reporting/default_reports/logger.rb +2 -37
- data/lib/urbanopt/reporting/default_reports/power_distribution.rb +2 -37
- data/lib/urbanopt/reporting/default_reports/program.rb +2 -37
- data/lib/urbanopt/reporting/default_reports/qaqc_flags.rb +9 -44
- data/lib/urbanopt/reporting/default_reports/reporting_period.rb +6 -41
- data/lib/urbanopt/reporting/default_reports/scenario_power_distribution.rb +2 -37
- data/lib/urbanopt/reporting/default_reports/scenario_power_distribution_cost.rb +5 -40
- data/lib/urbanopt/reporting/default_reports/scenario_report.rb +2 -37
- data/lib/urbanopt/reporting/default_reports/solar_pv.rb +2 -37
- data/lib/urbanopt/reporting/default_reports/storage.rb +2 -37
- data/lib/urbanopt/reporting/default_reports/thermal_storage.rb +2 -37
- data/lib/urbanopt/reporting/default_reports/timeseries_csv.rb +2 -37
- data/lib/urbanopt/reporting/default_reports/validator.rb +2 -37
- data/lib/urbanopt/reporting/default_reports/wind.rb +2 -37
- data/lib/urbanopt/reporting/default_reports.rb +2 -37
- data/lib/urbanopt/reporting/derived_extension.rb +2 -37
- data/lib/urbanopt/reporting/version.rb +3 -38
- data/lib/urbanopt/reporting.rb +2 -37
- data/urbanopt-reporting-gem.gemspec +3 -3
- metadata +12 -11
- data/.github/workflows/nightly_build.yml +0 -41
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83fdc78e1b3036f33836c8770343ea0e09fead495ede8a83f604cf1adc6ae860
|
4
|
+
data.tar.gz: df8e4d44d24580c7072c86466bcc83211dbe322ad3c2089725c590ef61d91784
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7fcf95c3b4e5010075792af9370c911ee7998a6f2bb5a02052fb193613870afa6435266c422b8b985acf6b9fd53c9f49776b3ecf595576777d9085b964b2367
|
7
|
+
data.tar.gz: e928a1bcf15fee8703fd48ccd7c4a8e6b165ec4a1276f18665954e6bd17f598858a8d584397ccc058a8a1b86b4db8f544b812da2dd80d8a97bb9d5e4f2fdf7d8
|
@@ -0,0 +1,54 @@
|
|
1
|
+
name: nightly_ci_build
|
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
|
+
|
10
|
+
env:
|
11
|
+
# This env var should enforce develop branch of all dependencies
|
12
|
+
FAVOR_LOCAL_GEMS: true
|
13
|
+
GEM_DEVELOPER_KEY: ${{ secrets.GEM_DEVELOPER_KEY }}
|
14
|
+
|
15
|
+
jobs:
|
16
|
+
weeknight-tests:
|
17
|
+
runs-on: ubuntu-latest
|
18
|
+
container:
|
19
|
+
image: docker://nrel/openstudio:3.6.1
|
20
|
+
steps:
|
21
|
+
- uses: actions/checkout@v3
|
22
|
+
- name: Update gems
|
23
|
+
run: |
|
24
|
+
ruby --version
|
25
|
+
bundle update
|
26
|
+
- name: List OpenStudio measures
|
27
|
+
continue-on-error: true
|
28
|
+
run: bundle exec rake openstudio:list_measures
|
29
|
+
- name: Update OpenStudio measures
|
30
|
+
continue-on-error: true
|
31
|
+
run: bundle exec rake openstudio:update_measures
|
32
|
+
- name: Test OpenStudio measures
|
33
|
+
continue-on-error: true
|
34
|
+
run: bundle exec rake openstudio:test_with_openstudio
|
35
|
+
- name: Run Rspec
|
36
|
+
continue-on-error: true
|
37
|
+
# Continue to upload step even if a test fails, so we can troubleshoot
|
38
|
+
run: bundle exec rspec
|
39
|
+
- name: Upload artifacts
|
40
|
+
uses: actions/upload-artifact@v3
|
41
|
+
# Only upload if tests fail
|
42
|
+
if: ${{ failure() }}
|
43
|
+
with:
|
44
|
+
name: rspec_results
|
45
|
+
path: |
|
46
|
+
spec/**
|
47
|
+
# coverage/
|
48
|
+
retention-days: 7 # save for 1 week before deleting
|
49
|
+
- name: Coveralls
|
50
|
+
# coveralls action docs: https://github.com/marketplace/actions/coveralls-github-action
|
51
|
+
uses: coverallsapp/github-action@v2
|
52
|
+
with:
|
53
|
+
github-token: ${{ secrets.GITHUB_TOKEN }}
|
54
|
+
path-to-lcov: "./coverage/lcov/urbanopt-reporting-gem.lcov"
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# URBANopt Reporting Gem
|
2
2
|
|
3
|
+
## Version 0.8.0
|
4
|
+
Date Range: 12/12/22 - 6/30/23
|
5
|
+
|
6
|
+
- Added the `feature_location` argument in measure.xml
|
7
|
+
- Updated dependencies & CI for OpenStudio 3.6.1
|
8
|
+
- Updated license and references to the license file
|
9
|
+
|
3
10
|
## Version 0.7.0
|
4
11
|
Date Range: 08/18/22 - 12/12/22
|
5
12
|
|
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-
|
1
|
+
URBANopt (tm), Copyright (c) 2019-2023, 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
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
OF
|
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>™</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
|
3
|
-
#
|
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'
|