Revision history [back]
const_missing error
Hello all, I am seeing this error when resstock executes the measure 'Residential Schedule Generator', the exact error is the following:
uninitialized constant ResidentialScheduleGenerator::ScheduleGenerator> at: eval:289:in `const_missing'
lib/resources/measures/ResidentialScheduleGenerator/measure.rb:89:in `run'
The error occurs in the line 89 of the measure, I checked the measure code and found there are 4 arguments being passed including: number_of_occupants, state, vacancy_start_date, vacancy_end_date. All the arguments have defaults values, but the default value of state is just blank "".
arg = OpenStudio::Measure::OSArgument::makeStringArgument("state", true)
arg.setDisplayName("State")
arg.setDescription("Specify the state for which the schedule is to be generated")
arg.setDefaultValue("") **#Default value in this line**
args << arg
What could be the solution for this?
Thanks, Vishakh
const_missing error
Hello all, I am seeing this error when resstock executes the measure 'Residential Schedule Generator', the exact error is the following:
uninitialized constant ResidentialScheduleGenerator::ScheduleGenerator> at: eval:289:in `const_missing'
lib/resources/measures/ResidentialScheduleGenerator/measure.rb:89:in `run'
The error occurs in the line 89 of the measure, I checked the measure code and found there are 4 arguments being passed including: number_of_occupants, state, vacancy_start_date, vacancy_end_date. All the arguments have defaults values, but the default value of state is just blank "".
arg = OpenStudio::Measure::OSArgument::makeStringArgument("state", true)
arg.setDisplayName("State")
arg.setDescription("Specify the state for which the schedule is to be generated")
arg.setDefaultValue("") **#Default value in this line**
args << arg
What could be the solution for this?
Thanks, Vishakh
const_missing error
Hello all,
I am seeing this error when resstock executes the measure 'Residential Schedule Generator', the exact error is the following:
following: uninitialized constant ResidentialScheduleGenerator::ScheduleGenerator> at: eval:289:in
`const_missing' lib/resources/measures/ResidentialScheduleGenerator/measure.rb:89:in `run'const_missing' lib/resources/measures/ResidentialScheduleGenerator/measure.rb:89:in
run'
The error occurs in the line 89 of the measure, I checked the measure code and found there are 4 arguments being passed including: number_of_occupants, state, vacancy_start_date, vacancy_end_date. All the arguments have defaults values, but the default value of state is just blank "".
"".
arg = OpenStudio::Measure::OSArgument::makeStringArgument("state", true)
arg.setDisplayName("State")
arg.setDescription("Specify the state for which the schedule is to be generated")
arg.setDefaultValue("") **#Default #Default value in this line**
line args << arg
arg What could be the solution for this?
Thanks, Vishakh