-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix/97 - simulation issues #98
Merged
Merged
Changes from 69 commits
Commits
Show all changes
71 commits
Select commit
Hold shift + click to select a range
3fd782c
update: README
corymosiman12 5f6511a
test: add new L000 testing file
corymosiman12 2fa8282
tests(translator): add tests for translator.write_osm, translator.run…
corymosiman12 b8b10bb
tests(translator): check results.xml file actually exists
corymosiman12 9a202ec
docs: update
corymosiman12 d55d986
refactor(translator): run_baseline_osm function
corymosiman12 63e702e
tests: add new helper function
corymosiman12 a26e117
feat(epw_file_path): add methods to access epw
corymosiman12 8da94a3
test: spec_helper update
corymosiman12 c726935
tests: update travis
corymosiman12 c2d212e
tests: update travis
corymosiman12 7303002
fix: code cleanup, additional testing
corymosiman12 427c841
fix: code cleanup, additional testing
corymosiman12 07d2469
docs: update README
corymosiman12 5b15a1e
tests(fix): typo
corymosiman12 83ea1d0
update: README
corymosiman12 1661a13
update: travis
corymosiman12 9862468
tests(fix)
corymosiman12 c8afb34
feat(constants): define centrally
corymosiman12 0ba5ce5
update: travis
corymosiman12 511876c
fix(spec): new check so simulations are not failing; results being co…
corymosiman12 f7719aa
feat(constants): remove from translator
corymosiman12 10e1719
update: remove ModelMaker inheritance, docs
corymosiman12 57b231b
tests(workflow_maker): add new tests
corymosiman12 c57614c
tests: update
corymosiman12 5095f30
update: travis
corymosiman12 6f16c68
fix: tests
corymosiman12 0470e4e
tests(workflow_maker): define expectations when no scenarios found
corymosiman12 a604755
tests: fix file
corymosiman12 3248032
refactor: files to schema v2.2.0
corymosiman12 2054d83
tests: update
corymosiman12 c9982d1
tests(fix): building_section_spec
corymosiman12 fe7b357
tests(update): breakout into new files
corymosiman12 6c202ca
tests(fix): building_spec
corymosiman12 e5c3b7c
tests: update
corymosiman12 101093b
feat(generator): move methods from spec_helper
corymosiman12 0bbdec6
tests(fix): loads_system_spec
corymosiman12 48a7637
tests: fix
corymosiman12 00ccd6f
tests: fix
corymosiman12 ee26105
tests(update)
corymosiman12 6b12149
tests(update)
corymosiman12 0c73048
tests(add): helper spec to travis
corymosiman12 7123783
tests: fix
corymosiman12 dbc9370
tests: update selection tool with version
corymosiman12 21a5ee2
fix: selection tool
corymosiman12 ea08642
tests: uncomment
corymosiman12 271fe7f
tests: updaty model articulation specs so ACTUALLY checking if simula…
corymosiman12 1b94292
tests: add Chicago weather files
corymosiman12 4af24ae
tests: update tests to use Chicago weather file
corymosiman12 ff43755
updates
corymosiman12 125be82
updates
corymosiman12 aced55c
update travis
corymosiman12 66b1555
fix: building
corymosiman12 53cfa33
fix
corymosiman12 17ababb
fix: generator
corymosiman12 cf0a96c
fix
corymosiman12 8a60c98
fix: systems updates
corymosiman12 39a53d2
fixing
corymosiman12 473b98b
fix lighting system
corymosiman12 1724d4b
keep fixing
corymosiman12 028dd93
keep on it
corymosiman12 2eae6e7
fix
corymosiman12 7e25ccd
AllResourceTotal and ResourceUse annual results
corymosiman12 8bc19af
fix: monthly processing working
corymosiman12 3cdccce
fix
corymosiman12 1a8ca46
add thermostat heating and cooling schedules, many other updates
corymosiman12 2a4d5f8
rubocop:auto_correct
corymosiman12 20ab1bc
fix(loads_system): use model_get_lookup_name and space_type.setStanda…
corymosiman12 3df7d16
minor fixes
corymosiman12 211ca8d
add Report, Utility, AuditDate, Contact classes; refactor to accomodate
corymosiman12 4d6c5c1
remove unused files; SelectionTool passing; update XML files per use …
corymosiman12 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
source 'http://rubygems.org' | ||
|
||
gemspec | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
@@ -47,4 +49,29 @@ require 'openstudio/model_articulation' | |
rake_task = OpenStudio::Extension::RakeTask.new | ||
rake_task.set_extension_class(OpenStudio::ModelArticulation::Extension) | ||
|
||
desc 'Convert tabs to spaces' | ||
task :remove_tabs do | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes! |
||
Dir['examples/**/*.xml', 'BuildingSync.xsd'].each do |file| | ||
puts " Cleaning #{file}" | ||
doc = Nokogiri.XML(File.read(file)) do |config| | ||
config.default_xml.noblanks | ||
end | ||
|
||
doc.xpath('//comment()').each do |node| | ||
if node.text.match?(/XMLSpy/) | ||
node.remove | ||
end | ||
end | ||
|
||
File.open(file, 'w') { |f| f << doc.to_xml(indent: 2) } | ||
end | ||
|
||
if File.exist? 'BuildingSync.json' | ||
f = JSON.parse(File.read('BuildingSync.json')) | ||
File.open('BuildingSync.json', 'w') do |file| | ||
file << JSON.pretty_generate(f) | ||
end | ||
end | ||
end | ||
|
||
task default: :spec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/usr/bin/env ruby | ||
# frozen_string_literal: true | ||
|
||
require 'bundler/setup' | ||
require 'buildingsync' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# frozen_string_literal: true | ||
|
||
# ******************************************************************************* | ||
# OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC. | ||
# BuildingSync(R), Copyright (c) 2015-2020, Alliance for Sustainable Energy, LLC. | ||
# All rights reserved. | ||
# | ||
# Redistribution and use in source and binary forms, with or without | ||
# modification, are permitted provided that the following conditions are met: | ||
# | ||
# (1) Redistributions of source code must retain the above copyright notice, | ||
# this list of conditions and the following disclaimer. | ||
# | ||
# (2) Redistributions in binary form must reproduce the above copyright notice, | ||
# this list of conditions and the following disclaimer in the documentation | ||
# and/or other materials provided with the distribution. | ||
# | ||
# (3) Neither the name of the copyright holder nor the names of any contributors | ||
# may be used to endorse or promote products derived from this software without | ||
# specific prior written permission from the respective party. | ||
# | ||
# (4) Other than as required in clauses (1) and (2), distributions in any form | ||
# of modifications or other derivative works may not use the "OpenStudio" | ||
# trademark, "OS", "os", or any other confusingly similar designation without | ||
# specific prior written permission from Alliance for Sustainable Energy, LLC. | ||
# | ||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) AND ANY CONTRIBUTORS | ||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, | ||
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER(S), ANY CONTRIBUTORS, THE | ||
# UNITED STATES GOVERNMENT, OR THE UNITED STATES DEPARTMENT OF ENERGY, NOR ANY OF | ||
# THEIR EMPLOYEES, BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT | ||
# OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
# ******************************************************************************* | ||
|
||
module BuildingSync | ||
# ResourceUse class | ||
class AllResourceTotal | ||
include BuildingSync::Helper | ||
include BuildingSync::XmlGetSet | ||
def initialize(base_xml, ns) | ||
@base_xml = base_xml | ||
@ns = ns | ||
|
||
help_element_class_type_check(base_xml, 'AllResourceTotal') | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# frozen_string_literal: true | ||
|
||
# ******************************************************************************* | ||
# OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC. | ||
# BuildingSync(R), Copyright (c) 2015-2020, Alliance for Sustainable Energy, LLC. | ||
# All rights reserved. | ||
# | ||
# Redistribution and use in source and binary forms, with or without | ||
# modification, are permitted provided that the following conditions are met: | ||
# | ||
# (1) Redistributions of source code must retain the above copyright notice, | ||
# this list of conditions and the following disclaimer. | ||
# | ||
# (2) Redistributions in binary form must reproduce the above copyright notice, | ||
# this list of conditions and the following disclaimer in the documentation | ||
# and/or other materials provided with the distribution. | ||
# | ||
# (3) Neither the name of the copyright holder nor the names of any contributors | ||
# may be used to endorse or promote products derived from this software without | ||
# specific prior written permission from the respective party. | ||
# | ||
# (4) Other than as required in clauses (1) and (2), distributions in any form | ||
# of modifications or other derivative works may not use the "OpenStudio" | ||
# trademark, "OS", "os", or any other confusingly similar designation without | ||
# specific prior written permission from Alliance for Sustainable Energy, LLC. | ||
# | ||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) AND ANY CONTRIBUTORS | ||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, | ||
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER(S), ANY CONTRIBUTORS, THE | ||
# UNITED STATES GOVERNMENT, OR THE UNITED STATES DEPARTMENT OF ENERGY, NOR ANY OF | ||
# THEIR EMPLOYEES, BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT | ||
# OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
# ******************************************************************************* | ||
|
||
SCHEMA_2_0_URL = 'https://raw.githubusercontent.com/BuildingSync/schema/v2.0/BuildingSync.xsd' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thanks for making these obvious. Is there documentation (in the README) saying to update these when upgrading the version of BuidngSync? |
||
SCHEMA_2_2_0_URL = 'https://raw.githubusercontent.com/BuildingSync/schema/v2.2.0/BuildingSync.xsd' | ||
PHASE_0_BASE_OSW_FILE_PATH = File.expand_path(File.join(__dir__, 'makers/phase_zero_base.osw')) | ||
WORKFLOW_MAKER_JSON_FILE_PATH = File.expand_path(File.join(__dir__, 'makers/workflow_maker.json')) | ||
BUILDING_AND_SYSTEMS_FILE_PATH = File.expand_path(File.join(__dir__, 'model_articulation/building_and_system_types.json')) | ||
|
||
# Standards strings | ||
ASHRAE90_1 = 'ASHRAE90.1' | ||
CA_TITLE24 = 'CaliforniaTitle24' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are going to run out of travis credits pretty soon. Leave this as-is, but we will need to move over to github actions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we are already out...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
travis definitely fits in 2020