How to use the openstudio.openStudioLongVersion function in openstudio

To help you get started, we’ve selected a few openstudio examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github NREL / OpenStudio-workflow-gem / spec / files / python_measure / measures / PythonMeasure / measure.py View on Github external
)
        print("Hello x5")
        # add a new space to the model
        new_space = openstudio.model.Space(model)
        print("Hello x6")
        new_space.setName(space_name)
        print("Hello x7")
        # echo the new space's name back to the user
        runner.registerInfo(f"Space {new_space.nameString()} was added.")
        print("Hello x8")
        # report final condition of model
        #runner.registerFinalCondition(f"The building finished with {len(model.getSpaces())} spaces.")
        runner.registerFinalCondition("the measure ended")
        print("end of measure")
        #print(f"runner.workflow(): {runner.workflow()}")
        print(openstudio.openStudioLongVersion())
        return True