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

Support showing instantaneous sensor data with a custom event frequency #542

Merged
merged 41 commits into from Dec 12, 2022

Commits on Nov 27, 2022

  1. Upgrade timely-beliefs

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 27, 2022
    Copy the full SHA
    1d803c1 View commit details
    Browse the repository at this point in the history

Commits on Nov 28, 2022

  1. Use requested event frequency instead of df.event_resolution, and com…

    …e up with default for instantaneous sensors
    
    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 28, 2022
    Copy the full SHA
    c1fe8b8 View commit details
    Browse the repository at this point in the history
  2. Extend docstring for TimedBelief.search

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 28, 2022
    Copy the full SHA
    d4f5ac3 View commit details
    Browse the repository at this point in the history
  3. Return event resolution explicitly, because it may differ from the ev…

    …ent frequency
    
    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 28, 2022
    Copy the full SHA
    1f633da View commit details
    Browse the repository at this point in the history
  4. Make sure reindex is pass a (non-zero) timedelta instead of a possibl…

    …e None value
    
    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 28, 2022
    Copy the full SHA
    aa80336 View commit details
    Browse the repository at this point in the history
  5. Remove old documentation notes concerning the use of the fm0 schema f…

    …or UDI events
    
    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 28, 2022
    Copy the full SHA
    60fc05e View commit details
    Browse the repository at this point in the history
  6. Clarify resolution check for posting sensor data

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 28, 2022
    Copy the full SHA
    21d3157 View commit details
    Browse the repository at this point in the history
  7. Update notation in API documentation

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 28, 2022
    Copy the full SHA
    b267694 View commit details
    Browse the repository at this point in the history
  8. Update example endpoint

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 28, 2022
    Copy the full SHA
    713dd78 View commit details
    Browse the repository at this point in the history
  9. Add more clarity about how the resolution field is interpreted for in…

    …stantaneous sensors
    
    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 28, 2022
    Copy the full SHA
    c852a9e View commit details
    Browse the repository at this point in the history
  10. Make SourceIdField importable and usable for API validation

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 28, 2022
    Copy the full SHA
    a39c87a View commit details
    Browse the repository at this point in the history
  11. Allow filtering sensor data by source in API

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 28, 2022
    Copy the full SHA
    a6c84db View commit details
    Browse the repository at this point in the history
  12. Make SourceIdField importable and usable for API validation

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 28, 2022
    Copy the full SHA
    83dfe54 View commit details
    Browse the repository at this point in the history
  13. Allow filtering sensor data by source in API

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 28, 2022
    Copy the full SHA
    ca7d9a9 View commit details
    Browse the repository at this point in the history
  14. Show source id in chart tooltip so users have somewhere to find them

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 28, 2022
    Copy the full SHA
    d00be86 View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2022

  1. Add test for /sensors/data [GET]

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 29, 2022
    Copy the full SHA
    f4987db View commit details
    Browse the repository at this point in the history
  2. Test source field, and refactor test setup

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 29, 2022
    Copy the full SHA
    764b7cf View commit details
    Browse the repository at this point in the history
  3. Test resolution field

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 29, 2022
    Copy the full SHA
    d389c4a View commit details
    Browse the repository at this point in the history
  4. Test averaging event values when using resolution field

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 29, 2022
    Copy the full SHA
    aa2eb22 View commit details
    Browse the repository at this point in the history
  5. Add type annotations, flake8

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 29, 2022
    Copy the full SHA
    d89c22c View commit details
    Browse the repository at this point in the history
  6. Remove double line breaks

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 29, 2022
    Copy the full SHA
    62488c3 View commit details
    Browse the repository at this point in the history
  7. API changelog entry for introduction of 'source' field

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 29, 2022
    Copy the full SHA
    eb8a951 View commit details
    Browse the repository at this point in the history
  8. Missing punctuation

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 29, 2022
    Copy the full SHA
    12537d3 View commit details
    Browse the repository at this point in the history
  9. API changelog entry for return message fix

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 29, 2022
    Copy the full SHA
    5cd066c View commit details
    Browse the repository at this point in the history
  10. Add missing API documentation for optional fields

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 29, 2022
    Copy the full SHA
    30f5dbb View commit details
    Browse the repository at this point in the history
  11. Update API documentation section on sources

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 29, 2022
    Copy the full SHA
    d02dc94 View commit details
    Browse the repository at this point in the history
  12. Move test to module using fresh db for each test to avoid session flush

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 29, 2022
    Copy the full SHA
    eeb2e85 View commit details
    Browse the repository at this point in the history
  13. Faster conversion of NaN values (we were just missing the dtype conve…

    …rsion)
    
    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 29, 2022
    Copy the full SHA
    a5a150a View commit details
    Browse the repository at this point in the history
  14. Update inline comment

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 29, 2022
    Copy the full SHA
    a050342 View commit details
    Browse the repository at this point in the history
  15. Merge branch '398-support-optional-source-in-sensorsdata-get' into re…

    …sample-instantaneous-sensor-data
    
    # Conflicts:
    #	flexmeasures/api/common/schemas/sensor_data.py
    Flix6x committed Nov 29, 2022
    Copy the full SHA
    442ea6e View commit details
    Browse the repository at this point in the history
  16. Update documentation refs

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 29, 2022
    Copy the full SHA
    51139b5 View commit details
    Browse the repository at this point in the history
  17. Add test for fetching instantaneous sensor data

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 29, 2022
    Copy the full SHA
    3224d53 View commit details
    Browse the repository at this point in the history
  18. Sensor ownership is determined via asset ownership

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 29, 2022
    Copy the full SHA
    a5a81b5 View commit details
    Browse the repository at this point in the history
  19. Remove redundant flush

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 29, 2022
    Copy the full SHA
    0f6e4d6 View commit details
    Browse the repository at this point in the history
  20. black

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 29, 2022
    Copy the full SHA
    03470ac View commit details
    Browse the repository at this point in the history

Commits on Dec 2, 2022

  1. Merge branch 'main' into resample-instantaneous-sensor-data

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    
    # Conflicts:
    #	flexmeasures/api/common/schemas/sensor_data.py
    #	flexmeasures/api/v3_0/sensors.py
    #	flexmeasures/api/v3_0/tests/conftest.py
    #	flexmeasures/api/v3_0/tests/test_sensor_data_fresh_db.py
    Flix6x committed Dec 2, 2022
    Copy the full SHA
    4042d2a View commit details
    Browse the repository at this point in the history
  2. Set up initial measurements together with the sensors

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Dec 2, 2022
    Copy the full SHA
    2a9e3f5 View commit details
    Browse the repository at this point in the history
  3. Changelog entry

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Dec 2, 2022
    Copy the full SHA
    61866f1 View commit details
    Browse the repository at this point in the history
  4. Typo

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Dec 2, 2022
    Copy the full SHA
    16e056e View commit details
    Browse the repository at this point in the history

Commits on Dec 12, 2022

  1. Correct sentence

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Dec 12, 2022
    Copy the full SHA
    9c5c6f1 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'main' into resample-instantaneous-sensor-data

    # Conflicts:
    #	documentation/changelog.rst
    #	requirements/app.in
    #	requirements/app.txt
    Flix6x committed Dec 12, 2022
    Copy the full SHA
    3307ee0 View commit details
    Browse the repository at this point in the history