Measure_test configuration

asked 2016-02-09 19:19:49 -0600

ngkhanh's avatar

updated 2016-02-10 15:49:01 -0600

hi I use notepad++ as text editor for measure writiting. Nornally, i use OS Apply measure or Measure Tab, however, there are some limited with that approach : need refresh to ensure measure data, so many steps to get error codes in stderr file. I got instructions from Measure Writing Guide and link.However, there are still some issues i did not solve, I would like to know about :

  1. Use Notepad++ as Ruby IDE and directly test and trace error like RubyMine in that link - How i use following ruby argument in notepad++ with nppExec like Rubymine ? -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) -I 'C:\Program Files (x86)\OpenStudio 1.5.0\Ruby'

  2. Measure test file structure :

a. seed OSM/Model : i need to apply many measures at same time to get result and trace error for tested measure - i often use OS measure tab to apply mauilple measure - how to do like this with notepad++ or command line ? should i need to apply measure to seed OSM then save it before run measure_test.rb?

b. Argument inputs for parallel applying measure: How to assign an hash with argument name and argument value to measure applied in seed OSM like tested measure in measure.rb

c. Which syntax should use to get trace on command line screen (notepad++) when running measure. i often use Puts and Runner.RegisterInfo. Which one i need to use or need to use another methods ?

d. if i need to include an .epw and other input file csv etc... or idf.file in seed model so which part (def) of measure_test.rb where i need make syntax for insert file ? Where to get OS API about file import/export ?

class NewMeasureTest < MiniTest::Unit::TestCase
def setup
#add setup for use last run file or rerun again  - reporting measure
def test_agruments
  #test arguments here (right number, error with bad input, etc...)
  def test run measure
    # get result and assert it
end #class
edit retag flag offensive close merge delete



It will be easier to answer your questions if you ask more focused questions. In the future, please try limiting each question to a single topic.

macumber's avatar macumber  ( 2016-02-10 11:54:27 -0600 )edit

Ok but if i do not ask all of them, i will not be able to get a measure test run. Which one you can answer first then i move it into new thread ?

ngkhanh's avatar ngkhanh  ( 2016-02-10 15:46:59 -0600 )edit