Cumulative meter value in Python:Plugin

asked 2022-01-28 06:14:01 -0500

S.Wang's avatar

updated 2022-01-28 09:43:25 -0500

How can we get the cumulative value of a Output:meter in Python:Plugin?

. which API function? . which calling point?

edit retag flag offensive close merge delete

Comments

I recall some brief discussion about this here.

shorowit's avatar shorowit  ( 2022-01-28 08:22:18 -0500 )edit

@S.Wang would using the Output:Meter:Cumulative object work? This will contain the running total of an Output:Meter starting from the beginning of the simulation. Either that or use Python code to accumulate Output:Meter values as you desire.

Aaron Boranian's avatar Aaron Boranian  ( 2022-01-28 09:44:51 -0500 )edit

Thank you for replying!

I would like to get the cumulative value in my python plugin programs, but the Output:Meter:Cumulative is not accessible. (no such API.)

I also tried to get _meter_value on a calling point 'after Zone reporting', and accumulated it to generate an output variable. But this output result is not equal to the one from Output:Meter:Cumulative.

S.Wang's avatar S.Wang  ( 2022-01-28 10:10:17 -0500 )edit