Skip to content

Commit

Permalink
Merge pull request #52 from gisce/new_indicators_oct23
Browse files Browse the repository at this point in the history
Nuevos indicadores de ESIOS (Octubre 2023)
  • Loading branch information
davidmunoznovoa committed Oct 16, 2023
2 parents 9a178a2 + 9035a52 commit ea07093
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 199 deletions.
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

0 comments on commit ea07093

Please sign in to comment.