lib/to_openstudio/model.rb in honeybee-openstudio-2.17.4 vs lib/to_openstudio/model.rb in honeybee-openstudio-2.17.5
- old
+ new
@@ -47,9 +47,16 @@
columns.each do |column|
row << column[i]
end
file.puts row.join(',')
end
+
+ # make sure data is written to the disk one way or the other
+ begin
+ file.fsync
+ rescue
+ file.flush
+ end
end
end
end
class Model