Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

type hints corrected #163

Merged
merged 2 commits into from
Jun 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions seismostats/plots/basics.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def plot_fmd(
def plot_cum_count(
cat: pd.DataFrame,
ax: plt.Axes | None = None,
mcs: np.ndarray | None = np.array([0]),
mcs: np.ndarray = np.array([0]),
delta_m: float | None = 0.1,
) -> plt.Axes:
"""
Expand Down Expand Up @@ -319,11 +319,11 @@ def plot_mags_in_time(


def dot_size(
magnitudes: np.array,
magnitudes: np.ndarray,
smallest: float = 10,
largest: float = 200,
interpolation_power: int = 1,
) -> np.array:
) -> np.ndarray:
"""
Auxiliary function, computes dot sizes proportional to a given array of
magnitudes.
Expand Down Expand Up @@ -368,8 +368,8 @@ def dot_size(

def reverse_dot_size(
sizes: np.ndarray,
min_mag: np.float_,
max_mag: np.float_,
min_mag: float,
max_mag: float,
interpolation_power: int = 1,
) -> np.ndarray:
"""Compute magnitudes proportional to a given array of dot sizes.
Expand Down
Loading