Skip to content

Commit

Permalink
Black formatted files
Browse files Browse the repository at this point in the history
  • Loading branch information
rickecon committed May 20, 2024
1 parent 822a7db commit cb2875d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 15 deletions.
8 changes: 4 additions & 4 deletions ogusa/bequest_transmission.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
12 changes: 5 additions & 7 deletions ogusa/deterministic_profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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(
Expand Down
8 changes: 4 additions & 4 deletions ogusa/transfer_distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit cb2875d

Please sign in to comment.