Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

Additional small changes #403

Merged
merged 13 commits into from
Feb 22, 2021
Merged

Additional small changes #403

merged 13 commits into from
Feb 22, 2021

Conversation

Clare2D
Copy link
Contributor

@Clare2D Clare2D commented Feb 18, 2021

A few additional changes that I thought of yesterday to improve a few things.

  • changing the parameter file name (dropping the _GENERAL) this is important so we don't end up changing the "ProjectParameters_GENERAL" that will be used online.
  • changed the other_sector_list parameter to refer to the name it has in the parameter file already

@Clare2D Clare2D requested a review from maurolepore February 18, 2021 09:01
Copy link
Contributor

@maurolepore maurolepore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Clare2D, I removed all that deals with style and paste0() to make this PR easier to understand and review. I'll submit those changes in a follow up PR.

@cjyetman can you please see if this PR raises any concern?

Comment on lines +9 to +10
csv_to_read <- list.files(path = input_path, pattern = "_Input.csv")
txt_to_read <- list.files(path = input_path, pattern = "_Input.txt")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This reverts what we did in #398

image

Is there a reason to prefer the more fragile pattern = "_Input.csv" over the more robust pattern = "_Input[.]csv$"?

@maurolepore maurolepore requested a review from cjyetman February 18, 2021 19:36
Copy link
Member

@cjyetman cjyetman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe almost everything here is related only to the "offline" version of running PACTA, and does not affect the web tool scripts, so it seems pretty safe from that perspective. I don't know or understand the reason or context for most of these changes, so I can't really judge that much.

The one thing that does concern me a bit it is the change to 0_portfolio_input_check_functions.R on L421 that changes other_sector_list to pacta_sectors_not_analysed... primarily because that could be something that affects the web tool scripts via get_and_clean_fin_data(), and I don't know anything about the purpose of that change, or if or where those objects do or do not exist.

@Clare2D Clare2D merged commit bcb6131 into master Feb 22, 2021
@Clare2D Clare2D deleted the minor-improvements branch February 22, 2021 13:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants