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

FlexMeasures Client basic functionality #7

Merged
merged 61 commits into from
May 8, 2023
Merged

Conversation

GustaafL
Copy link
Collaborator

@GustaafL GustaafL commented May 4, 2023

  • request function
  • authentication
  • polling requests
  • get assets
  • get sensors
  • post measurements
  • trigger schedule
  • get schedule
  • error handling

Please don't review script_guus.py. Print statements can be left in for now. It would be nice to keep bigger changes out and put them into issues or TODO's that can be branched from the dev branch

GustaafL and others added 30 commits April 19, 2023 14:47
…s pandas. To run test, we can use TOX (pip install tox) and run tox

Signed-off-by: victor <[email protected]>
Signed-off-by: F.N. Claessen <[email protected]>
Signed-off-by: F.N. Claessen <[email protected]>
Signed-off-by: F.N. Claessen <[email protected]>
Signed-off-by: F.N. Claessen <[email protected]>
Signed-off-by: F.N. Claessen <[email protected]>
Signed-off-by: F.N. Claessen <[email protected]>
Signed-off-by: F.N. Claessen <[email protected]>
Signed-off-by: F.N. Claessen <[email protected]>
@GustaafL
Copy link
Collaborator Author

GustaafL commented May 5, 2023

#2 (comment)

This one is still open from PR #2 , not sure what to do there

@GustaafL GustaafL requested a review from victorgarcia98 May 5, 2023 08:56
@GustaafL GustaafL requested a review from Flix6x May 8, 2023 10:03
Copy link
Collaborator

@victorgarcia98 victorgarcia98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for addressing the changes and opening the Issues. Good stuff.

I think it's almost done, just a few minor type hints that might be improved.

src/flexmeasures_client/client.py Outdated Show resolved Hide resolved
src/flexmeasures_client/client.py Outdated Show resolved Hide resolved
src/flexmeasures_client/client.py Show resolved Hide resolved
src/flexmeasures_client/client.py Outdated Show resolved Hide resolved
src/flexmeasures_client/client.py Outdated Show resolved Hide resolved
src/flexmeasures_client/client.py Outdated Show resolved Hide resolved
tests/test_client.py Show resolved Hide resolved
tests/test_client.py Show resolved Hide resolved
Copy link
Contributor

@Flix6x Flix6x left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Looking forward to using this.

Please just test whether test__init__ still succeeds after removing line 18 from test_client.py (which sets the api_version).

src/flexmeasures_client/client.py Show resolved Hide resolved
src/flexmeasures_client/constants.py Outdated Show resolved Hide resolved
tests/test_client.py Show resolved Hide resolved
src/flexmeasures_client/response_handling.py Show resolved Hide resolved
tests/test_client.py Show resolved Hide resolved
@GustaafL GustaafL requested a review from victorgarcia98 May 8, 2023 15:04
@victorgarcia98 victorgarcia98 self-requested a review May 8, 2023 15:04
Copy link
Collaborator

@victorgarcia98 victorgarcia98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!
Looking forward to use it in the S2 Handler and other places, of course.

@GustaafL GustaafL merged commit e5cc684 into dev May 8, 2023
@GustaafL GustaafL deleted the test-dev-client-errors branch May 8, 2023 15:15
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

Successfully merging this pull request may close these issues.

3 participants