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

Revision history [back]

click to hide/show revision 1
initial version

Parametric Analysis using EPPY, EPPY unable to find field parameters?

Hi all,

As the title says I am trying to generate parametric analysis however, when I pass the function my argument for "parameter" I am unable to assign it as an EPPY attribute and get this error:

"eppy.bunch_subclass.BadEPFieldError: unable to find field parameter"

In this case I am trying to tell it to select the "Tilt_Angle_from_WindowDoor" field in the "Shading:Overhang" Object but it doesn't seem to take. I know the field name is correct as it works outside of the function.

def single_valStudy(value_range,IDF,IDF_obj,obj_range,parameter,FileName,folder_path):
study=[]
for i in range(0,(len(value_range)),1):
    for b in range(0,obj_range,1):
        idf_l=IDF
        a=idf_l.idfobjects[IDF_obj][b]
        c=parameter
        d=a.c=value_range[i]
        study.append(idf_l)
        os.chdir(folder_path)
        idf_l.saveas(FileName.format(d))
return study

Parametric Analysis using EPPY, EPPY unable to find field parameters?

Hi all,

As the title says I am trying to generate parametric analysis however, when I pass the function my argument for "parameter" I am unable to assign it as an EPPY attribute and get this error:

"eppy.bunch_subclass.BadEPFieldError: unable to find field parameter"

In this case I am trying to tell it to select the "Tilt_Angle_from_WindowDoor" field in the "Shading:Overhang" Object but it doesn't seem to take. I know the field name is correct as it works outside of the function.

def single_valStudy(value_range,IDF,IDF_obj,obj_range,parameter,FileName,folder_path):
study=[]
for i in range(0,(len(value_range)),1):
    for b in range(0,obj_range,1):
        idf_l=IDF
        a=idf_l.idfobjects[IDF_obj][b]
        c=parameter
        d=a.c=value_range[i]
        study.append(idf_l)
        os.chdir(folder_path)
        idf_l.saveas(FileName.format(d))
return study