From 481d92855074e060db6c2c1ffe22449831e44012 Mon Sep 17 00:00:00 2001 From: Victor Miguel Rocha Date: Mon, 13 Jan 2025 15:40:27 -0300 Subject: [PATCH] =?UTF-8?q?Remove=20teste=20de=20Ordem=20de=20Servi=C3=A7o?= =?UTF-8?q?=20regular=20do=20gtfs=20(#386)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * remove verificação de tab * atualiza changelog --- .../br_rj_riodejaneiro_gtfs/CHANGELOG.md | 5 +++++ .../br_rj_riodejaneiro_gtfs/utils.py | 19 ++++++++----------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/pipelines/migration/br_rj_riodejaneiro_gtfs/CHANGELOG.md b/pipelines/migration/br_rj_riodejaneiro_gtfs/CHANGELOG.md index fc4bd135..f7616363 100644 --- a/pipelines/migration/br_rj_riodejaneiro_gtfs/CHANGELOG.md +++ b/pipelines/migration/br_rj_riodejaneiro_gtfs/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog - gtfs +## [1.2.1] - 2025-01-13 + +### Corrigido +- Removido teste de Ordem de Serviço regular (https://github.com/prefeitura-rio/pipelines_rj_smtr/pull/386) + ## [1.2.0] - 2025-01-03 ### Adicionado diff --git a/pipelines/migration/br_rj_riodejaneiro_gtfs/utils.py b/pipelines/migration/br_rj_riodejaneiro_gtfs/utils.py index 0f106d98..9d7a9a13 100644 --- a/pipelines/migration/br_rj_riodejaneiro_gtfs/utils.py +++ b/pipelines/migration/br_rj_riodejaneiro_gtfs/utils.py @@ -204,18 +204,15 @@ def processa_ordem_servico( None """ - if ( - len([sheet for sheet in sheetnames if "ANEXO I:" in sheet]) != 1 - and regular_sheet_index is None - ): - raise Exception( - "More than 1 regular sheet in the file. Please specify the regular sheet index." - ) + # if ( + # len([sheet for sheet in sheetnames if "ANEXO I " in sheet]) != 1 + # and regular_sheet_index is None + # ): + # raise Exception( + # "More than 1 regular sheet in the file. Please specify the regular sheet index." + # ) - if regular_sheet_index is None: - regular_sheet_index = next( - (i for i, name in enumerate(sheetnames) if "ANEXO I" in name), None - ) + regular_sheet_index = next((i for i, name in enumerate(sheetnames) if "ANEXO I" in name), None) quadro_geral = pd.DataFrame()