Skip to content

Commit

Permalink
fix(type-checking): another adjustment for type checking in qq plot f…
Browse files Browse the repository at this point in the history
…unction
  • Loading branch information
ninopleno committed Dec 14, 2023
1 parent fe3fcd9 commit ab1c60d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/anomalytics/evals/qq_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def calculate_theoretical_q(
logger.debug(
f"successfully performing theoretical quantile calculation for qq plot with fit_params={fit_params}"
)
return (sorted_nonzero_exceedances, theoretical_q, nonzero_params)
return (sorted_nonzero_exceedances, theoretical_q, nonzero_params) # type: ignore

elif stats_method == "ZS":
raise NotImplementedError("Not implemented yet!")
Expand Down Expand Up @@ -249,8 +249,8 @@ def visualize_qq_plot(
label=f"{len(sorted_nonzero_datasets[index])} Exceedences > 0", # type: ignore
)
ax.plot(
[np.min(theoretical_qs[index]), np.max(theoretical_qs[index])],
[np.min(theoretical_qs[index]), np.max(theoretical_qs[index])],
[np.min(theoretical_qs[index]), np.max(theoretical_qs[index])], # type: ignore
[np.min(theoretical_qs[index]), np.max(theoretical_qs[index])], # type: ignore
c="lime",
lw=2,
label=f"\nFitted GPD Params:\n c: {round(params[index]['c'], 2)}\n loc: {round(params[index]['loc'], 2)}\n scale: {round(params[index]['scale'], 2)}", # type: ignore
Expand Down

0 comments on commit ab1c60d

Please sign in to comment.