Skip to content

Commit

Permalink
Merge pull request #46 from swiss-seismological-service/feature/fix_d…
Browse files Browse the repository at this point in the history
…ependencies

Feature/fix dependencies
  • Loading branch information
aronsho authored Jul 26, 2023
2 parents 6e879b9 + 7f5eec8 commit 1fb7e40
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
5 changes: 3 additions & 2 deletions catalog_tools/analysis/estimate_beta.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""This module contains functions for the estimation of beta and the b-value.
"""
from typing import Optional, Tuple, Union

import numpy as np
from typing import Optional


def estimate_beta_tinti(magnitudes: np.ndarray,
Expand Down Expand Up @@ -93,7 +94,7 @@ def differences(magnitudes: np.ndarray) -> np.ndarray:


def estimate_beta_elst(magnitudes: np.ndarray, delta_m: float = 0
) -> [float, float]:
) -> Union[float, Tuple[float, float]]:
""" returns the b-value estimation using the positive differences of the
Magnitudes
Expand Down
17 changes: 9 additions & 8 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ license = GNU AFFERO GENERAL PUBLIC LICENSE
python_requires = >=3.8
packages = find:
install_requires =
matplotlib==3.7.1
numpy==1.24.2
pandas==1.5.3
shapely==2.0.1
obspy==1.4.0
geopandas==0.12.2
cartopy==0.21.1
notebook==6.5.3
matplotlib
numpy
pandas
shapely
obspy
geopandas
cartopy
notebook

[options.packages.find]
include=catalog_tools*
Expand All @@ -24,6 +24,7 @@ include=catalog_tools*
dev =
autopep8
flake8
isort
pytest
pytest-cov
tox

0 comments on commit 1fb7e40

Please sign in to comment.