Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when trying to fetch the highest value of the last 30 days #706

Open
Elima2023 opened this issue Apr 30, 2023 · 0 comments
Open

Error when trying to fetch the highest value of the last 30 days #706

Elima2023 opened this issue Apr 30, 2023 · 0 comments

Comments

@Elima2023
Copy link

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


image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant