-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
bugSomething isn't workingSomething isn't working
Description
O bug foi introduzido em f803fe5.
Atualmente, a leitura do bloco de cortes ativos foi implementado de forma que ele é lido T vezes, pois a impressão é repetida no arquivo PDO_OPERACAO para cada estágio do problema.
Então, no trecho:
@property
def cortes_ativos(self) -> pd.DataFrame:
"""
Obtém tabela com informações referentes aos multiplicadores dos
cortes.
- estagio (`int`)
- indice_corte (`int`)
- multiplicador (`float`)
:return: A tabela como um dataframe
:rtype: pd.DataFrame | None
"""
b = self.data.get_blocks_of_type(BlocoCortesAtivos)
if isinstance(b, BlocoCortesAtivos):
return b.data
return Noneb retorna uma lista de blocos, sendo então necessário retornar a posição 0:
b = self.data.get_blocks_of_type(BlocoCortesAtivos)[0]Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working