Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

A measure must follow a given structure. Your broken example does not follow the expected convention.

In a measure, the only top-level allowed files are: * measure.(rb|py|xml) * README.md, README.md.erb, LICENSE.md

Only these subfolders are approved: * docs * tests * resources

Anything outside of that is NOT copied.

This is actually documented properly: https://nrel.github.io/OpenStudio-user-documentation/reference/measure_writing_guide/#measure-file-structure

So place my_choice_constants at resources/my_choice_constants and adjust the require clause, and you should be good to go.

A measure must follow a given structure. Your broken example does not follow the expected convention.

In a measure, the only top-level allowed files are: * measure.(rb|py|xml) * are:

  • measure.(rb|py|xml)
  • README.md, README.md.erb, README.md.erb
  • LICENSE.md

Only these subfolders are approved: * docs * tests * resources

Anything outside of that is NOT copied.

This is actually documented properly: https://nrel.github.io/OpenStudio-user-documentation/reference/measure_writing_guide/#measure-file-structure

So place my_choice_constants at resources/my_choice_constants and adjust the require clause, and you should be good to go.

A measure must follow a given structure. Your broken example does not follow the expected convention.

In a measure, the only top-level allowed files are:

  • measure.(rb|py|xml)
  • README.md, README.md.erb
  • LICENSE.md

Only these subfolders are approved: * docs * tests * resources

Anything outside of that is NOT copied.

This is actually documented properly: https://nrel.github.io/OpenStudio-user-documentation/reference/measure_writing_guide/#measure-file-structure

So place my_choice_constantsmy_choice_constants.rb at resources/my_choice_constantsresources/my_choice_constants.rb and adjust the require clause, and you should be good to go.

A measure must follow a given structure. Your broken example does not follow the expected convention.

In a measure, the only top-level allowed files are:

  • measure.(rb|py|xml)
  • README.md, README.md.erb
  • LICENSE.md

Only these subfolders are approved: * docs * tests * approved:

  • docs
  • tests
  • resources

Anything outside of that is NOT copied.

This is actually documented properly: https://nrel.github.io/OpenStudio-user-documentation/reference/measure_writing_guide/#measure-file-structure

So place my_choice_constants.rb at resources/my_choice_constants.rb and adjust the require clause, and you should be good to go.