You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug report
Good morning Hugo, I'm using version PIconnect==0.9.0 and I'm experiencing a problem with the summary function.
I need to retrieve the 5 highest values of the last 30 days of a given tag.
Description
as a return, I am having the following error.
Traceback (most recent call last):
File "bot_piconnect.py", line 29, in
File "PIconnect\PIData.py", line 412, in summary
File "PIconnect\PI.py", line 292, in _summary
TypeError: No method matches given arguments for PIPoint.Summary: (<class 'OSIsoft.AF.Time.AFTimeRange'>, <class 'int'>, <class 'int'>, <class 'int'>)
A clear and concise description of what the bug is.
I already looked in the PIData.py file and in the PI.py to find a solution, it seems to me that it expects the function to receive 4 parameters, but in the documentation it says that it only needs 3 parameters.
How can I recover the 5 highest values of the last 30 days?
follow the snippet of my code.py
Expected behavior
The text was updated successfully, but these errors were encountered:
Bug report
Good morning Hugo, I'm using version PIconnect==0.9.0 and I'm experiencing a problem with the summary function.
I need to retrieve the 5 highest values of the last 30 days of a given tag.
Description
as a return, I am having the following error.
Traceback (most recent call last):
File "bot_piconnect.py", line 29, in
File "PIconnect\PIData.py", line 412, in summary
File "PIconnect\PI.py", line 292, in _summary
TypeError: No method matches given arguments for PIPoint.Summary: (<class 'OSIsoft.AF.Time.AFTimeRange'>, <class 'int'>, <class 'int'>, <class 'int'>)
A clear and concise description of what the bug is.
I already looked in the PIData.py file and in the PI.py to find a solution, it seems to me that it expects the function to receive 4 parameters, but in the documentation it says that it only needs 3 parameters.
How can I recover the 5 highest values of the last 30 days?
follow the snippet of my code.py
Expected behavior
The text was updated successfully, but these errors were encountered: