Fix dd warnings debug output (#538)

This commit is contained in:
Philip Keogh
2021-07-10 16:33:21 -07:00
committed by GitHub
parent 4a9f9fbc7e
commit 06e7d10770

View File

@@ -328,16 +328,16 @@ def sean_seah_warnings(other_args: List[str], ticker: str):
print("5x Net Income < Long-Term Debt")
n_warnings += 1
if ns_parser.b_debug:
sa_net_income = np.array2string(
df_sean_seah.loc["Net Income"].values,
sa_5_net_income = np.array2string(
5 * df_sean_seah.loc["Net Income"].values,
formatter={"float_kind": lambda x: int_or_round_float(x)},
)
print(f" NET Income: {sa_net_income}")
sa_5_long_term_debt = np.array2string(
5 * df_sean_seah.loc["Long-Term Debt"].values,
print(f" 5x NET Income: {sa_5_net_income}")
sa_long_term_debt = np.array2string(
df_sean_seah.loc["Long-Term Debt"].values,
formatter={"float_kind": lambda x: int_or_round_float(x)},
)
print(f" lower than 5x Long-Term Debt: {sa_5_long_term_debt}")
print(f" lower than Long-Term Debt: {sa_long_term_debt}")
if np.any(df_sean_seah.loc["Interest Coverage Ratio"].values < 3):
print("Interest coverage ratio less than 3")