urbanopt-scenario 0.7.0 → 0.9.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_build.yml +40 -0
- data/CHANGELOG.md +31 -1
- data/Gemfile +2 -2
- data/LICENSE.md +1 -3
- data/README.md +5 -3
- data/doc_templates/LICENSE.md +37 -0
- data/doc_templates/README.md.erb +42 -0
- data/doc_templates/copyright_erb.txt +41 -0
- data/doc_templates/copyright_js.txt +4 -0
- data/doc_templates/copyright_ruby.txt +39 -0
- data/docs/package-lock.json +4712 -3863
- data/docs/package.json +1 -1
- data/lib/urbanopt/scenario/default_reports.rb +1 -1
- data/lib/urbanopt/scenario/extension.rb +1 -1
- data/lib/urbanopt/scenario/logger.rb +1 -1
- data/lib/urbanopt/scenario/scenario_base.rb +1 -1
- data/lib/urbanopt/scenario/scenario_csv.rb +1 -1
- data/lib/urbanopt/scenario/scenario_datapoint_base.rb +1 -1
- data/lib/urbanopt/scenario/scenario_post_processor_base.rb +1 -1
- data/lib/urbanopt/scenario/scenario_post_processor_default.rb +1 -1
- data/lib/urbanopt/scenario/scenario_post_processor_disco.rb +159 -0
- data/lib/urbanopt/scenario/scenario_post_processor_opendss.rb +159 -4
- data/lib/urbanopt/scenario/scenario_runner_base.rb +1 -1
- data/lib/urbanopt/scenario/scenario_runner_osw.rb +1 -1
- data/lib/urbanopt/scenario/scenario_visualization.rb +24 -7
- data/lib/urbanopt/scenario/simulation_dir_base.rb +1 -1
- data/lib/urbanopt/scenario/simulation_dir_osw.rb +1 -4
- data/lib/urbanopt/scenario/simulation_mapper_base.rb +1 -1
- data/lib/urbanopt/scenario/version.rb +2 -2
- data/lib/urbanopt/scenario.rb +2 -1
- data/lib/urbanopt-scenario.rb +1 -1
- data/urbanopt-scenario-gem.gemspec +4 -11
- metadata +41 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 045ec14ad4bee6bc8f6f4e98752283e6e05984eb2065a1d010e34e4a65f2bdd8
|
4
|
+
data.tar.gz: cc078b87253bc6e07f1a250294b733502f076af6fe82abfa703c5330da421b08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26ad4b20871547310a4b5114c73563f69e2df92270dea95e0a340151e29580e09254ae91992c32790a1bf7fb1dd794ecf4b92d6a19972eb3e48bd00388c1b1f5
|
7
|
+
data.tar.gz: 03c29f502d554e30d0e8158aa95c7ba8081ae839f825797a90c3c8b057318c8f15c12044bc63f2610682d55b58200d4b5bfacd72e0b8a97b8b583a48e27355a4
|
@@ -0,0 +1,40 @@
|
|
1
|
+
|
2
|
+
name: nightly_build
|
3
|
+
|
4
|
+
on:
|
5
|
+
# push:
|
6
|
+
schedule:
|
7
|
+
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
|
8
|
+
# 5 am UTC (11pm MDT the day before) every weekday night in MDT
|
9
|
+
- cron: '21 5 * * 2-6'
|
10
|
+
|
11
|
+
# Cancels an existing job (of the same workflow) if it is still running
|
12
|
+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-only-cancel-in-progress-jobs-or-runs-for-the-current-workflow
|
13
|
+
# concurrency:
|
14
|
+
# group: ${{ github.workflow }}-${{ github.ref }}
|
15
|
+
# cancel-in-progress: true
|
16
|
+
|
17
|
+
env:
|
18
|
+
# This env var should enforce develop branch of all dependencies
|
19
|
+
FAVOR_LOCAL_GEMS: true
|
20
|
+
GEM_DEVELOPER_KEY: ${{ secrets.GEM_DEVELOPER_KEY }}
|
21
|
+
|
22
|
+
jobs:
|
23
|
+
weeknight-tests:
|
24
|
+
# Pinned to `ubuntu-20.04`. When ubuntu-latest adopts 22.04 it would break for us since 22 only supports Ruby 3.1
|
25
|
+
# https://github.com/ruby/setup-ruby#supported-platforms
|
26
|
+
runs-on: ubuntu-20.04
|
27
|
+
container:
|
28
|
+
image: docker://nrel/openstudio:3.4.0
|
29
|
+
steps:
|
30
|
+
- uses: actions/checkout@v3
|
31
|
+
- name: Update gems
|
32
|
+
run: bundle update
|
33
|
+
- name: Run Rspec
|
34
|
+
run: bundle exec rspec
|
35
|
+
# coveralls action docs: https://github.com/marketplace/actions/coveralls-github-action
|
36
|
+
- name: Coveralls
|
37
|
+
uses: coverallsapp/github-action@master
|
38
|
+
with:
|
39
|
+
github-token: ${{ secrets.GITHUB_TOKEN }}
|
40
|
+
path-to-lcov: "./coverage/lcov/urbanopt-scenario-gem.lcov"
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,35 @@
|
|
1
1
|
# URBANopt Scenario Gem
|
2
2
|
|
3
|
+
## Version 0.9.0
|
4
|
+
|
5
|
+
Date Range: 05/11/22 - 12/05/22
|
6
|
+
|
7
|
+
- Update dependencies for OpenStudio 3.5.0
|
8
|
+
- Fixed [#246]( https://github.com/urbanopt/urbanopt-scenario-gem/issues/246 ), Code coverage reporting
|
9
|
+
- Fixed [#250]( https://github.com/urbanopt/urbanopt-scenario-gem/issues/250 ), Add reports for DISCO results
|
10
|
+
- Fixed [#252]( https://github.com/urbanopt/urbanopt-scenario-gem/issues/252 ), Process QAQC flags into visualization js files
|
11
|
+
|
12
|
+
## Version 0.8.0
|
13
|
+
|
14
|
+
Date Range: 11/23/21 - 05/10/22
|
15
|
+
|
16
|
+
- Fixed [#225]( https://github.com/urbanopt/urbanopt-scenario-gem/pull/225 ), fix dependencies
|
17
|
+
- Fixed [#226]( https://github.com/urbanopt/urbanopt-scenario-gem/pull/226 ), Bump node-forge from 0.10.0 to 1.0.0 in /docs
|
18
|
+
- Fixed [#228]( https://github.com/urbanopt/urbanopt-scenario-gem/pull/228 ), expanding opendss reporting
|
19
|
+
- Fixed [#229]( https://github.com/urbanopt/urbanopt-scenario-gem/pull/229 ), Bump follow-redirects from 1.14.1 to 1.14.8 in /docs
|
20
|
+
- Fixed [#230]( https://github.com/urbanopt/urbanopt-scenario-gem/pull/230 ), Bump nanoid from 3.1.23 to 3.3.0 in /docs
|
21
|
+
- Fixed [#231]( https://github.com/urbanopt/urbanopt-scenario-gem/pull/231 ), Bump url-parse from 1.5.1 to 1.5.7 in /docs
|
22
|
+
- Fixed [#232]( https://github.com/urbanopt/urbanopt-scenario-gem/pull/232 ), remove scenario-file (as a whole) from checks to re-run datapoints
|
23
|
+
- Fixed [#233]( https://github.com/urbanopt/urbanopt-scenario-gem/pull/233 ), Bump prismjs from 1.23.0 to 1.27.0 in /docs
|
24
|
+
- Fixed [#234]( https://github.com/urbanopt/urbanopt-scenario-gem/pull/234 ), Bump url-parse from 1.5.1 to 1.5.10 in /docs
|
25
|
+
- Fixed [#235]( https://github.com/urbanopt/urbanopt-scenario-gem/pull/235 ), Renewable pct
|
26
|
+
- Fixed [#236]( https://github.com/urbanopt/urbanopt-scenario-gem/pull/236 ), Bump nanoid from 3.1.23 to 3.3.1 in /docs
|
27
|
+
- Fixed [#237]( https://github.com/urbanopt/urbanopt-scenario-gem/pull/237 ), Bump follow-redirects from 1.14.1 to 1.14.9 in /docs
|
28
|
+
- Fixed [#238]( https://github.com/urbanopt/urbanopt-scenario-gem/pull/238 ), Bump node-forge from 0.10.0 to 1.3.0 in /docs
|
29
|
+
- Fixed [#239]( https://github.com/urbanopt/urbanopt-scenario-gem/pull/239 ), Bump minimist from 1.2.5 to 1.2.6 in /docs
|
30
|
+
- Fixed [#240]( https://github.com/urbanopt/urbanopt-scenario-gem/pull/240 ), Update copyrights
|
31
|
+
- Fixed [#241]( https://github.com/urbanopt/urbanopt-scenario-gem/pull/241 ), Bump async from 2.6.3 to 2.6.4 in /docs
|
32
|
+
|
3
33
|
## Version 0.7.0
|
4
34
|
Date Range: 10/16/21 - 11/22/21:
|
5
35
|
|
@@ -164,4 +194,4 @@ Accepted Pull Requests:
|
|
164
194
|
- Fixed [#62]( https://github.com/urbanopt/urbanopt-scenario-gem/pull/62 ), Update issue templates
|
165
195
|
- Fixed [#64]( https://github.com/urbanopt/urbanopt-scenario-gem/pull/64 ), update dependency versions for security
|
166
196
|
|
167
|
-
## Version 0.1.0
|
197
|
+
## Version 0.1.0
|
data/Gemfile
CHANGED
@@ -39,9 +39,9 @@ allow_local = ENV['FAVOR_LOCAL_GEMS']
|
|
39
39
|
# end
|
40
40
|
|
41
41
|
# if allow_local && File.exist?('../urbanopt-reporting-gem')
|
42
|
-
#
|
42
|
+
# gem 'urbanopt-reporting', path: '../urbanopt-reporting-gem'
|
43
43
|
# elsif allow_local
|
44
|
-
#
|
44
|
+
# gem 'urbanopt-reporting', github: 'URBANopt/urbanopt-reporting-gem', branch: 'develop'
|
45
45
|
# end
|
46
46
|
|
47
47
|
# if allow_local && File.exist?('../openstudio-load-flexibility-measures-gem')
|
data/LICENSE.md
CHANGED
@@ -1,6 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
URBANopt™, Copyright (c) 2019-2021, Alliance for Sustainable Energy, LLC, and other
|
1
|
+
URBANopt™, Copyright (c) 2019-2022, Alliance for Sustainable Energy, LLC, and other
|
4
2
|
contributors. All rights reserved.
|
5
3
|
|
6
4
|
Redistribution and use in source and binary forms, with or without modification,
|
data/README.md
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
# URBANopt Scenario Gem
|
1
|
+
# URBANopt Scenario Gem
|
2
|
+
|
3
|
+
[![Coverage Status](https://coveralls.io/repos/github/urbanopt/urbanopt-scenario-gem/badge.svg?branch=develop)](https://coveralls.io/github/urbanopt/urbanopt-scenario-gem?branch=develop)
|
2
4
|
|
3
5
|
The URBANopt™ Scenario Gem includes functionality for defining scenarios, running simulations, and post-processing results. User defined SimulationMapper classes translate each Feature to a SimulationDir which is a directory containing simulation input files. The ScenarioRunner is used to perform simulations for each SimulationDir. Finally, a ScenarioPostProcessor can run on a Scenario to generate scenario level results.
|
4
6
|
|
@@ -26,9 +28,9 @@ Or install it yourself as:
|
|
26
28
|
Check out the repository and then execute:
|
27
29
|
|
28
30
|
$ bundle install
|
29
|
-
$ bundle update
|
31
|
+
$ bundle update
|
30
32
|
$ bundle exec rake
|
31
|
-
|
33
|
+
|
32
34
|
## Releasing
|
33
35
|
|
34
36
|
* Update CHANGELOG.md
|
@@ -0,0 +1,37 @@
|
|
1
|
+
URBANopt™, Copyright (c) 2019-2022, Alliance for Sustainable Energy, LLC, and other
|
2
|
+
contributors. All rights reserved.
|
3
|
+
|
4
|
+
Redistribution and use in source and binary forms, with or without modification,
|
5
|
+
are permitted provided that the following conditions are met:
|
6
|
+
|
7
|
+
Redistributions of source code must retain the above copyright notice, this list
|
8
|
+
of conditions and the following disclaimer.
|
9
|
+
|
10
|
+
Redistributions in binary form must reproduce the above copyright notice, this
|
11
|
+
list of conditions and the following disclaimer in the documentation and/or other
|
12
|
+
materials provided with the distribution.
|
13
|
+
|
14
|
+
Neither the name of the copyright holder nor the names of its contributors may be
|
15
|
+
used to endorse or promote products derived from this software without specific
|
16
|
+
prior written permission.
|
17
|
+
|
18
|
+
Redistribution of this software, without modification, must refer to the software
|
19
|
+
by the same designation. Redistribution of a modified version of this software
|
20
|
+
(i) may not refer to the modified version by the same designation, or by any
|
21
|
+
confusingly similar designation, and (ii) must refer to the underlying software
|
22
|
+
originally provided by Alliance as “URBANopt”. Except to comply with the foregoing,
|
23
|
+
the term “URBANopt”, or any confusingly similar designation may not be used to
|
24
|
+
refer to any modified version of this software or any modified version of the
|
25
|
+
underlying software originally provided by Alliance without the prior written
|
26
|
+
consent of Alliance.
|
27
|
+
|
28
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
29
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
30
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
31
|
+
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
32
|
+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
33
|
+
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
34
|
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
35
|
+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
36
|
+
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
37
|
+
OF THE POSSIBILITY OF SUCH DAMAGE.
|
@@ -0,0 +1,42 @@
|
|
1
|
+
<%#= README.md.erb is used to auto-generate README.md. %>
|
2
|
+
<%#= To manually maintain README.md throw away README.md.erb and manually edit README.md %>
|
3
|
+
###### (Automatically generated documentation)
|
4
|
+
|
5
|
+
# <%= name %>
|
6
|
+
|
7
|
+
## Description
|
8
|
+
<%= description %>
|
9
|
+
|
10
|
+
## Modeler Description
|
11
|
+
<%= modelerDescription %>
|
12
|
+
|
13
|
+
## Measure Type
|
14
|
+
<%= measureType %>
|
15
|
+
|
16
|
+
## Taxonomy
|
17
|
+
<%= taxonomy %>
|
18
|
+
|
19
|
+
## Arguments
|
20
|
+
|
21
|
+
<% arguments.each do |argument| %>
|
22
|
+
### <%= argument[:display_name] %>
|
23
|
+
<%= argument[:description] %>
|
24
|
+
**Name:** <%= argument[:name] %>,
|
25
|
+
**Type:** <%= argument[:type] %>,
|
26
|
+
**Units:** <%= argument[:units] %>,
|
27
|
+
**Required:** <%= argument[:required] %>,
|
28
|
+
**Model Dependent:** <%= argument[:model_dependent] %>
|
29
|
+
<% end %>
|
30
|
+
|
31
|
+
<% if arguments.size == 0 %>
|
32
|
+
<%= "This measure does not have any user arguments" %>
|
33
|
+
<% end %>
|
34
|
+
|
35
|
+
<% if outputs.size > 0 %>
|
36
|
+
## Outputs
|
37
|
+
<% output_names = [] %>
|
38
|
+
<% outputs.each do |output| %>
|
39
|
+
<% output_names << output[:display_name] %>
|
40
|
+
<% end %>
|
41
|
+
<%= output_names.join(", ") %>
|
42
|
+
<% end %>
|
@@ -0,0 +1,41 @@
|
|
1
|
+
<%
|
2
|
+
# *********************************************************************************
|
3
|
+
# URBANopt™, Copyright (c) 2019-2022, Alliance for Sustainable Energy, LLC, and other
|
4
|
+
# contributors. All rights reserved.
|
5
|
+
|
6
|
+
# Redistribution and use in source and binary forms, with or without modification,
|
7
|
+
# are permitted provided that the following conditions are met:
|
8
|
+
|
9
|
+
# Redistributions of source code must retain the above copyright notice, this list
|
10
|
+
# of conditions and the following disclaimer.
|
11
|
+
|
12
|
+
# Redistributions in binary form must reproduce the above copyright notice, this
|
13
|
+
# list of conditions and the following disclaimer in the documentation and/or other
|
14
|
+
# materials provided with the distribution.
|
15
|
+
|
16
|
+
# Neither the name of the copyright holder nor the names of its contributors may be
|
17
|
+
# used to endorse or promote products derived from this software without specific
|
18
|
+
# prior written permission.
|
19
|
+
|
20
|
+
# Redistribution of this software, without modification, must refer to the software
|
21
|
+
# by the same designation. Redistribution of a modified version of this software
|
22
|
+
# (i) may not refer to the modified version by the same designation, or by any
|
23
|
+
# confusingly similar designation, and (ii) must refer to the underlying software
|
24
|
+
# originally provided by Alliance as “URBANopt”. Except to comply with the foregoing,
|
25
|
+
# the term “URBANopt”, or any confusingly similar designation may not be used to
|
26
|
+
# refer to any modified version of this software or any modified version of the
|
27
|
+
# underlying software originally provided by Alliance without the prior written
|
28
|
+
# consent of Alliance.
|
29
|
+
|
30
|
+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
31
|
+
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
32
|
+
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
33
|
+
# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
34
|
+
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
35
|
+
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
36
|
+
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
37
|
+
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
38
|
+
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
39
|
+
# OF THE POSSIBILITY OF SUCH DAMAGE.
|
40
|
+
# *********************************************************************************
|
41
|
+
%>
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# *********************************************************************************
|
2
|
+
# URBANopt™, Copyright (c) 2019-2022, 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.
|
39
|
+
# *********************************************************************************
|