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

Creation of Reporter class #641

Merged
merged 45 commits into from May 8, 2023
Merged

Creation of Reporter class #641

merged 45 commits into from May 8, 2023

Commits on Apr 14, 2023

  1. Creating Reporter and PandasReporter classes with their corresponding…

    … report_config schemas.
    
    Signed-off-by: victor <victor@seita.nl>
    victorgarcia98 committed Apr 14, 2023
    Copy the full SHA
    32e300c View commit details
    Browse the repository at this point in the history

Commits on Apr 17, 2023

  1. Added Tibber Reporter.

    Signed-off-by: victor <victor@seita.nl>
    victorgarcia98 committed Apr 17, 2023
    Copy the full SHA
    ce17568 View commit details
    Browse the repository at this point in the history

Commits on Apr 20, 2023

  1. - Fixing wong DA Price value.

    - Renaming BWV and EB to english words.
    - Simplifying calculation (pandas pipeline).
    - Adding units to sensors.
    - Changing units from EUR/kWh to EUR/MWh
    - Adding assert to check maximum error
    - deserialize_report_config -> deserialize_reporter_config
    - Warning when a string starting with  `@` is used in the method query or eval.
    - Making process_pandas_args, process_pandas_kwargs and apply_transformation private methods.
    
    Signed-off-by: victor <victor@seita.nl>
    victorgarcia98 committed Apr 20, 2023
    Copy the full SHA
    848e39a View commit details
    Browse the repository at this point in the history
  2. Updating VAT units.

    Signed-off-by: victor <victor@seita.nl>
    victorgarcia98 committed Apr 20, 2023
    Copy the full SHA
    d9867fc View commit details
    Browse the repository at this point in the history

Commits on Apr 21, 2023

  1. - Attatching report to sensor

    - Output type of compute is BeliefDataFrame
    - Added a global input resolution to schem
    - ISO datetime and timedeltas
    - start, end and input_resolution are considered serialized when passed to the method compute
    - assert to check that result resolution = sensor resolution
    
    Signed-off-by: victor <victor@seita.nl>
    victorgarcia98 committed Apr 21, 2023
    Copy the full SHA
    1c9de43 View commit details
    Browse the repository at this point in the history
  2. Fixing wrong arguments to search_beliefs method.

    Signed-off-by: victor <victor@seita.nl>
    victorgarcia98 committed Apr 21, 2023
    Copy the full SHA
    f61825b View commit details
    Browse the repository at this point in the history
  3. FIxing wrong type conversion logic.

    Signed-off-by: victor <victor@seita.nl>
    victorgarcia98 committed Apr 21, 2023
    Copy the full SHA
    b01f5c3 View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2023

  1. Small reporter fixes (#647)

    * No return value
    
    Signed-off-by: F.N. Claessen <felix@seita.nl>
    
    * typo
    
    Signed-off-by: F.N. Claessen <felix@seita.nl>
    
    * plural
    
    Signed-off-by: F.N. Claessen <felix@seita.nl>
    
    * indentation
    
    Signed-off-by: F.N. Claessen <felix@seita.nl>
    
    * fix return type annotations
    
    Signed-off-by: F.N. Claessen <felix@seita.nl>
    
    * format docstring example
    
    Signed-off-by: F.N. Claessen <felix@seita.nl>
    
    * add type annotations
    
    Signed-off-by: F.N. Claessen <felix@seita.nl>
    
    * predefine instance attributes
    
    Signed-off-by: F.N. Claessen <felix@seita.nl>
    
    * remove redundant variable
    
    Signed-off-by: F.N. Claessen <felix@seita.nl>
    
    * grammar
    
    Signed-off-by: F.N. Claessen <felix@seita.nl>
    
    * support aliases
    
    Signed-off-by: F.N. Claessen <felix@seita.nl>
    
    * grammar/typos
    
    Signed-off-by: F.N. Claessen <felix@seita.nl>
    
    * test exact match
    
    Signed-off-by: F.N. Claessen <felix@seita.nl>
    
    ---------
    
    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Apr 24, 2023
    Copy the full SHA
    487233c View commit details
    Browse the repository at this point in the history
  2. Add superclass to Reporter that will be common to all three data gene…

    …rator classes: Reporter, Scheduler, Forecaster.
    
    Signed-off-by: victor <victor@seita.nl>
    victorgarcia98 committed Apr 24, 2023
    Copy the full SHA
    f34f5e1 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    1f8457e View commit details
    Browse the repository at this point in the history
  4. Add start, end, resolution, beliefs_after and beliefs_before to the `…

    …compute` method signature.
    
    Signed-off-by: victor <victor@seita.nl>
    victorgarcia98 committed Apr 24, 2023
    Copy the full SHA
    dd21c99 View commit details
    Browse the repository at this point in the history
  5. Add FLEXMEASURES_DEFAULT_DATASOURCE config to be the feault datasourc…

    …e for data generators.
    
    Signed-off-by: victor <victor@seita.nl>
    victorgarcia98 committed Apr 24, 2023
    Copy the full SHA
    58d405f View commit details
    Browse the repository at this point in the history

Commits on Apr 27, 2023

  1. Fixing wrong input type.

    Signed-off-by: victor <victor@seita.nl>
    victorgarcia98 committed Apr 27, 2023
    Copy the full SHA
    bebc320 View commit details
    Browse the repository at this point in the history
  2. Rename DataGenerator class to DataGeneratorMixin

    Signed-off-by: victor <victor@seita.nl>
    victorgarcia98 committed Apr 27, 2023
    Copy the full SHA
    0dfe5f4 View commit details
    Browse the repository at this point in the history
  3. Reduce logging level from warning to debug.

    Signed-off-by: victor <victor@seita.nl>
    victorgarcia98 committed Apr 27, 2023
    Copy the full SHA
    7830e33 View commit details
    Browse the repository at this point in the history
  4. Merge branch 'main' into 626-add-reporter-class

    Signed-off-by: victor <victor@seita.nl>
    victorgarcia98 committed Apr 27, 2023
    Copy the full SHA
    e378ac6 View commit details
    Browse the repository at this point in the history
  5. Copy the full SHA
    5166264 View commit details
    Browse the repository at this point in the history
  6. Register Reporter to the app context.

    Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
    victorgarcia98 committed Apr 27, 2023
    Copy the full SHA
    6ab84df View commit details
    Browse the repository at this point in the history
  7. Allowing to use BeliefsDataFrame specific method in the schema.

    Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
    victorgarcia98 committed Apr 27, 2023
    Copy the full SHA
    79fe12f View commit details
    Browse the repository at this point in the history
  8. Copy the full SHA
    a64550b View commit details
    Browse the repository at this point in the history

Commits on Apr 28, 2023

  1. Fixed wrong method. TODO: test with a plugin.

    Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
    victorgarcia98 committed Apr 28, 2023
    Copy the full SHA
    4c86878 View commit details
    Browse the repository at this point in the history
  2. Using module name instead of the module object.

    Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
    victorgarcia98 committed Apr 28, 2023
    Copy the full SHA
    5ca52eb View commit details
    Browse the repository at this point in the history

Commits on May 1, 2023

  1. use belief_time instead of beliefs_before and beliefs_after (#652)

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed May 1, 2023
    Copy the full SHA
    12267d3 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    723ed02 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    5a6590e View commit details
    Browse the repository at this point in the history
  4. Fixing example.

    Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
    victorgarcia98 committed May 1, 2023
    Copy the full SHA
    cc47742 View commit details
    Browse the repository at this point in the history
  5. Fixing grammar.

    Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
    victorgarcia98 committed May 1, 2023
    Copy the full SHA
    cc11809 View commit details
    Browse the repository at this point in the history
  6. Require at least 1 input sensor for the tb_query_config.

    Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
    victorgarcia98 committed May 1, 2023
    Copy the full SHA
    c50df17 View commit details
    Browse the repository at this point in the history

Commits on May 2, 2023

  1. Copy the full SHA
    cc8aa22 View commit details
    Browse the repository at this point in the history
  2. Bug fix: compute function was overriding the variables to the default…

    … value (None)
    
    Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
    victorgarcia98 committed May 2, 2023
    Copy the full SHA
    c36b904 View commit details
    Browse the repository at this point in the history
  3. Changing end to get 24h and fix assert condition to detect NaN.

    Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
    victorgarcia98 committed May 2, 2023
    Copy the full SHA
    3ad4113 View commit details
    Browse the repository at this point in the history
  4. Adding belief time variable to schema.

    Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
    victorgarcia98 committed May 2, 2023
    Copy the full SHA
    aba68ea View commit details
    Browse the repository at this point in the history
  5. Avoid deserializing multiple times.

    Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
    victorgarcia98 committed May 2, 2023
    Copy the full SHA
    cc545e1 View commit details
    Browse the repository at this point in the history
  6. Add scope="module" to avoid recreating objects in DB.

    Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
    victorgarcia98 committed May 2, 2023
    Copy the full SHA
    9d5dc57 View commit details
    Browse the repository at this point in the history

Commits on May 5, 2023

  1. fix: remove time paramters (start, end, ...) from the Reporter class …

    …attributes.
    
    Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
    victorgarcia98 committed May 5, 2023
    Copy the full SHA
    801e358 View commit details
    Browse the repository at this point in the history

Commits on May 8, 2023

  1. style: type hints improvements

    Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
    victorgarcia98 committed May 8, 2023
    Copy the full SHA
    99c47b4 View commit details
    Browse the repository at this point in the history
  2. style: rename tb_query_config for beliefs_search_config_schema

    Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
    victorgarcia98 committed May 8, 2023
    Copy the full SHA
    83a776f View commit details
    Browse the repository at this point in the history
  3. style: remove comment

    Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
    victorgarcia98 committed May 8, 2023
    Copy the full SHA
    97f3b15 View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    aa8a266 View commit details
    Browse the repository at this point in the history
  5. docs: add entry to changelog

    Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
    victorgarcia98 committed May 8, 2023
    Copy the full SHA
    912aa4e View commit details
    Browse the repository at this point in the history
  6. style: clarifying attribute

    Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
    victorgarcia98 committed May 8, 2023
    Copy the full SHA
    9d8c737 View commit details
    Browse the repository at this point in the history
  7. style: fix docstring

    Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
    victorgarcia98 committed May 8, 2023
    Copy the full SHA
    1383b4a View commit details
    Browse the repository at this point in the history
  8. refactor: rename beliefs_search_config_schema beliefs_search_configs

    Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
    victorgarcia98 committed May 8, 2023
    Copy the full SHA
    08020f6 View commit details
    Browse the repository at this point in the history
  9. Merge branch 'main' into 626-add-reporter-class

    Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
    victorgarcia98 committed May 8, 2023
    Copy the full SHA
    9fbb699 View commit details
    Browse the repository at this point in the history
  10. style: typo

    Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
    victorgarcia98 committed May 8, 2023
    Copy the full SHA
    96c03b3 View commit details
    Browse the repository at this point in the history