urbanopt-reopt 0.11.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b78fbfe26b609d2c083949334db217e9d65f848fd396e8dec3b26bebf4d7dd66
4
- data.tar.gz: 0a44af3b1cf0bf3b27cabdec01a36141073b7d168f9bdbae734194d0a9e98e1d
3
+ metadata.gz: ebc2f3c6f40a363e9f234917e55bd165eab74734c2ae477dd393893fb6210a3d
4
+ data.tar.gz: a2502bf5a657e7d256e39be74426f8eb91d7774f64851274a98c67347a33de12
5
5
  SHA512:
6
- metadata.gz: 19ba5d9485460f460097dd6a79df124de2a6b04dfd75d00e95ccc6a44df922142b6ce4801823fbbe6725e5d84dd01bd3a1c5efc27a83e4e7022fcd64547c6f1e
7
- data.tar.gz: e0f77546add0c86ceb72a008c84e699fee44a42906149fc157dde189c869f4820df5c5c9d21409c3f57238ca3bbb8025401a28be6d1b65f1eb7ea208db26a7ce
6
+ metadata.gz: dfad70c6283e27679164c2b6c14dcbb7a009643a838614a4d31f04aca864f548324cea4dfa0978e02eba29bd7705ea32a31867763aca16120a90205cf10ad241
7
+ data.tar.gz: 243aca41f2c5f45970f346cb7d430a7443fd8f0a5db08b59e43db23ef8a6063d9aefd56e4a5b45a54cb89d708c147531e34424f8172c23276943faa987169b74
@@ -1,6 +1,7 @@
1
1
  name: REopt-gem CI
2
2
 
3
3
  on:
4
+ workflow_dispatch:
4
5
  # push:
5
6
  schedule:
6
7
  # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # URBANopt REopt Gem
2
2
 
3
+ ## Version 0.12.0
4
+ Date Range: 01/11/24 - 05/06/24
5
+ * Use Reopt v3 by @vtnate in https://github.com/urbanopt/urbanopt-reopt-gem/pull/149
6
+
7
+ **Full Changelog**: https://github.com/urbanopt/urbanopt-reopt-gem/compare/v0.11.0...v0.12.0
8
+
3
9
  ## Version 0.11.0
4
10
  Date Range: 07/06/23 - 01/11/24
5
11
 
data/Gemfile CHANGED
@@ -44,7 +44,7 @@ allow_local = ENV['FAVOR_LOCAL_GEMS']
44
44
  # if allow_local && File.exist?('../urbanopt-scenario-gem')
45
45
  # gem 'urbanopt-scenario', path: '../urbanopt-scenario-gem'
46
46
  # elsif allow_local
47
- # gem 'urbanopt-scenario', github: 'URBANopt/urbanopt-scenario-gem', branch: 'develop'
47
+ # gem 'urbanopt-scenario', github: 'URBANopt/urbanopt-scenario-gem', branch: 'reopt-v3'
48
48
  # end
49
49
 
50
50
  # if allow_local && File.exists?('../urbanopt-geojson-gem')
data/RDOC_MAIN.md CHANGED
@@ -35,12 +35,12 @@ This gem is used to call the REopt API on a Scenario Report or Feature Report to
35
35
 
36
36
  ```
37
37
  "distributed_generation": {
38
- "lcc_us_dollars": 100000000.0,
39
- "npv_us_dollars": 10000000.0,
40
- "year_one_energy_cost_us_dollars": 7000000.0,
41
- "year_one_demand_cost_us_dollars": 3000000.0,
42
- "year_one_bill_us_dollars": 10000000.0,
43
- "total_energy_cost_us_dollars": 70000000.0,
38
+ "lcc": 100000000.0,
39
+ "npv": 10000000.0,
40
+ "year_one_energy_cost_before_tax": 7000000.0,
41
+ "year_one_demand_cost_before_tax": 3000000.0,
42
+ "year_one_bill_before_tax": 10000000.0,
43
+ "lifecycle_energy_cost_after_tax": 70000000.0,
44
44
  "solar_pv": {
45
45
  "size_kw": 30000.0
46
46
  },
data/README.md CHANGED
@@ -41,12 +41,12 @@ Or install it yourself as:
41
41
  This gem is used to call the REopt API on a Scenario Report or Feature Report to update the object's Distributed Generation attributes (including system financial and sizing metrics) as shown in an example below:
42
42
  ```
43
43
  "distributed_generation": {
44
- "lcc_us_dollars": 100000000.0,
45
- "npv_us_dollars": 10000000.0,
46
- "year_one_energy_cost_us_dollars": 7000000.0,
47
- "year_one_demand_cost_us_dollars": 3000000.0,
48
- "year_one_bill_us_dollars": 10000000.0,
49
- "total_energy_cost_us_dollars": 70000000.0,
44
+ "lcc": 100000000.0,
45
+ "npv": 10000000.0,
46
+ "year_one_energy_cost_before_tax": 7000000.0,
47
+ "year_one_demand_cost_before_tax": 3000000.0,
48
+ "year_one_bill_before_tax": 10000000.0,
49
+ "lifecycle_energy_cost_after_tax": 70000000.0,
50
50
  "solar_pv": {
51
51
  "size_kw": 30000.0
52
52
  },
data/docs/README.md CHANGED
@@ -52,12 +52,12 @@ Or install it yourself as:
52
52
  This gem is used to call the REopt API on a Scenario Report or Feature Report to update the object's Distributed Generation attributes (including system financial and sizing metrics) as shown in an example below:
53
53
  ```
54
54
  "distributed_generation": {
55
- "lcc_us_dollars": 100000000.0,
56
- "npv_us_dollars": 10000000.0,
57
- "year_one_energy_cost_us_dollars": 7000000.0,
58
- "year_one_demand_cost_us_dollars": 3000000.0,
59
- "year_one_bill_us_dollars": 10000000.0,
60
- "total_energy_cost_us_dollars": 70000000.0,
55
+ "lcc": 100000000.0,
56
+ "npv": 10000000.0,
57
+ "year_one_energy_cost_before_tax": 7000000.0,
58
+ "year_one_demand_cost_before_tax": 3000000.0,
59
+ "year_one_bill_before_tax": 10000000.0,
60
+ "lifecycle_energy_cost_after_tax": 70000000.0,
61
61
  "solar_pv": {
62
62
  "size_kw": 30000.0
63
63
  },
@@ -8,15 +8,19 @@ The following shows the complete set of inputs to the REopt Lite AP which is cal
8
8
 
9
9
  ## Required Inputs
10
10
 
11
- The only required parameters to the REopt Lite API (called internally by the gem) are:
11
+ The only required parameters to the REopt Lite API (called internally by the gem) are:
12
12
  - *latitude*
13
- - *longitude*
14
- - *urdb_response*
15
- Or one of the following sets: *urdb_label*; *blended_monthly_rates_us_dollars_per_kwh*; *blended_annual_demand_charges_us_dollars_per_kw* **and** *blended_annual_rates_us_dollars_per_kwh*
16
-
17
- - *loads_kw*
18
-
19
- Or one of the following sets: *doe_reference_name* **and** *annual_kwh*, *doe_reference_name* **and** *monthly_totals_kwh*
13
+ - *longitude*
14
+ - *urdb_response* OR one of the following sets:
15
+ - *urdb_label*
16
+ - *monthly_energy_rates* **and** *monthly_demand_rates*
17
+ - *blended_annual_demand_rate* **and** *blended_annual_energy_rate*
18
+ - *urdb_utility_name* **and** *urdb_rate_name*
19
+ - *tou_energy_rates_per_kwh*
20
+
21
+ - *loads_kw* OR one of the following sets:
22
+ - *doe_reference_name* **and** *annual_kwh*
23
+ - *doe_reference_name* **and** *monthly_totals_kwh*
20
24
 
21
25
  The gem sources *latitude*, *longitude* and *loads_kw* from a Feature or Scenario Report directly. If no specific *urdb_response* or *urdb_label* is specified as an custom assumption (see below), then a constant rate of $0.13/kWh with no demand charge is provided by the gem as a default to the REopt API.
22
26
 
@@ -24,28 +28,26 @@ Otherwise, all non-required input parameters will be filled in with default valu
24
28
 
25
29
 
26
30
  ```
27
- {
28
- "Scenario": {
29
- "Site":{
30
- "latiude":45,
31
- "longitude":-110,
32
- "ElectricTariff": {
33
- "urdb_label":"594976725457a37b1175d089"
34
- },
35
- "LoadProfile":{
36
- "doe_reference_name":"Hospital",
37
- "annual_kwh":1000000
38
- }
39
- }
31
+ {
32
+ "Site":{
33
+ "latitude":45,
34
+ "longitude":-110
35
+ },
36
+ "ElectricTariff": {
37
+ "urdb_label":"594976725457a37b1175d089"
38
+ },
39
+ "ElectricLoad":{
40
+ "doe_reference_name":"Hospital",
41
+ "annual_kwh":1000000
40
42
  }
41
43
  }
42
44
  ```
43
45
 
44
46
  ## Setting Custom Assumptions
45
47
 
46
- If you wish to use custom input parameters, other than default values, you have a couple of options.
48
+ If you wish to use custom input parameters, other than default values, you have a couple of options.
47
49
 
48
- * 1) Custom hashes, formatted as described above, can be directly paramaterized when invoking _reopt_json_from_scenario_report_ or _reopt_jsons_from_scenario_feature_reports_ from a **URBANopt::REopt::ScenarioReportAdapter**, or _reopt_json_from_feature_report_ from a **URBANopt::REopt::FeatureReportAdapter**.
50
+ * 1) Custom hashes, formatted as described above, can be directly paramaterized when invoking _reopt_json_from_scenario_report_ or _reopt_jsons_from_scenario_feature_reports_ from a **URBANopt::REopt::ScenarioReportAdapter**, or _reopt_json_from_feature_report_ from a **URBANopt::REopt::FeatureReportAdapter**.
49
51
 
50
52
  * 2) Paths to custom hashes, formatted as described above and saved as JSON files in a common folder, can be specified in the input REopt Scenario CSV. See the [example project](https://github.com/TK-23/urbanopt-example-geojson-reopt-project.git) for more information on how to do this.
51
53
 
@@ -1,6 +1,6 @@
1
1
  # REopt Lite Outputs Schema
2
2
 
3
- When the gem calls the REopt Lite APUI it recieves the following complete set of results described in the data dictionary below. Only those needed to update a Feature or Scenario Report's distributed_generation attibute set and timeseries CSV are pulled from the reponse and transferred to the Feature or Scenario Report. You may choose to modify the code to include more or less of the full REopt Lite response.
3
+ When the gem calls the REopt Lite APUI it recieves the following complete set of results described in the data dictionary below. Only those needed to update a Feature or Scenario Report's distributed_generation attibute set and timeseries CSV are pulled from the reponse and transferred to the Feature or Scenario Report. You may choose to modify the code to include more or less of the full REopt Lite response.
4
4
 
5
5
  ## Data Dictionary
6
6
  <ReoptOutputSchema />
@@ -12,12 +12,12 @@ The REopt Lite API updates the distributed_generation attributes of a Scenario o
12
12
 
13
13
  ```
14
14
  "distributed_generation": {
15
- "lcc_us_dollars": 100000000.0,
16
- "npv_us_dollars": 10000000.0,
17
- "year_one_energy_cost_us_dollars": 7000000.0,
18
- "year_one_demand_cost_us_dollars": 3000000.0,
19
- "year_one_bill_us_dollars": 10000000.0,
20
- "total_energy_cost_us_dollars": 70000000.0,
15
+ "lcc": 100000000.0,
16
+ "npv": 10000000.0,
17
+ "year_one_energy_cost_before_tax": 7000000.0,
18
+ "year_one_demand_cost_before_tax": 3000000.0,
19
+ "year_one_bill_before_tax": 10000000.0,
20
+ "lifecycle_energy_cost_after_tax": 70000000.0,
21
21
  "solar_pv": {
22
22
  "size_kw": 30000.0
23
23
  },
data/index.md CHANGED
@@ -10,9 +10,9 @@ See the [example project](https://github.com/urbanopt/urbanopt-example-reopt-pro
10
10
  ## Installation
11
11
 
12
12
  See [https://docs.urbanopt.net/installation/installation.html](https://docs.urbanopt.net/installation/installation.html) for instructions on prerequiste software, including:
13
- - Ruby 2.2.6
14
- - Bundler 1.17.0
15
- - OpenStudio 2.8.1
13
+ - Ruby 2.7.2
14
+ - Bundler 1.21.0
15
+ - OpenStudio 3.7.0
16
16
 
17
17
  Add this line to your application's Gemfile:
18
18
 
@@ -35,12 +35,12 @@ This gem is used to call the REopt API on a Scenario Report or Feature Report to
35
35
 
36
36
  ```
37
37
  "distributed_generation": {
38
- "lcc_us_dollars": 100000000.0,
39
- "npv_us_dollars": 10000000.0,
40
- "year_one_energy_cost_us_dollars": 7000000.0,
41
- "year_one_demand_cost_us_dollars": 3000000.0,
42
- "year_one_bill_us_dollars": 10000000.0,
43
- "total_energy_cost_us_dollars": 70000000.0,
38
+ "lcc": 100000000.0,
39
+ "npv": 10000000.0,
40
+ "year_one_energy_cost_before_tax": 7000000.0,
41
+ "year_one_demand_cost_before_tax": 3000000.0,
42
+ "year_one_bill_before_tax": 10000000.0,
43
+ "lifecycle_energy_cost_after_tax": 70000000.0,
44
44
  "solar_pv": {
45
45
  "size_kw": 30000.0
46
46
  },