OpenStudioApplication icon indicating copy to clipboard operation
OpenStudioApplication copied to clipboard

A bug related to OS:Schedule:File and OS:External:File with OpenStudio App

Open macumber opened this issue 5 years ago • 7 comments

Issue is with OpenStudio

https://github.com/NREL/OpenStudio/issues/4046

macumber avatar Aug 16 '20 21:08 macumber

Let’s keep this open to see if there is an app specific component. We may want to leave issues open here until we verify that the os fix resolved the app issue

macumber avatar Aug 22 '20 21:08 macumber

  1. Running a workflow with the measure generates output csvs, output csvs end up in generated files directory, idf files point to schedules in temp directory (fine for simulation)
  2. Running measure in apply now generates the csvs, does not properly bring back csvs to generated files or files directory, idf exported has blank file path

1 above works correctly, 2 is a bug

macumber avatar Sep 15 '20 05:09 macumber

This is the line that is supposed to make case 2 work: https://github.com/openstudiocoalition/OpenStudioApplication/blob/develop/src/openstudio_lib/ApplyMeasureNowDialog.cpp#L128

macumber avatar Sep 15 '20 05:09 macumber

It looks like translate to idf is what is putting the schedule in the correct location during the simulation workflow:

https://github.com/NREL/OpenStudio/blob/4d136973122860b11dcfc976fcaa0268223290d7/src/energyplus/ForwardTranslator/ForwardTranslateScheduleFixedInterval.cpp#L94

macumber avatar Sep 15 '20 05:09 macumber

We need to repoint new external file objects to files directory in apply measure now.

macumber avatar Sep 15 '20 05:09 macumber

Added example measure to issue files

macumber avatar Oct 25 '20 05:10 macumber

I think I know what the issue is, the CLI is inserting a new path generated_files in front of the WorkingFiles dir. We should copy content of generated_files back to the generated_files in the model dir in addition to the WorkingFiles which is getting copied back to the files dir

macumber avatar Nov 26 '20 19:11 macumber