Skip to content

Commit

Permalink
src/outputs/short_form.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan2Y79 committed Nov 8, 2024
1 parent 16a287f commit fb4cb63
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/outputs/frozen_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from src.outputs.outputs_helpers import create_output_df
import src.outputs.map_output_cols as map_o
from src.staging.validation import load_schema
from src.utils.local_file_mods import filename_survey_prefixer

OutputMainLogger = logging.getLogger(__name__)

Expand Down Expand Up @@ -209,7 +210,9 @@ def output_frozen_group(
# Outputting the CSV file with timestamp and run_id
tdate = datetime.now().strftime("%y-%m-%d")
survey_year = config["survey"]["survey_year"]
survey_type = config["survey"]["survey_type"]
filename = f"{survey_year}_output_frozen_group_{tdate}_v{run_id}.csv"
filename = filename_survey_prefixer(filename, survey_type)
write_csv(f"{output_path}output_frozen_group/{filename}", output)

return intram_tot_dict

0 comments on commit fb4cb63

Please sign in to comment.