RMI-PACTA / workflow.pacta.dashboard

0 stars 0 forks source link

feat: add `data_map.json` output #3

Closed jdhoffa closed 1 month ago

jdhoffa commented 2 months ago

A new data input dependency data_map.json was introduced into pacta-dashboard-svelte in https://github.com/RMI-PACTA/pacta-dashboard-svelte/pull/17

We need now ensure that this dataset is prepared properly in this repository.

The relevant preparation function can be found here: https://github.com/RMI-PACTA/pacta.portfolio.report/blob/main/R/prep_exposure_map.R

Presumably, this means we need to add something along the lines of this:

# data_map.json ----------------------------------------------------------
      prep_exposure_map(
        equity_results_map,
        bonds_results_map,
        portfolio_name,
        start_year
      ) %>%
        translate_df_contents("data_map", dictionary) %>%
        export_data_utf8("data_map", output_dir = output_dir)

To the main.R script in this repo.

FYI @AlexAxthelm @MonikaFu

AB#11581

jdhoffa commented 2 months ago

ADO update: Ticket has been added as child of: https://dev.azure.com/RMI-PACTA/2DegreesInvesting/_workitems/edit/10614

To be prioritized appropriately :-)