First time here? Check out the Help page!
2019-02-18 09:25:04 -0500 | received badge | ● Critic (source) |
2015-06-03 22:45:05 -0500 | received badge | ● Nice Question (source) |
2015-02-23 15:28:21 -0500 | asked a question | Add New Ruby Gem to OpenStudio Ruby Installation How can I install a new Gem in the Ruby installation that is installed and used by OpenStudio. I am using tiny_tds successfully outside of running OS measures but can not resolve the same require statements from inside running measures. I have tried copying the related Gem files directly from the external Ruby-200-p594 installation that works in RubyMine to the OpenStudio installation folder C:\Program Files\OpenStudio 1.6.0\ruby-install\ruby\lib\ruby\gems\2.0.0\gems but this did not resolve the issue. Is there a process for adding new Gems that OpenStudio measure will be able to find? |
2015-02-10 08:43:13 -0500 | asked a question | Ruby version for OS 1.6.x measures Is the current OpenStudio installation version 1.6.0 or development versions 1.6.x only compatible with Ruby v2.0.0-p594 as implied in the release narrative or can later builds such as v2.0.0-p598 or later versions such as v2.1.5 be used as the Ruby compiler for measures? Does the Ruby version (x64) need to be the same as the OpenStudio version |
2015-02-08 21:34:02 -0500 | asked a question | Has anyone used the Variable Interval Schedule sets in OS 1.6? I am trying to implement complex and variable schedule events either using OpenStudio Variable Interval Schedule sets or by accessing underlying EnergyPlus Schedule:Day:List or Schedule:Day:File resources. I am able to use the IDF file generated by the OS run, manually modify the schedules to add a Day:List resource and assign it to an equipment load and successfully launch and run the case using EP-Launch. I have not tested the Day:File manual addition yet but believe it will also work. I am not able to import this modified IDF back into OS after it has been modified but may be using the import operation incorrectly. I am hoping there is a more streamlined method that could be applied in OpenStudio and take advantage of the UI and post processing. I am interested in how the Variable Interval Schedule that is present in the OS 1.6 library works or any other similar approach. I was not able to find any references to this or examples. Thanks |
2014-11-24 13:55:37 -0500 | commented question | Is there a best or preferred workflow for complex OpenStudio Ruby script development including interactive debugging and execution tracing? Thank you all very much for your very fast and thorough answers. I will install RubyMine and try these approaches and come back with any questions. |
2014-11-24 13:53:35 -0500 | received badge | ● Scholar (source) |
2014-11-24 13:53:26 -0500 | received badge | ● Supporter (source) |
2014-11-24 09:46:19 -0500 | received badge | ● Student (source) |
2014-11-24 09:05:23 -0500 | asked a question | Is there a best or preferred workflow for complex OpenStudio Ruby script development including interactive debugging and execution tracing? I am developing measures for OpenStudio on a Windows 8.1 platform using Ruby. I have followed the Measures Writing Guide and this was very helpful to get started and am now moving to an extended integrated workflow. I have set up the Eclipse IDE with the Dynamic Language Toolkit (DLTK) for editing scripts and to check Ruby syntax. Does anyone have experience using this or another IDE to interactively debug and trace script execution and to provide OS library Ruby bindings completions? Is there another approach that allows interactive development and debugging? Is there a best or preferred workflow for complex script development? Question update[11/25/14] I have now installed RubyMine v7.0 and created a full measure case folder. I set the configuration options following the answers provided, adapted to my local installation. The configuration dialog that I located looks similar to the answer dialog but was in a different location at >Run>Edit Configurations>Defaults>Ruby. Maybe this is a RubyMine version issue or there is another similar dialog somewhere else? The parameters used are shown below and include the installed dev version of OS 1.5.2. I also have the source files installed and I have tried both “-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) -I ‘C:\Program Files (x86)\OpenStudio 1.5.2\Ruby’ “ and “-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) -I ‘C:\Program Files (x86)\OpenStudio 1.5.2\Ruby’ -I 'D:\OpenStudio\10 Local Repositories\OpenStudio\developer\ruby' ” for the Ruby arguments. It appears that the OpenStudio:: references are still unresolved. I have searched RubyMine help but not found how to add external libraries to the RubyMine Project. What other settings are needed to resolve the OS references? Thanks |