Skip to content

Nuevo indicador cuartohorario para el Precio Medio de Desvíos#66

Merged
davidmunoznovoa merged 2 commits intomasterfrom
84512_new_mhpMeasuredDeviationsFreeQh_indicator
Jan 28, 2026
Merged

Nuevo indicador cuartohorario para el Precio Medio de Desvíos#66
davidmunoznovoa merged 2 commits intomasterfrom
84512_new_mhpMeasuredDeviationsFreeQh_indicator

Conversation

@davidmunoznovoa
Copy link
Copy Markdown
Member

@davidmunoznovoa davidmunoznovoa commented Jan 28, 2026

Objetivos

  • Añadir los siguientes indicadores cuartohorarios a la librería:

    • 799: Precio medio horario componente desvíos medidos contratación libre
  • Implementar tests para los indicadores.

Relacionado

  • Task 84512

@davidmunoznovoa davidmunoznovoa self-assigned this Jan 28, 2026
@davidmunoznovoa davidmunoznovoa changed the title New indicator and test Nuevo indicador cuartohorario para el Precio Medio de Desvíos Jan 28, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a new quarter-hourly variant indicator for measured deviations in the free market, along with its corresponding test. The new indicator mhpMeasuredDeviationsFreeQh uses the same API endpoint as the hourly variant but retrieves data at 15-minute granularity.

Changes:

  • Added mhpMeasuredDeviationsFreeQh class to support quarter-hourly time granularity for indicator 799
  • Added test case validating the new indicator's behavior and expected API response

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
esios/indicators.py Added new mhpMeasuredDeviationsFreeQh indicator class with fifteen_minutes time truncation, sharing path with existing hourly variant
spec/indicators_spec.py Added test case in new "Medium Quarter-Hourly Price Components" context to verify the new indicator

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread esios/indicators.py
Comment on lines +193 to +195
class mhpMeasuredDeviationsFreeQh(Indicator):
path = 'indicators/799'
time_trunc = 'fifteen_minutes'
Copy link

Copilot AI Jan 28, 2026

Choose a reason for hiding this comment

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

Missing blank line before class definition. The codebase consistently uses two blank lines between class definitions (see lines 186-202 for examples). Add a blank line before this class definition to maintain consistency with the established coding style.

Copilot uses AI. Check for mistakes.
Comment thread esios/indicators.py

class mhpMeasuredDeviationsFreeQh(Indicator):
path = 'indicators/799'
time_trunc = 'fifteen_minutes'
Copy link

Copilot AI Jan 28, 2026

Choose a reason for hiding this comment

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

Missing blank line after class definition. The codebase consistently uses two blank lines between class definitions (see surrounding code at lines 190-202). Add a blank line after this class definition to maintain consistency with the established coding style.

Copilot uses AI. Check for mistakes.
Comment thread spec/indicators_spec.py
)
with context('Medium Quarter-Hourly Price Components'):
with it('Returns mhpMeasuredDeviationsFreeQh'):
#799
Copy link

Copilot AI Jan 28, 2026

Choose a reason for hiding this comment

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

Missing space after comment symbol. The codebase consistently uses a space after the hash symbol in comments (see lines 246, 261, 580, 594, 608, etc.). Change this to include a space after the hash.

Copilot uses AI. Check for mistakes.
@davidmunoznovoa davidmunoznovoa marked this pull request as ready for review January 28, 2026 16:45
@davidmunoznovoa davidmunoznovoa merged commit a69f35a into master Jan 28, 2026
2 checks passed
@davidmunoznovoa davidmunoznovoa deleted the 84512_new_mhpMeasuredDeviationsFreeQh_indicator branch January 28, 2026 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants