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

Revision history [back]

You need to use the --python_path and --python_home options of the CLI. For instance, I'm running OpenStudio 3.10 which uses Python 3.12. I installed Python 3.12 on my machine (I'm using pyenv), installed the copper library (pip install copper) and then ran the following and the measure ran successfully.

openstudio --python_path /Users/lero023/.pyenv/versions/3.12.10/ --python_home /Users/lero023/.pyenv/versions/3.12.10 run --workflow wkfl.osw

Here's the content of the OSW file:

{
"seed_file": "model.osm",
"weather_file": "USA_CO_Golden-NREL.724666_TMY3.epw",
"steps": [
    {
        "measure_dir_name": "GenerateIPLVChillerElectricEIRPerformanceCurves",
        "arguments": {
        "chiller_name": "TestChiller",
        "chiller_compressor_type": "centrifugal",
        "chiller_speed_control": "constant",
        "chiller_condenser_type": "water",
        "chiller_capacity_unit": "ton",
        "chiller_capacity": 150,
        "chiller_efficiency_unit": "kW/ton",
        "chiller_full_load_efficiency": 0.6,
        "chiller_part_load_efficiency": 0.5
        }
    }
]

}

The model.osm contains a Chiller:Electric:EIR object.

You It's a Python measure, so you need to use the --python_path and --python_home options of the CLI. For instance, I'm running OpenStudio 3.10 which uses Python 3.12. I installed Python 3.12 on my machine (I'm using pyenv), installed the copper library (pip install copper) and then ran the following and the measure ran successfully.

openstudio --python_path /Users/lero023/.pyenv/versions/3.12.10/ --python_home /Users/lero023/.pyenv/versions/3.12.10 run --workflow wkfl.osw

Here's the content of the OSW file:

{
"seed_file": "model.osm",
"weather_file": "USA_CO_Golden-NREL.724666_TMY3.epw",
"steps": [
    {
        "measure_dir_name": "GenerateIPLVChillerElectricEIRPerformanceCurves",
        "arguments": {
        "chiller_name": "TestChiller",
        "chiller_compressor_type": "centrifugal",
        "chiller_speed_control": "constant",
        "chiller_condenser_type": "water",
        "chiller_capacity_unit": "ton",
        "chiller_capacity": 150,
        "chiller_efficiency_unit": "kW/ton",
        "chiller_full_load_efficiency": 0.6,
        "chiller_part_load_efficiency": 0.5
        }
    }
]

}

The model.osm contains a Chiller:Electric:EIR object.

It's a Python measure, so you need to use the --python_path and --python_home options of the CLI. For instance, I'm running OpenStudio 3.10 which uses Python 3.12. I installed Python 3.12 on my machine (I'm using pyenv), installed the copper library (pip install copper) and then ran the following command, and the measure ran successfully.

openstudio --python_path /Users/lero023/.pyenv/versions/3.12.10/ --python_home /Users/lero023/.pyenv/versions/3.12.10 run --workflow wkfl.osw

Here's the content of the OSW file:

{
"seed_file": "model.osm",
"weather_file": "USA_CO_Golden-NREL.724666_TMY3.epw",
"steps": [
    {
        "measure_dir_name": "GenerateIPLVChillerElectricEIRPerformanceCurves",
        "arguments": {
        "chiller_name": "TestChiller",
        "chiller_compressor_type": "centrifugal",
        "chiller_speed_control": "constant",
        "chiller_condenser_type": "water",
        "chiller_capacity_unit": "ton",
        "chiller_capacity": 150,
        "chiller_efficiency_unit": "kW/ton",
        "chiller_full_load_efficiency": 0.6,
        "chiller_part_load_efficiency": 0.5
        }
    }
]

}

The model.osm contains a Chiller:Electric:EIR object.

It's a Python measure, so you need to use the --python_path and --python_home options of the CLI. For instance, I'm running OpenStudio 3.10 which uses Python 3.12. I installed Python 3.12 on my machine (I'm using pyenv), installed the copper library (pip install coppercopper-bem) and then ran the following command, and the measure ran successfully.

openstudio --python_path /Users/lero023/.pyenv/versions/3.12.10/ --python_home /Users/lero023/.pyenv/versions/3.12.10 run --workflow wkfl.osw

Here's the content of the OSW file:

{
"seed_file": "model.osm",
"weather_file": "USA_CO_Golden-NREL.724666_TMY3.epw",
"steps": [
    {
        "measure_dir_name": "GenerateIPLVChillerElectricEIRPerformanceCurves",
        "arguments": {
        "chiller_name": "TestChiller",
        "chiller_compressor_type": "centrifugal",
        "chiller_speed_control": "constant",
        "chiller_condenser_type": "water",
        "chiller_capacity_unit": "ton",
        "chiller_capacity": 150,
        "chiller_efficiency_unit": "kW/ton",
        "chiller_full_load_efficiency": 0.6,
        "chiller_part_load_efficiency": 0.5
        }
    }
]

}

The model.osm contains a Chiller:Electric:EIR object.

It's a Python measure, so you need to use the --python_path and --python_home options of the CLI. For instance, I'm running OpenStudio 3.10 which uses Python 3.12. I installed Python 3.12 on my machine (I'm using pyenv), installed the copper library (pip install copper-bem) and then ), ran the following command, and the measure ran successfully.

openstudio --python_path /Users/lero023/.pyenv/versions/3.12.10/ --python_home /Users/lero023/.pyenv/versions/3.12.10 run --workflow wkfl.osw

Here's the content of the OSW file:

{
"seed_file": "model.osm",
"weather_file": "USA_CO_Golden-NREL.724666_TMY3.epw",
"steps": [
    {
        "measure_dir_name": "GenerateIPLVChillerElectricEIRPerformanceCurves",
        "arguments": {
        "chiller_name": "TestChiller",
        "chiller_compressor_type": "centrifugal",
        "chiller_speed_control": "constant",
        "chiller_condenser_type": "water",
        "chiller_capacity_unit": "ton",
        "chiller_capacity": 150,
        "chiller_efficiency_unit": "kW/ton",
        "chiller_full_load_efficiency": 0.6,
        "chiller_part_load_efficiency": 0.5
        }
    }
]

}

The model.osm contains a Chiller:Electric:EIR object.