From fa082d429beb599d1993b7c0fd7054ebba96e400 Mon Sep 17 00:00:00 2001 From: Katon Minhas Date: Fri, 31 Jan 2025 19:45:33 +0000 Subject: [PATCH] Merged in hotfix/fix_carveout_return (pull request #378) Fix carveout ind call * Fix carveout ind call Approved-by: Alex Galarce --- fieldExtraction/src/investment/one_to_n_funcs.py | 2 +- fieldExtraction/src/utils/io_utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fieldExtraction/src/investment/one_to_n_funcs.py b/fieldExtraction/src/investment/one_to_n_funcs.py index 29189b6..009ae2d 100644 --- a/fieldExtraction/src/investment/one_to_n_funcs.py +++ b/fieldExtraction/src/investment/one_to_n_funcs.py @@ -210,7 +210,7 @@ def reimbursement_level(exhibit_text, filename, reimbursement_level_fields): reimbursement_primary_answers = get_reimbursement_primary(reimbursement_level_fields, exhibit_text, filename) # Returns list of dicts carveout_answers = get_carveout_ind(reimbursement_primary_answers, filename) - methodology_breakout_answers = get_methodology_breakout(reimbursement_primary_answers, filename) + methodology_breakout_answers = get_methodology_breakout(carveout_answers, filename) return methodology_breakout_answers diff --git a/fieldExtraction/src/utils/io_utils.py b/fieldExtraction/src/utils/io_utils.py index 223ebc6..dea944b 100644 --- a/fieldExtraction/src/utils/io_utils.py +++ b/fieldExtraction/src/utils/io_utils.py @@ -216,7 +216,7 @@ def write_local(df, filename, run_timestamp, output_type): elif output_type == "individual": base_filename = os.path.splitext(filename)[0].strip() os.makedirs(config.OUTPUT_DIRECTORY, exist_ok=True) - df.to_csv(os.path.join(config.OUTPUT_DIRECTORY, base_filename, '-RESULTS.csv'), index=False) + df.to_csv(os.path.join(config.OUTPUT_DIRECTORY, f'{base_filename}_-RESULTS.csv'), index=False) def write_s3(df, filename, run_timestamp, output_type):