Skip to content

Commit

Permalink
Merge branch 'main' into feature/b_more_pos
Browse files Browse the repository at this point in the history
  • Loading branch information
aronsho committed Jun 20, 2024
2 parents 827ee7f + 6e60fca commit fe17912
Showing 1 changed file with 5 additions and 5 deletions.
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

0 comments on commit fe17912

Please sign in to comment.