Skip to content
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

Use Ruby Tempfile when writing files extracted from inside OpenStudio CLI #968

Open
asparke2 opened this issue Nov 18, 2020 · 2 comments
Open
Assignees

Comments

@asparke2
Copy link
Member

There is an issue where writing a .stat file to a temporary location doesn't work in all circumstances because the save location is relative to Dir.pwd, which is dependent on where the Ruby process is started from. Instead, use Ruby's built-in Tempfile to write the .stat file, read it, then close the Tempfile (which deletes it).

@asparke2
Copy link
Member Author

@DavidGoldwasser @tijcolem @mdahlhausen FYI so we don't lose this

@mdahlhausen
Copy link
Collaborator

The weather module refactor moved this file around. The Dir.pwd is now here.
@asparke2 thoughts on just writing it to the weather data directory as part of standards? I'm not sure temp file will work for the .epw file, since E+ needs it for the simulation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants