diff --git a/.github/workflows/nightly_ci_build.yml b/.github/workflows/nightly_ci_build.yml index 15abfb0..af4ac75 100644 --- a/.github/workflows/nightly_ci_build.yml +++ b/.github/workflows/nightly_ci_build.yml @@ -2,6 +2,7 @@ name: Reporting-gem CI on: # push: + workflow_dispatch: schedule: # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule # 5 am UTC (11pm MDT the day before) every weekday night in MDT diff --git a/CHANGELOG.md b/CHANGELOG.md index 269519f..5ab3478 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # URBANopt Reporting Gem +## Version 0.10.0 +## What's Changed +* Additional reporting tests by @vtnate in https://github.com/urbanopt/urbanopt-reporting-gem/pull/147 +* Update formatting and version in export_modelica_loads by @nllong in https://github.com/urbanopt/urbanopt-reporting-gem/pull/149 +* Update feature reports for Reopt v3 by @vtnate in https://github.com/urbanopt/urbanopt-reporting-gem/pull/148 + + +**Full Changelog**: https://github.com/urbanopt/urbanopt-reporting-gem/compare/v0.9.1...0.10.0 + ## Version 0.9.1 * downgrade json-schema to 2.7 by @vtnate in https://github.com/urbanopt/urbanopt-reporting-gem/pull/145 diff --git a/lib/urbanopt/reporting/version.rb b/lib/urbanopt/reporting/version.rb index a9a7f6b..3ebcacc 100644 --- a/lib/urbanopt/reporting/version.rb +++ b/lib/urbanopt/reporting/version.rb @@ -5,6 +5,6 @@ module URBANopt module Reporting - VERSION = '0.9.1'.freeze + VERSION = '0.10.0'.freeze end end diff --git a/spec/urbanopt/reporting/reporting_spec.rb b/spec/urbanopt/reporting/reporting_spec.rb index 2056824..dbed76b 100644 --- a/spec/urbanopt/reporting/reporting_spec.rb +++ b/spec/urbanopt/reporting/reporting_spec.rb @@ -128,7 +128,6 @@ end context 'with distributed generation' do - it 'can add values in distributed generation' do expect(URBANopt::Reporting::DefaultReports::DistributedGeneration.add_values(1, 2)).to eq(3) end @@ -138,18 +137,18 @@ end it 'can merge distributed generation systems together' do - existing_dgen = URBANopt::Reporting::DefaultReports::DistributedGeneration.new(annual_renewable_electricity_pct: 0, year_one_energy_cost_us_dollars: 100_000) - new_dgen = URBANopt::Reporting::DefaultReports::DistributedGeneration.new(annual_renewable_electricity_pct: 50, year_one_energy_cost_us_dollars: 50_000) + existing_dgen = URBANopt::Reporting::DefaultReports::DistributedGeneration.new(renewable_electricity_fraction: 0, year_one_energy_cost_us_dollars: 100_000) + new_dgen = URBANopt::Reporting::DefaultReports::DistributedGeneration.new(renewable_electricity_fraction: 50, year_one_energy_cost_us_dollars: 50_000) distributed_generation = URBANopt::Reporting::DefaultReports::DistributedGeneration.merge_distributed_generation(existing_dgen, new_dgen) - expect(distributed_generation.annual_renewable_electricity_pct).to eq(50) + expect(distributed_generation.renewable_electricity_fraction).to eq(50) end end it 'can add generator sizes' do - generator = URBANopt::Reporting::DefaultReports::Generator.new(size_kw:5) - new_generator = URBANopt::Reporting::DefaultReports::Generator.new(size_kw:8) + generator = URBANopt::Reporting::DefaultReports::Generator.new(size_kw: 5) + new_generator = URBANopt::Reporting::DefaultReports::Generator.new(size_kw: 8) total_generator = URBANopt::Reporting::DefaultReports::Generator.add_generator(generator, new_generator) expect(total_generator.size_kw).to eq(13) end @@ -241,9 +240,8 @@ end it 'can report location results' do - location = URBANopt::Reporting::DefaultReports::Location.new({ latitude_deg: 13, longitude_deg: -61.24, }) + location = URBANopt::Reporting::DefaultReports::Location.new({ latitude_deg: 13, longitude_deg: -61.24 }) expect(location.latitude_deg).to eq 13 - expect(location.longitude_deg).to eq -61.24 + expect(location.longitude_deg).to eq(-61.24) end - end