First time here? Check our help page!
1

get current zone timestep num in Python EMS?

I am trying and cannot find an EMS sensor or output variable that returns the present runtime zone timestep within the hours. Thanks

mechyai's avatar
312
mechyai
asked 2021-07-01 13:52:29 -0500, updated 2021-07-02 12:34:49 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

2

It sounds like you're looking for the ZoneTimeStep built-in EMS variable.

shorowit's avatar
11.8k
shorowit
answered 2021-07-01 16:20:31 -0500
edit flag offensive 0 remove flag delete link

Comments

Yes, thank you. I need the TimeStepNum built-in. However, I am using the Python API and do not see this available with the Python EMS Data Transfer/Exchange API 0.2. Do you know if there is another way to fetch it via Python? (I have made the title more specific)

mechyai's avatar mechyai (2021-07-02 12:29:24 -0500) edit

It was pointed out to me that you can retrieve TimeStepNum from the zone_time_step_number method. Apparently it was renamed for python EMS. (And for completeness, you can retrieve ZoneTimeStep from the zone_time_step method.)

shorowit's avatar shorowit (2021-07-07 19:31:17 -0500) edit

Thank you, this is exactly what I was looking for.

mechyai's avatar mechyai (2021-07-12 11:06:33 -0500) edit
add a comment see more comments