Skip to content

Commit

Permalink
Merge pull request #48 from NREL/prep/v0.2.1
Browse files Browse the repository at this point in the history
Prep/v0.2.1
  • Loading branch information
corymosiman12 authored Oct 28, 2020
2 parents 507dd6b + 8874b50 commit 045a8fc
Show file tree
Hide file tree
Showing 134 changed files with 37,223 additions and 33,063 deletions.
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# OpenStudio Model Articulation Gems

## Version 0.2.1
* Add rubocop to Rakefile
* Updates the following in lib/measures:
* BarAspectRationSlicedBySpaceType
* InjectOsmGeometryIntoAnExternalIdf
* SetWindowToWallRatioByFacade
* SpaceTypeAndConstructionSetWizard
* clone_building_from_external_model
* create_DOE_prototype_building
* create_baseline_building
* create_deer_prototype_building
* create_typical_building_from_model
* create_typical_deer_building_from_model
* create_typical_doe_building_from_model
* merge_floorspace_js_with_model
* merge_spaces_from_external_file
* radiance_measure
* Adds the following to lib/measures:
* radiant_slab_with_doas


## Version 0.2.0

* Support for OpenStudio 3.0
Expand Down
21 changes: 20 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,32 @@ require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new(:spec)

require 'rubocop/rake_task'
RuboCop::RakeTask.new

# Load in the rake tasks from the base extension gem
require 'openstudio/extension/rake_task'
require 'openstudio/model_articulation'
rake_task = OpenStudio::Extension::RakeTask.new
rake_task.set_extension_class(OpenStudio::ModelArticulation::Extension)
rake_task.set_extension_class(OpenStudio::ModelArticulation::Extension, 'nrel/openstudio-model-articulation-gem')

require 'openstudio_measure_tester/rake_task'
OpenStudioMeasureTester::RakeTask.new

task default: :spec

desc 'Delete measure test output'
task :delete_measure_test_outputs do
require 'fileutils'

puts 'Deleting tests/output directory from measures.'

# get measures in repo
measures = Dir.glob('**/**/**/measure.rb')

# create unique list of parent directories for measures.
measures.each do |i|
FileUtils.rm_rf(i.gsub('measure.rb', 'tests/output'))
end
puts 'deleteting test outputs'
end
2 changes: 2 additions & 0 deletions lib/measures/AssignConstructionSetToBuilding/measure.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

# *******************************************************************************
# OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
# All rights reserved.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

# *******************************************************************************
# OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
# All rights reserved.
Expand Down
2 changes: 2 additions & 0 deletions lib/measures/AssignSpaceTypeBySpaceName/measure.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

# *******************************************************************************
# OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
# All rights reserved.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

# *******************************************************************************
# OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
# All rights reserved.
Expand Down
2 changes: 2 additions & 0 deletions lib/measures/AssignSpaceTypeToBuilding/measure.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

# *******************************************************************************
# OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
# All rights reserved.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

# *******************************************************************************
# OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
# All rights reserved.
Expand Down
2 changes: 2 additions & 0 deletions lib/measures/AssignSpacesToStories/measure.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

# *******************************************************************************
# OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
# All rights reserved.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

# *******************************************************************************
# OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
# All rights reserved.
Expand Down
2 changes: 2 additions & 0 deletions lib/measures/BarAspectRatioSlicedBySpaceType/measure.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

# *******************************************************************************
# OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
# All rights reserved.
Expand Down
6 changes: 0 additions & 6 deletions lib/measures/BarAspectRatioSlicedBySpaceType/measure.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,6 @@
<usage_type>test</usage_type>
<checksum>3FDFD18A</checksum>
</file>
<file>
<filename>test.osm</filename>
<filetype>osm</filetype>
<usage_type>test</usage_type>
<checksum>60715087</checksum>
</file>
<file>
<filename>README.md</filename>
<filetype>md</filetype>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

# *******************************************************************************
# OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
# All rights reserved.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

# *******************************************************************************
# OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
# All rights reserved.
Expand Down
Loading

0 comments on commit 045a8fc

Please sign in to comment.