Skip to content

Python Measures break after opening OS 1.4.0 #767

@jzsustain

Description

@jzsustain

Issue overview

Python measures fail to show up after accessing measures in OS 1.4. Seems like OS 1.4 is trying to load them. This causes them not to show up in OS 1.8.

Current Behavior

Measures no longer show up in OS 1.8.

This error appears in the measure xml after accessing measures in OS 1.4:

Unable to locate primary Ruby script path for BCLMeasure 'new_measure' located at /.../OpenStudio/Measures/new_measure 1.

Expected Behavior

Python measures should still show up in OS 1.8.

Steps to Reproduce

  1. Create or already have an OS measure written in python
  2. Open OS 1.4
  3. Go to measures tab or hit apply measure now in OS 1.4
  4. Python measure no longer shows up in OS 1.8

Possible Solution

Not sure if there is a way to do it already, but a short term fix would be being able to set a different measures directory for different OS versions should fix it. When I try to change the measures directory for OS 1.4, it also changes it for OS 1.8. A way to fix the broken measures would also be helpful.

Details

Environment

Python

Some additional details about your environment for this issue (if relevant):

  • Platform (Operating system, version): Mac M3
  • Version of OpenStudioApplication (if using an intermediate build, include SHA): 1.4/1.8

Context

Need a way to open OS 1.4 and not have all the Python measures break/not appear in OS 1.8.

Metadata

Metadata

Assignees

No one assigned

    Labels

    TriageIssue needs to be assessed and labeled, further information on reported might be needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions