From cb2875dfdf250ed91c5e666702b7fbe9e86122d6 Mon Sep 17 00:00:00 2001 From: Richard Evans Date: Sun, 19 May 2024 23:28:05 -0600 Subject: [PATCH] Black formatted files --- ogusa/bequest_transmission.py | 8 ++++---- ogusa/deterministic_profiles.py | 12 +++++------- ogusa/transfer_distribution.py | 8 ++++---- 3 files changed, 13 insertions(+), 15 deletions(-) diff --git a/ogusa/bequest_transmission.py b/ogusa/bequest_transmission.py index 5514986b..30070b98 100644 --- a/ogusa/bequest_transmission.py +++ b/ogusa/bequest_transmission.py @@ -50,12 +50,12 @@ def get_bequest_matrix( except: # This is the case when running OG-USA from a pip install print( - "bequest_transmission.py: Reading psid_lifetime_income.csv from " + - "GitHub for get_bequest_matrix() function." + "bequest_transmission.py: Reading psid_lifetime_income.csv from " + + "GitHub for get_bequest_matrix() function." ) file_url = ( - "https://raw.githubusercontent.com/PSLmodels/OG-USA/master/data/" + - "PSID/psid_lifetime_income.csv" + "https://raw.githubusercontent.com/PSLmodels/OG-USA/master/data/" + + "PSID/psid_lifetime_income.csv" ) df = pd.read_csv(file_url) diff --git a/ogusa/deterministic_profiles.py b/ogusa/deterministic_profiles.py index fc85e3b4..ba34e713 100644 --- a/ogusa/deterministic_profiles.py +++ b/ogusa/deterministic_profiles.py @@ -47,12 +47,12 @@ def estimate_profiles(graphs=False): except: # This is the case when running OG-USA from a pip install print( - "deterministic_profiles.py: Reading psid_lifetime_income.csv " + - "from GitHub for estimate_profiles() function." + "deterministic_profiles.py: Reading psid_lifetime_income.csv " + + "from GitHub for estimate_profiles() function." ) file_url = ( - "https://raw.githubusercontent.com/PSLmodels/OG-USA/master/data/" + - "PSID/psid_lifetime_income.csv" + "https://raw.githubusercontent.com/PSLmodels/OG-USA/master/data/" + + "PSID/psid_lifetime_income.csv" ) df = pd.read_csv(file_url) @@ -141,9 +141,7 @@ def estimate_profiles(graphs=False): ) plt.legend() - plt.savefig( - os.path.join(image_dir, "lifecycle_earnings_profiles.png") - ) + plt.savefig(os.path.join(image_dir, "lifecycle_earnings_profiles.png")) # Plot of lifecycles of hourly earnings from processes from data pd.pivot_table( diff --git a/ogusa/transfer_distribution.py b/ogusa/transfer_distribution.py index 1af8819a..fb633b82 100644 --- a/ogusa/transfer_distribution.py +++ b/ogusa/transfer_distribution.py @@ -46,12 +46,12 @@ def get_transfer_matrix( except: # This is the case when running OG-USA from a pip install print( - "transfer_distribution.py: Reading psid_lifetime_income.csv " + - "from GitHub for get_transfer_matrix() function." + "transfer_distribution.py: Reading psid_lifetime_income.csv " + + "from GitHub for get_transfer_matrix() function." ) file_url = ( - "https://raw.githubusercontent.com/PSLmodels/OG-USA/master/data/" + - "PSID/psid_lifetime_income.csv" + "https://raw.githubusercontent.com/PSLmodels/OG-USA/master/data/" + + "PSID/psid_lifetime_income.csv" ) df = pd.read_csv(file_url)