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

Nuevos indicadores de ESIOS (Octubre 2023) #52

Merged
merged 4 commits into from
Oct 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions .github/workflows/python2.7-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,15 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Set up Python 2.7
uses: actions/setup-python@v2
with:
python-version: "2.7"
- name: Install Python 2.7
run: |
sudo apt update
sudo apt install python2 python-pip
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 1
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 2
printf '1\n' | sudo update-alternatives --config python
cd /usr/bin
sudo ln -s /usr/bin/pip2 ./pip
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
36 changes: 0 additions & 36 deletions .github/workflows/python3.10-app.yml

This file was deleted.

36 changes: 0 additions & 36 deletions .github/workflows/python3.6-app.yml

This file was deleted.

36 changes: 0 additions & 36 deletions .github/workflows/python3.7-app.yml

This file was deleted.

36 changes: 0 additions & 36 deletions .github/workflows/python3.8-app.yml

This file was deleted.

36 changes: 0 additions & 36 deletions .github/workflows/python3.9-app.yml

This file was deleted.

15 changes: 0 additions & 15 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,6 @@ http://esios.readthedocs.org/
.. image:: https://github.com/gisce/esios/actions/workflows/python2.7-app.yml/badge.svg
:target: https://github.com/gisce/esios/actions/workflows/python2.7-app.yml

.. image:: https://github.com/gisce/esios/actions/workflows/python3.6-app.yml/badge.svg
:target: https://github.com/gisce/esios/actions/workflows/python3.6-app.yml

.. image:: https://github.com/gisce/esios/actions/workflows/python3.7-app.yml/badge.svg
:target: https://github.com/gisce/esios/actions/workflows/python3.7-app.yml

.. image:: https://github.com/gisce/esios/actions/workflows/python3.8-app.yml/badge.svg
:target: https://github.com/gisce/esios/actions/workflows/python3.8-app.yml

.. image:: https://github.com/gisce/esios/actions/workflows/python3.9-app.yml/badge.svg
:target: https://github.com/gisce/esios/actions/workflows/python3.9-app.yml

.. image:: https://github.com/gisce/esios/actions/workflows/python3.10-app.yml/badge.svg
:target: https://github.com/gisce/esios/actions/workflows/python3.10-app.yml

.. image:: https://github.com/gisce/esios/actions/workflows/python3.11-app.yml/badge.svg
:target: https://github.com/gisce/esios/actions/workflows/python3.11-app.yml

Expand Down
2 changes: 2 additions & 0 deletions esios/indicators.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@ class mhpPowerFactorControl(Indicator):
class mhpEnergyBalanceFree(Indicator):
path = 'indicators/1366'

class mhpEnergyBalanceCUR(Indicator):
path = 'indicators/1367'

class mhpEnergyBalanceInc(Indicator):
path = 'indicators/1368'
Expand Down
12 changes: 12 additions & 0 deletions spec/indicators_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,18 @@
expect(data['indicator']['name']).to(
contain(u'Precio medio horario componente incumplimiento energía de balance contratación libre')
)
with it('Returns mhpEnergyBalanceCUR instance'):
#1367
e = Esios(self.token)
profile = mhpEnergyBalanceCUR(e)
assert isinstance(profile, mhpEnergyBalanceCUR)
data = profile.get(self.start_date, self.end_date)
expect(data['indicator']['short_name']).to(
equal(u'Incumplimiento energía balance CR')
)
expect(data['indicator']['name']).to(
contain(u'Precio medio horario componente incumplimiento energía de balance comercialización de referencia')
)
with it('Returns mhpEnergyBalanceInc instance'):
# 1368
e = Esios(self.token)
Expand Down
Loading