Skip to content
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
11 changes: 10 additions & 1 deletion enerdata/contracts/tariff.py
Original file line number Diff line number Diff line change
Expand Up @@ -1164,6 +1164,14 @@ def __init__(self, **kwargs):
self.cof = '3.0TDVE'


class T62TDVE(T62TD):
"""Classe que implementa la Tarifa 6.2TDVE."""
def __init__(self, **kwargs):
super(T62TDVE, self).__init__(**kwargs)
self.code = '6.2TDVE'
self.cof = None


class T1P(Tariff):
def __init__(self):
super(T1P, self).__init__()
Expand Down Expand Up @@ -1264,6 +1272,7 @@ def get_tariff_by_code(code):
'6.3TD': T63TD,
'6.4TD': T64TD,
'3.0TDVE': T30TDVE,
'6.1TDVE': T61TDVE
'6.1TDVE': T61TDVE,
'6.2TDVE': T62TDVE
}
return available.get(code, None)
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pytz
workalendar<8.0.0
pandas>=0.23.4
pandas>=0.23.4,<3.0.0
requests
six
xlrd==1.2.0
Expand Down