IES Python API - Trying to extract lighting efficacy lm/W

The VE Python API allows users create simple programs using the Python Programming Language, to interact with a VE Model and/or Vista Results File
Post Reply
User avatar
Complex Potential
VE Expert
VE Expert
Posts: 467
Joined: Wed Jan 09, 2013 11:57 am
Location: Bristol, UK

IES Python API - Trying to extract lighting efficacy lm/W

Post by Complex Potential »

Hi

I am trying to automatically list the lamp lm/W or luminaire lm/W efficacy from my VE Compliance Actual model through the IES Python API.

I have examined the dictionary item ‘gain_detail’ which is where I would expect it to be, but efficacy variables appear to be missing from the key. The API can see the input method is inference but it does not go on to list the lm/W efficacy input. In addition, when inference is chosen, the ‘max_illuminance’ variable is also missing.

Is there a way to extract the lighting efficacy in lm/W and the max_illuminance when inference is chosen? Perhaps it is under a different dictionary item?

Thanks

CP
User avatar
Rhind
IES Staff
IES Staff
Posts: 87
Joined: Fri Mar 22, 2013 5:06 pm

Re: IES Python API - Trying to extract lighting efficacy lm/W

Post by Rhind »

Hi,

get_ncm_lighting() in VERoomData might be what you're looking for? From the user guide:
get_ncm_lighting() -> dictionary
Get NCM lighting data. Only use this on NCM models.

Returns:

Dictionary with the following entries:
automatic_daylight_zoning
automatic_daylight_zoning_percentage
constant_illuminance_control
control_type
design_illuminance
different_sensor_control_back
display_lighting_time_switching
has_display_lighting
lamp_efficacy
lamp_type
light_output_ratio
lighting_case
lumens_circuit_watt
luminaires_fitted
occupancy_parasitic_power
occupancy_parasitic_power_default
occupancy_parasitic_power_unit
occupancy_time_switch_control
occupancy_sensing
photoelectric_parasitic_power
photoelectric_parasitic_power_default
photoelectric_parasitic_power_unit
photoelectric_time_switch_control
sensor_type
use_efficient_lamps
use_photoelectric
wattage
wattage_unit
Hope that helps.
User avatar
Complex Potential
VE Expert
VE Expert
Posts: 467
Joined: Wed Jan 09, 2013 11:57 am
Location: Bristol, UK

Re: IES Python API - Trying to extract lighting efficacy lm/W

Post by Complex Potential »

Many thanks

That does indeed look promising. I shall take a look and see if it works!

EDIT: BTW, where did you find that user guide?? I've searched at the below link and can find no mention of the get_ncm_lighting dictionary.

https://help.iesve.com/ve2018/conventio ... 3D&mw=MjQw
User avatar
Rhind
IES Staff
IES Staff
Posts: 87
Joined: Fri Mar 22, 2013 5:06 pm

Re: IES Python API - Trying to extract lighting efficacy lm/W

Post by Rhind »

I think the web version is a little out of date, if you contact support they can give you an updated PDF manual.
User avatar
Complex Potential
VE Expert
VE Expert
Posts: 467
Joined: Wed Jan 09, 2013 11:57 am
Location: Bristol, UK

Re: IES Python API - Trying to extract lighting efficacy lm/W

Post by Complex Potential »

Thank you.

I have managed to get hold of the up to date user guide PDF.

Unfortunately the get_ncm_lighting() dictionary only seems to list data from SBEM which does not automatically match to the DSM which is what I use.

So it seems I'm back to square 1 unless you know of a way to force the 'lumens_circuit_watt' and 'design_illuminance' keys to get their entries from the NCM DSM model rather than the SBEM model?
maiquesk
VE Student
VE Student
Posts: 33
Joined: Wed Jan 19, 2011 8:58 am
Contact:

Re: IES Python API - Trying to extract lighting efficacy lm/W

Post by maiquesk »

Hi,

I don't have the answer to your question, but to the user guide problem, personally I use this command to get all the help:

Code: Select all

import iesve
help (iesve)
Then I copy / paste somewhere to do my research

Regards,

Kevin
Post Reply