lib/openstudio-standards/btap/fileio.rb in openstudio-standards-0.5.0 vs lib/openstudio-standards/btap/fileio.rb in openstudio-standards-0.6.0.rc1
- old
+ new
@@ -558,21 +558,9 @@
raise "#{model_path_string} couldn't be found"
end
return model
end
- #load a sql file, exiting and erroring if a problem is found
- def safe_load_sql(sql_path_string)
- sql_path = OpenStudio::Path.new(sql_path_string)
- if OpenStudio::exists(sql_path)
- sql = OpenStudio::SqlFile.new(sql_path)
- else
- puts "Error: #{sql_path} couldn't be found"
- exit
- end
- return sql
- end
-
#function to wrap debug == true puts
def debug_puts(puts_text)
if Debug_Mode == true
puts "#{puts_text}"
end
\ No newline at end of file