urbanopt-scenario 1.0.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/nightly_ci_build.yml +1 -1
  3. data/CHANGELOG.md +10 -0
  4. data/CONTRIBUTING.md +3 -3
  5. data/Gemfile +29 -9
  6. data/LICENSE.md +1 -1
  7. data/README.md +2 -0
  8. data/Rakefile +1 -1
  9. data/doc_templates/LICENSE.md +1 -1
  10. data/doc_templates/copyright_erb.txt +1 -1
  11. data/doc_templates/copyright_js.txt +1 -1
  12. data/doc_templates/copyright_ruby.txt +1 -1
  13. data/docs/package.json +1 -1
  14. data/lib/urbanopt/scenario/default_reports.rb +1 -1
  15. data/lib/urbanopt/scenario/extension.rb +1 -1
  16. data/lib/urbanopt/scenario/logger.rb +1 -1
  17. data/lib/urbanopt/scenario/scenario_base.rb +5 -5
  18. data/lib/urbanopt/scenario/scenario_csv.rb +6 -6
  19. data/lib/urbanopt/scenario/scenario_datapoint_base.rb +3 -3
  20. data/lib/urbanopt/scenario/scenario_post_processor_base.rb +1 -1
  21. data/lib/urbanopt/scenario/scenario_post_processor_default.rb +1 -1
  22. data/lib/urbanopt/scenario/scenario_post_processor_disco.rb +1 -1
  23. data/lib/urbanopt/scenario/scenario_post_processor_opendss.rb +1 -1
  24. data/lib/urbanopt/scenario/scenario_runner_base.rb +1 -1
  25. data/lib/urbanopt/scenario/scenario_runner_osw.rb +1 -4
  26. data/lib/urbanopt/scenario/scenario_visualization.rb +1 -1
  27. data/lib/urbanopt/scenario/simulation_dir_base.rb +2 -2
  28. data/lib/urbanopt/scenario/simulation_dir_osw.rb +1 -1
  29. data/lib/urbanopt/scenario/simulation_mapper_base.rb +1 -1
  30. data/lib/urbanopt/scenario/version.rb +2 -2
  31. data/lib/urbanopt/scenario.rb +1 -1
  32. data/lib/urbanopt-scenario.rb +1 -1
  33. data/urbanopt-scenario-gem.gemspec +10 -7
  34. metadata +56 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac3b8620cce878dcc8a1053ba2a5341c65d7548ae5132fafe1239333cf819864
4
- data.tar.gz: 392fd2ce49e3c470661b2e43c8e68ef6eb726587132ccb780aff11cd02877e61
3
+ metadata.gz: 7f17c4e7ec8128169d2d07079253849b9cbf6f2ff52913677bdc81c90a5cdcf6
4
+ data.tar.gz: 740cdce9ff59efdf6c4fd112817dfc2dc7522be0910594f43fe1d1547fe00ebe
5
5
  SHA512:
6
- metadata.gz: 27c005602ae92c2dfa18c74820d6986f1b600adba88880b9b34835950b71d2668478720c2ccdba1f3e1758002b72be07eefbd4910c24ca60a3ec8b8cdd16e8f6
7
- data.tar.gz: a7f7b94a01bb2523dc5cbfa054a13974f00319125688e5b93b80a79f6490c9416fcd8b2885deb91bba3a7b38c40c376c73f9f7dabce2340251ecfe2dcbc49afc
6
+ metadata.gz: 651d28948b88da987449bbd4279bd3a439f8801338735fa53d0e7ba00d255cfc51958551d6a9baf406e19e0a080478feffb681c1e3d9cfd1f06656355e2d3708
7
+ data.tar.gz: f9680311f5a80b2c1da91c920476083fa730a2dd6f34d56ca1d722012a19104ef9591216dfe3ccf435b3afb3e080bfb9930b9ff4fccd42bdba2150779eefabf0
@@ -18,7 +18,7 @@ jobs:
18
18
  weeknight-tests:
19
19
  runs-on: ubuntu-latest
20
20
  container:
21
- image: docker://nrel/openstudio:3.9.0
21
+ image: docker://nrel/openstudio:3.10.0
22
22
  steps:
23
23
  - uses: actions/checkout@v4
24
24
  - name: Update gems
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # URBANopt Scenario Gem
2
2
 
3
+ ## Version 1.2.0
4
+
5
+ * Name changes and update license dates
6
+ * Update from github.com/NREL to github.com/NatLabRockies
7
+ * Update URBANopt dependencies
8
+
9
+ ## Version 1.1.0
10
+
11
+ * Upgrade to OpenStudio 3.10 by @vtnate in <https://github.com/urbanopt/urbanopt-scenario-gem/pull/278>
12
+
3
13
  ## Version 1.0.0
4
14
 
5
15
  Date Range: 05/06/24 - 01/23/25
data/CONTRIBUTING.md CHANGED
@@ -10,7 +10,7 @@ The contribution process for URBANopt is composed of three steps:
10
10
 
11
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):
12
12
 
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.*
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 Energy Innovation, 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
 
15
15
  Once we have your consent on file, you’ll only need to redo it if conditions change (e.g. a change of employer).
16
16
 
@@ -53,6 +53,6 @@ URBANopt Project Management\
53
53
  ben.polly@nrel.gov\
54
54
  (303) 384-7429
55
55
 
56
- URBANopt is funded by the U.S. Department of Energy (DOE) and managed by the National Renewable Energy Laboratory (NREL).
56
+ URBANopt is funded by the U.S. Department of Energy (DOE) and managed by the National Laboratory of the Rockies (NLR).
57
57
 
58
- URBANopt is developed in collaboration with NREL, LBNL, and private firms.
58
+ URBANopt is developed in collaboration with NLR, LBNL, and private firms.
data/Gemfile CHANGED
@@ -17,35 +17,55 @@ allow_local = ENV['FAVOR_LOCAL_GEMS']
17
17
  # if allow_local && File.exist?('../OpenStudio-extension-gem')
18
18
  # gem 'openstudio-extension', path: '../OpenStudio-extension-gem'
19
19
  # elsif allow_local
20
- # gem 'openstudio-extension', github: 'NREL/OpenStudio-extension-gem', branch: 'develop'
20
+ # gem 'openstudio-extension', github: 'NatLabRockies/OpenStudio-extension-gem', branch: 'develop'
21
21
  # end
22
22
 
23
23
  # if allow_local && File.exist?('../urbanopt-core-gem')
24
- # gem 'urbanopt-core', path: '../urbanopt-core-gem'
24
+ # gem 'urbanopt-core', path: '../urbanopt-core-gem'
25
25
  # elsif allow_local
26
- # gem 'urbanopt-core', github: 'URBANopt/urbanopt-core-gem', branch: 'os39'
26
+ # gem 'urbanopt-core', github: 'URBANopt/urbanopt-core-gem', branch: 'develop'
27
27
  # end
28
28
 
29
29
  # if allow_local && File.exist?('../openstudio-common-measures-gem')
30
- # gem 'openstudio-common-measures', path: '../openstudio-common-measures-gem'
30
+ # gem 'openstudio-common-measures', path: '../openstudio-common-measures-gem'
31
31
  # elsif allow_local
32
- # gem 'openstudio-common-measures', github: 'NREL/openstudio-common-measures-gem', branch: 'develop'
32
+ # gem 'openstudio-common-measures', github: 'NatLabRockies/openstudio-common-measures-gem', branch: 'develop'
33
+ # else
34
+ # gem 'openstudio-common-measures', '~> 0.12.3'
35
+ # end
36
+
37
+ # if allow_local && File.exist?('../urbanopt-geojson-gem')
38
+ # gem 'urbanopt-geojson', path: '../urbanopt-geojson-gem'
39
+ # elsif allow_local
40
+ # gem 'urbanopt-geojson', github: 'URBANopt/urbanopt-geojson-gem', branch: 'develop'
41
+ # end
42
+
43
+ # if allow_local && File.exist?('../openstudio-standards-gem')
44
+ # gem 'openstudio-standards', path: '../openstudio-standards-gem'
45
+ # elsif allow_local
46
+ # gem 'openstudio-standards', github: 'NatLabRockies/openstudio-standards-gem', branch: 'develop'
47
+ # else
48
+ # gem 'openstudio-standards', '~> 0.8.2'
33
49
  # end
34
50
 
35
51
  # if allow_local && File.exist?('../openstudio-model-articulation-gem')
36
52
  # gem 'openstudio-model-articulation', path: '../openstudio-model-articulation-gem'
37
53
  # elsif allow_local
38
- # gem 'openstudio-model-articulation', github: 'NREL/openstudio-model-articulation-gem', branch: 'develop'
54
+ # gem 'openstudio-model-articulation', github: 'NatLabRockies/openstudio-model-articulation-gem', branch: 'develop'
55
+ # else
56
+ # gem 'openstudio-model-articulation', '~> 0.12.2'
39
57
  # end
40
58
 
41
59
  # if allow_local && File.exist?('../urbanopt-reporting-gem')
42
- # gem 'urbanopt-reporting', path: '../urbanopt-reporting-gem'
60
+ # gem 'urbanopt-reporting', path: '../urbanopt-reporting-gem'
43
61
  # elsif allow_local
44
- # gem 'urbanopt-reporting', github: 'URBANopt/urbanopt-reporting-gem', branch: 'develop'
62
+ # gem 'urbanopt-reporting', github: 'URBANopt/urbanopt-reporting-gem', branch: 'develop'
45
63
  # end
46
64
 
47
65
  # if allow_local && File.exist?('../openstudio-load-flexibility-measures-gem')
48
66
  # gem 'openstudio-load-flexibility-measures', path: '../openstudio-load-flexibility-measures-gem'
49
67
  # elseif allow_local
50
- # gem 'openstudio-load-flexibility-measures', github: 'NREL/openstudio-load-flexibility-measures-gem', branch: 'develop'
68
+ # gem 'openstudio-load-flexibility-measures', github: 'NatLabRockies/openstudio-load-flexibility-measures-gem', branch: 'develop'
69
+ # else
70
+ # gem 'openstudio-load-flexibility-measures', '~> 0.11.1'
51
71
  # end
data/LICENSE.md CHANGED
@@ -1,4 +1,4 @@
1
- URBANopt (tm), Copyright (c) 2019-2025, Alliance for Sustainable Energy, LLC, and other
1
+ URBANopt (tm), Copyright (c) 2019-2026, Alliance for Energy Innovation, 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,
data/README.md CHANGED
@@ -17,8 +17,10 @@ gem 'urbanopt-scenario'
17
17
 
18
18
  And then execute:
19
19
 
20
+ ```bash
20
21
  $ bundle install
21
22
  $ bundle update
23
+ ```
22
24
 
23
25
  Or install it yourself as:
24
26
 
data/Rakefile CHANGED
@@ -1,5 +1,5 @@
1
1
  # *********************************************************************************
2
- # URBANopt (tm), Copyright (c) Alliance for Sustainable Energy, LLC.
2
+ # URBANopt (tm), Copyright (c) Alliance for Energy Innovation, LLC.
3
3
  # See also https://github.com/urbanopt/urbanopt-scenario-gem/blob/develop/LICENSE.md
4
4
  # *********************************************************************************
5
5
 
@@ -1,4 +1,4 @@
1
- URBANopt (tm), Copyright (c) 2019-2025, Alliance for Sustainable Energy, LLC, and other
1
+ URBANopt (tm), Copyright (c) 2019-2026, Alliance for Energy Innovation, 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,
@@ -1,6 +1,6 @@
1
1
  <%
2
2
  # *********************************************************************************
3
- # URBANopt (tm), Copyright (c) 2019-2025, Alliance for Sustainable Energy, LLC, and other
3
+ # URBANopt (tm), Copyright (c) 2019-2026, Alliance for Energy Innovation, LLC, and other
4
4
  # contributors. All rights reserved.
5
5
 
6
6
  # Redistribution and use in source and binary forms, with or without modification,
@@ -1,4 +1,4 @@
1
1
  /* @preserve
2
- * URBANopt (tm), Copyright (c) Alliance for Sustainable Energy, LLC.
2
+ * URBANopt (tm), Copyright (c) Alliance for Energy Innovation, LLC.
3
3
  * See also https://github.com/urbanopt/urbanopt-scenario-gem/blob/develop/LICENSE.md
4
4
  */
@@ -1,4 +1,4 @@
1
1
  # *********************************************************************************
2
- # URBANopt (tm), Copyright (c) Alliance for Sustainable Energy, LLC.
2
+ # URBANopt (tm), Copyright (c) Alliance for Energy Innovation, LLC.
3
3
  # See also https://github.com/urbanopt/urbanopt-scenario-gem/blob/develop/LICENSE.md
4
4
  # *********************************************************************************
data/docs/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "build": "vuepress build",
9
9
  "deploy": "gh-pages -d .vuepress/dist"
10
10
  },
11
- "author": "NREL",
11
+ "author": "NLR",
12
12
  "dependencies": {
13
13
  "highlight.js": "^10.4.1",
14
14
  "json-schema-ref-parser": "^9.0.6",
@@ -1,5 +1,5 @@
1
1
  # *********************************************************************************
2
- # URBANopt (tm), Copyright (c) Alliance for Sustainable Energy, LLC.
2
+ # URBANopt (tm), Copyright (c) Alliance for Energy Innovation, LLC.
3
3
  # See also https://github.com/urbanopt/urbanopt-scenario-gem/blob/develop/LICENSE.md
4
4
  # *********************************************************************************
5
5
 
@@ -1,5 +1,5 @@
1
1
  # *********************************************************************************
2
- # URBANopt (tm), Copyright (c) Alliance for Sustainable Energy, LLC.
2
+ # URBANopt (tm), Copyright (c) Alliance for Energy Innovation, LLC.
3
3
  # See also https://github.com/urbanopt/urbanopt-scenario-gem/blob/develop/LICENSE.md
4
4
  # *********************************************************************************
5
5
 
@@ -1,5 +1,5 @@
1
1
  # *********************************************************************************
2
- # URBANopt (tm), Copyright (c) Alliance for Sustainable Energy, LLC.
2
+ # URBANopt (tm), Copyright (c) Alliance for Energy Innovation, LLC.
3
3
  # See also https://github.com/urbanopt/urbanopt-scenario-gem/blob/develop/LICENSE.md
4
4
  # *********************************************************************************
5
5
 
@@ -1,5 +1,5 @@
1
1
  # *********************************************************************************
2
- # URBANopt (tm), Copyright (c) Alliance for Sustainable Energy, LLC.
2
+ # URBANopt (tm), Copyright (c) Alliance for Energy Innovation, LLC.
3
3
  # See also https://github.com/urbanopt/urbanopt-scenario-gem/blob/develop/LICENSE.md
4
4
  # *********************************************************************************
5
5
 
@@ -24,19 +24,19 @@ module URBANopt
24
24
 
25
25
  ##
26
26
  # Name of the Scenario.
27
- attr_reader :name #:nodoc:
27
+ attr_reader :name # :nodoc:
28
28
 
29
29
  ##
30
30
  # Root directory containing Gemfile.
31
- attr_reader :root_dir #:nodoc:
31
+ attr_reader :root_dir # :nodoc:
32
32
 
33
33
  ##
34
34
  # Directory to run this Scenario.
35
- attr_reader :run_dir #:nodoc:
35
+ attr_reader :run_dir # :nodoc:
36
36
 
37
37
  ##
38
38
  # An instance of +URBANopt::Core::FeatureFile+ associated with this Scenario.
39
- attr_reader :feature_file #:nodoc:
39
+ attr_reader :feature_file # :nodoc:
40
40
 
41
41
  # An array of SimulationDirBase objects.
42
42
  def simulation_dirs
@@ -1,5 +1,5 @@
1
1
  # *********************************************************************************
2
- # URBANopt (tm), Copyright (c) Alliance for Sustainable Energy, LLC.
2
+ # URBANopt (tm), Copyright (c) Alliance for Energy Innovation, LLC.
3
3
  # See also https://github.com/urbanopt/urbanopt-scenario-gem/blob/develop/LICENSE.md
4
4
  # *********************************************************************************
5
5
 
@@ -37,13 +37,13 @@ module URBANopt
37
37
  end
38
38
 
39
39
  # Path to CSV file
40
- attr_reader :csv_file #:nodoc:
40
+ attr_reader :csv_file # :nodoc:
41
41
 
42
42
  # Number of header rows to skip in CSV file
43
- attr_reader :num_header_rows #:nodoc:
43
+ attr_reader :num_header_rows # :nodoc:
44
44
 
45
45
  # Directory containing all mapper class files
46
- attr_reader :mapper_files_dir #:nodoc:
46
+ attr_reader :mapper_files_dir # :nodoc:
47
47
 
48
48
  # Require all simulation mappers in mapper_files_dir
49
49
  def load_mapper_files
@@ -54,7 +54,7 @@ module URBANopt
54
54
  runner_config = OpenStudio::Extension::RunnerConfig.new(@root_dir)
55
55
  # use the default values overridden with runner.conf values where not
56
56
  # nil nor empty strings
57
- @options = @options.merge(runner_config.options.reject{|k, v| v.nil? || (v.kind_of?(String) && v === '')})
57
+ @options = @options.merge(runner_config.options.reject { |k, v| v.nil? || (v.is_a?(String) && v === '') })
58
58
  end
59
59
 
60
60
  # bundle path is assigned from the runner.conf if it exists or is assigned in the root_dir
@@ -62,7 +62,7 @@ module URBANopt
62
62
  if !@options.key?(:bundle_install_path) || @options[:bundle_install_path] === ''
63
63
  @options[:bundle_install_path] = File.join(@root_dir, '.bundle/install/')
64
64
  else
65
- @options[:bundle_install_path]= Pathname.new(@options[:bundle_install_path]).cleanpath.to_s
65
+ @options[:bundle_install_path] = Pathname.new(@options[:bundle_install_path]).cleanpath.to_s
66
66
  end
67
67
  bundle_path = @options[:bundle_install_path]
68
68
 
@@ -1,12 +1,12 @@
1
1
  # *********************************************************************************
2
- # URBANopt (tm), Copyright (c) Alliance for Sustainable Energy, LLC.
2
+ # URBANopt (tm), Copyright (c) Alliance for Energy Innovation, LLC.
3
3
  # See also https://github.com/urbanopt/urbanopt-scenario-gem/blob/develop/LICENSE.md
4
4
  # *********************************************************************************
5
5
 
6
6
  module URBANopt
7
7
  module Scenario
8
8
  class ScenarioDatapoint
9
- attr_reader :scenario, :feature_id, :feature_name, :mapper_class, :feature #:nodoc:#
9
+ attr_reader :scenario, :feature_id, :feature_name, :mapper_class, :feature # :nodoc:#
10
10
 
11
11
  ##
12
12
  # ScenarioDatapoint is an agnostic description of the simulation of a Feature in a Scenario
@@ -23,7 +23,7 @@ module URBANopt
23
23
  @feature_name = feature_name
24
24
  @feature = scenario.feature_file.get_feature_by_id(feature_id)
25
25
  @mapper_class = mapper_class
26
- end #:nodoc:
26
+ end # :nodoc:
27
27
 
28
28
  ##
29
29
  # Gets the type of a feature
@@ -1,5 +1,5 @@
1
1
  # *********************************************************************************
2
- # URBANopt (tm), Copyright (c) Alliance for Sustainable Energy, LLC.
2
+ # URBANopt (tm), Copyright (c) Alliance for Energy Innovation, LLC.
3
3
  # See also https://github.com/urbanopt/urbanopt-scenario-gem/blob/develop/LICENSE.md
4
4
  # *********************************************************************************
5
5
 
@@ -1,5 +1,5 @@
1
1
  # *********************************************************************************
2
- # URBANopt (tm), Copyright (c) Alliance for Sustainable Energy, LLC.
2
+ # URBANopt (tm), Copyright (c) Alliance for Energy Innovation, LLC.
3
3
  # See also https://github.com/urbanopt/urbanopt-scenario-gem/blob/develop/LICENSE.md
4
4
  # *********************************************************************************
5
5
 
@@ -1,5 +1,5 @@
1
1
  # *********************************************************************************
2
- # URBANopt (tm), Copyright (c) Alliance for Sustainable Energy, LLC.
2
+ # URBANopt (tm), Copyright (c) Alliance for Energy Innovation, LLC.
3
3
  # See also https://github.com/urbanopt/urbanopt-scenario-gem/blob/develop/LICENSE.md
4
4
  # *********************************************************************************
5
5
 
@@ -1,5 +1,5 @@
1
1
  # *********************************************************************************
2
- # URBANopt (tm), Copyright (c) Alliance for Sustainable Energy, LLC.
2
+ # URBANopt (tm), Copyright (c) Alliance for Energy Innovation, LLC.
3
3
  # See also https://github.com/urbanopt/urbanopt-scenario-gem/blob/develop/LICENSE.md
4
4
  # *********************************************************************************
5
5
 
@@ -1,5 +1,5 @@
1
1
  # *********************************************************************************
2
- # URBANopt (tm), Copyright (c) Alliance for Sustainable Energy, LLC.
2
+ # URBANopt (tm), Copyright (c) Alliance for Energy Innovation, LLC.
3
3
  # See also https://github.com/urbanopt/urbanopt-scenario-gem/blob/develop/LICENSE.md
4
4
  # *********************************************************************************
5
5
 
@@ -1,5 +1,5 @@
1
1
  # *********************************************************************************
2
- # URBANopt (tm), Copyright (c) Alliance for Sustainable Energy, LLC.
2
+ # URBANopt (tm), Copyright (c) Alliance for Energy Innovation, LLC.
3
3
  # See also https://github.com/urbanopt/urbanopt-scenario-gem/blob/develop/LICENSE.md
4
4
  # *********************************************************************************
5
5
 
@@ -120,15 +120,12 @@ module URBANopt
120
120
  # run building_osws
121
121
  # building_failures = runner.run_osws(building_osws, num_parallel = Extension::NUM_PARALLEL, max_to_run = Extension::MAX_DATAPOINTS)
122
122
  building_failures = runner.run_osws(building_osws)
123
- failures + building_failures
124
123
  # run district_system_osws
125
124
  # district_system_failures = runner.run_osws(district_system_osws, num_parallel = Extension::NUM_PARALLEL, max_to_run = Extension::MAX_DATAPOINTS)
126
125
  district_system_failures = runner.run_osws(district_system_osws)
127
- failures + district_system_failures
128
126
  # run transformer_osws
129
127
  # transformer_failures = runner.run_osws(transformer_osws, num_parallel = Extension::NUM_PARALLEL, max_to_run = Extension::MAX_DATAPOINTS)
130
128
  transformer_failures = runner.run_osws(transformer_osws)
131
- failures + transformer_failures
132
129
 
133
130
  puts 'Done Running Scenario'
134
131
 
@@ -1,5 +1,5 @@
1
1
  # *********************************************************************************
2
- # URBANopt (tm), Copyright (c) Alliance for Sustainable Energy, LLC.
2
+ # URBANopt (tm), Copyright (c) Alliance for Energy Innovation, LLC.
3
3
  # See also https://github.com/urbanopt/urbanopt-scenario-gem/blob/develop/LICENSE.md
4
4
  # *********************************************************************************
5
5
 
@@ -1,5 +1,5 @@
1
1
  # *********************************************************************************
2
- # URBANopt (tm), Copyright (c) Alliance for Sustainable Energy, LLC.
2
+ # URBANopt (tm), Copyright (c) Alliance for Energy Innovation, LLC.
3
3
  # See also https://github.com/urbanopt/urbanopt-scenario-gem/blob/develop/LICENSE.md
4
4
  # *********************************************************************************
5
5
 
@@ -19,7 +19,7 @@ module URBANopt
19
19
  @feature_names = feature_names
20
20
  end
21
21
 
22
- attr_reader :scenario, :features, :feature_names #:nodoc: #:nodoc: #:nodoc:
22
+ attr_reader :scenario, :features, :feature_names # :nodoc: #:nodoc: #:nodoc:
23
23
 
24
24
  ##
25
25
  # Return the directory that this simulation will run in
@@ -1,5 +1,5 @@
1
1
  # *********************************************************************************
2
- # URBANopt (tm), Copyright (c) Alliance for Sustainable Energy, LLC.
2
+ # URBANopt (tm), Copyright (c) Alliance for Energy Innovation, LLC.
3
3
  # See also https://github.com/urbanopt/urbanopt-scenario-gem/blob/develop/LICENSE.md
4
4
  # *********************************************************************************
5
5
 
@@ -1,5 +1,5 @@
1
1
  # *********************************************************************************
2
- # URBANopt (tm), Copyright (c) Alliance for Sustainable Energy, LLC.
2
+ # URBANopt (tm), Copyright (c) Alliance for Energy Innovation, LLC.
3
3
  # See also https://github.com/urbanopt/urbanopt-scenario-gem/blob/develop/LICENSE.md
4
4
  # *********************************************************************************
5
5
 
@@ -1,10 +1,10 @@
1
1
  # *********************************************************************************
2
- # URBANopt (tm), Copyright (c) Alliance for Sustainable Energy, LLC.
2
+ # URBANopt (tm), Copyright (c) Alliance for Energy Innovation, LLC.
3
3
  # See also https://github.com/urbanopt/urbanopt-scenario-gem/blob/develop/LICENSE.md
4
4
  # *********************************************************************************
5
5
 
6
6
  module URBANopt
7
7
  module Scenario
8
- VERSION = '1.0.0'.freeze
8
+ VERSION = '1.2.0'.freeze
9
9
  end
10
10
  end
@@ -1,5 +1,5 @@
1
1
  # *********************************************************************************
2
- # URBANopt (tm), Copyright (c) Alliance for Sustainable Energy, LLC.
2
+ # URBANopt (tm), Copyright (c) Alliance for Energy Innovation, LLC.
3
3
  # See also https://github.com/urbanopt/urbanopt-scenario-gem/blob/develop/LICENSE.md
4
4
  # *********************************************************************************
5
5
 
@@ -1,5 +1,5 @@
1
1
  # *********************************************************************************
2
- # URBANopt (tm), Copyright (c) Alliance for Sustainable Energy, LLC.
2
+ # URBANopt (tm), Copyright (c) Alliance for Energy Innovation, LLC.
3
3
  # See also https://github.com/urbanopt/urbanopt-scenario-gem/blob/develop/LICENSE.md
4
4
  # *********************************************************************************
5
5
 
@@ -5,8 +5,8 @@ require 'urbanopt/scenario/version'
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'urbanopt-scenario'
7
7
  spec.version = URBANopt::Scenario::VERSION
8
- spec.authors = ['Rawad El Kontar', 'Dan Macumber']
9
- spec.email = ['rawad.elkontar@nrel.gov']
8
+ spec.authors = ['Rawad El Kontar', 'Katherine Fleming', 'Dan Macumber']
9
+ spec.email = ['rawad.elkontar@nrel.gov', 'katherine.fleming@nrel.gov']
10
10
 
11
11
  spec.summary = 'Library to export data point OSW files from URBANopt Scenario CSV'
12
12
  spec.description = 'Library to export data point OSW files from URBANopt Scenario CSV'
@@ -25,10 +25,13 @@ Gem::Specification.new do |spec|
25
25
  # It would be nice to be able to use newer patches of Ruby 3.2, which would require os-extension to relax its dependency on bundler.
26
26
  spec.required_ruby_version = '3.2.2'
27
27
 
28
- spec.add_development_dependency 'rspec', '~> 3.13'
29
- spec.add_development_dependency 'simplecov', '0.22.0'
30
- spec.add_development_dependency 'simplecov-lcov', '0.8.0'
28
+ spec.add_development_dependency 'rake', '~> 13.0'
29
+ spec.add_development_dependency 'rspec', '~> 3.9'
30
+ spec.add_development_dependency 'rubocop', '~> 1.50'
31
+ spec.add_development_dependency 'rubocop-performance', '~> 1.20'
32
+ spec.add_development_dependency 'simplecov', '~> 0.22.0'
33
+ spec.add_development_dependency 'simplecov-lcov', '~> 0.8.0'
31
34
  spec.add_runtime_dependency 'sqlite3', '~> 2.0.0'
32
- spec.add_runtime_dependency 'urbanopt-core', '~> 1.0.0'
33
- spec.add_runtime_dependency 'urbanopt-reporting', '~> 1.0.0'
35
+ spec.add_runtime_dependency 'urbanopt-core', '~> 1.2.0'
36
+ spec.add_runtime_dependency 'urbanopt-reporting', '~> 1.2.0'
34
37
  end
metadata CHANGED
@@ -1,56 +1,99 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: urbanopt-scenario
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rawad El Kontar
8
+ - Katherine Fleming
8
9
  - Dan Macumber
9
10
  autorequire:
10
11
  bindir: exe
11
12
  cert_chain: []
12
- date: 2025-01-24 00:00:00.000000000 Z
13
+ date: 2026-01-23 00:00:00.000000000 Z
13
14
  dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: rake
17
+ requirement: !ruby/object:Gem::Requirement
18
+ requirements:
19
+ - - "~>"
20
+ - !ruby/object:Gem::Version
21
+ version: '13.0'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - "~>"
27
+ - !ruby/object:Gem::Version
28
+ version: '13.0'
14
29
  - !ruby/object:Gem::Dependency
15
30
  name: rspec
16
31
  requirement: !ruby/object:Gem::Requirement
17
32
  requirements:
18
33
  - - "~>"
19
34
  - !ruby/object:Gem::Version
20
- version: '3.13'
35
+ version: '3.9'
21
36
  type: :development
22
37
  prerelease: false
23
38
  version_requirements: !ruby/object:Gem::Requirement
24
39
  requirements:
25
40
  - - "~>"
26
41
  - !ruby/object:Gem::Version
27
- version: '3.13'
42
+ version: '3.9'
43
+ - !ruby/object:Gem::Dependency
44
+ name: rubocop
45
+ requirement: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: '1.50'
50
+ type: :development
51
+ prerelease: false
52
+ version_requirements: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - "~>"
55
+ - !ruby/object:Gem::Version
56
+ version: '1.50'
57
+ - !ruby/object:Gem::Dependency
58
+ name: rubocop-performance
59
+ requirement: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - "~>"
62
+ - !ruby/object:Gem::Version
63
+ version: '1.20'
64
+ type: :development
65
+ prerelease: false
66
+ version_requirements: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - "~>"
69
+ - !ruby/object:Gem::Version
70
+ version: '1.20'
28
71
  - !ruby/object:Gem::Dependency
29
72
  name: simplecov
30
73
  requirement: !ruby/object:Gem::Requirement
31
74
  requirements:
32
- - - '='
75
+ - - "~>"
33
76
  - !ruby/object:Gem::Version
34
77
  version: 0.22.0
35
78
  type: :development
36
79
  prerelease: false
37
80
  version_requirements: !ruby/object:Gem::Requirement
38
81
  requirements:
39
- - - '='
82
+ - - "~>"
40
83
  - !ruby/object:Gem::Version
41
84
  version: 0.22.0
42
85
  - !ruby/object:Gem::Dependency
43
86
  name: simplecov-lcov
44
87
  requirement: !ruby/object:Gem::Requirement
45
88
  requirements:
46
- - - '='
89
+ - - "~>"
47
90
  - !ruby/object:Gem::Version
48
91
  version: 0.8.0
49
92
  type: :development
50
93
  prerelease: false
51
94
  version_requirements: !ruby/object:Gem::Requirement
52
95
  requirements:
53
- - - '='
96
+ - - "~>"
54
97
  - !ruby/object:Gem::Version
55
98
  version: 0.8.0
56
99
  - !ruby/object:Gem::Dependency
@@ -73,31 +116,32 @@ dependencies:
73
116
  requirements:
74
117
  - - "~>"
75
118
  - !ruby/object:Gem::Version
76
- version: 1.0.0
119
+ version: 1.2.0
77
120
  type: :runtime
78
121
  prerelease: false
79
122
  version_requirements: !ruby/object:Gem::Requirement
80
123
  requirements:
81
124
  - - "~>"
82
125
  - !ruby/object:Gem::Version
83
- version: 1.0.0
126
+ version: 1.2.0
84
127
  - !ruby/object:Gem::Dependency
85
128
  name: urbanopt-reporting
86
129
  requirement: !ruby/object:Gem::Requirement
87
130
  requirements:
88
131
  - - "~>"
89
132
  - !ruby/object:Gem::Version
90
- version: 1.0.0
133
+ version: 1.2.0
91
134
  type: :runtime
92
135
  prerelease: false
93
136
  version_requirements: !ruby/object:Gem::Requirement
94
137
  requirements:
95
138
  - - "~>"
96
139
  - !ruby/object:Gem::Version
97
- version: 1.0.0
140
+ version: 1.2.0
98
141
  description: Library to export data point OSW files from URBANopt Scenario CSV
99
142
  email:
100
143
  - rawad.elkontar@nrel.gov
144
+ - katherine.fleming@nrel.gov
101
145
  executables: []
102
146
  extensions: []
103
147
  extra_rdoc_files: []