×
Menu
Index

6.1.33 VEProfile

Profile manipulations.  Support for Daily, Weekly, Yearly, Compact and Free-form profiles.   The latter are considered group profiles and have additional API calls available.
 
See the Tools\plot_profiles.py sample for a detailed reference on how to read all profile types data.
See VEProject API for details on how to create new profiles
 
Basic usage:
 
project = iesve.VEProject.get_current_project()
dayprofiles, groupprofiles = project.profiles()
for id, profile in groupprofiles.items():
    if profile.is_weekly():
        print('Weekly profile {}, {}.'.format(id, profile.reference))
    elif profile.is_yearly():
        print('Yearly profile {}, {}.'.format(id, profile.reference))