-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Update standards #244
Update standards #244
Conversation
@jmarrec i re-exported 90_1_2013.osm, if you have time to see if it makes sense tomorrow i could look at running to export all the other standards too |
Whoops, accidentally exported with 2.9.1, re-doing with 3.1.0-rc1 now |
OK, updated with 3.1.0-rc1 |
Conflicts: src/openstudio_app/Resources/90_1_2013.osm
195cc24
to
a189c23
Compare
@macumber In order to have a cleaner history, I first copied the standards script as-is then cherry picked your commits atop of it, so I could better the changes you made to it. I then force-pushed so make sure to update your refs |
@macumber I copied the existing 90.1-2013.osm, and VT'ed it to 3.1.0-rc1. Then I copied yours. I've ran a regular diff, but that's a bit hard to follow sometimes, so I made this small helper:
I didn't find any concerning differences. Construction sets for eg are named per ASHRAE 169-2013 now versus ASHRAE 169-2006 before.
Diff all object names:
|
Generating a single template: *** Finished all templates at: 2020-10-07 11:28:21 +0200, time elapsed = 15.5 min. |
Testing is over, use the full number of templates
… option: in_processes is needed not in_threads!
…sing std=90.1.2013 std.standars_data now only contains that code, not all
Ok, I ran all 16 templates after fixing the Parallel thing, took 36min.
DEER 2017 (and 2020) failed though.
|
ad40208 should fix that @macumber The "problem" with DEER 2017 is that the data doesn't contain the boilers. template_name = "DEER 2017"
std_applier = Standard.build(template_name)
std_applier.standards_data.keys
=> ["parking",
"hvac_inference",
"climate_zone_sets",
"materials",
"climate_zones",
"fans",
"constructions",
"size_category",
"schedules",
"curves",
"entryways",
"chillers",
"refrigeration_walkins",
"refrigeration_system_lineup",
"prototype_inputs",
"construction_properties",
"elevators",
"refrigerated_cases",
"unitary_acs",
"space_types",
"refrigeration_condenser",
"exterior_lighting",
"refrigeration_compressors",
"motors",
"heat_pumps",
"refrigeration_system",
"heat_rejection",
"heat_pumps_heating",
"water_heaters",
"economizers",
"construction_sets"] For DEER 2020, it's the space types that are missing
|
7de777d
to
ad40208
Compare
class FakeSqlFile | ||
end | ||
|
||
module OpenStudio | ||
module Model | ||
|
||
class Model | ||
def getAutosizedValue(object, str, units) | ||
puts "OH YEAH" | ||
STDOUT.flush | ||
|
||
case str | ||
when 'Design Size Rated Air Flow Rate' | ||
return OpenStudio::OptionalDouble.new(1) | ||
when 'Design Size Gross Rated Total Cooling Capacity' | ||
return OpenStudio::OptionalDouble.new(1) | ||
when 'Design Size Gross Rated Sensible Heat Ratio' | ||
return OpenStudio::OptionalDouble.new(1) | ||
end | ||
|
||
super(object, str, units) | ||
end | ||
|
||
def sqlFile | ||
return FakeSqlFile.new | ||
end | ||
end | ||
end | ||
end |
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.
@macumber I've merged the branch since this works now. But I'm curious why you added that bit, and whether we couldn't at least remove the "OH YEAH" or something.
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.
This code in Standards requires a sizing run so it can find sizes. I wanted to fake that out so we didn't have to do a sizing run to generate standards OSMs. I just left in OH YEAH so I could see where it was being called. It's just for debugging, can be removed
@jmarrec i am just trying to hack this to get it to run right now