Skip to content

Commit

Permalink
style: pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] authored and mdtanker committed Aug 2, 2024
1 parent 9fa7f27 commit ea59410
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/invert4geom/cross_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,8 @@ def zref_density_optimal_parameter(
)

return inv_results, best_zref, best_density, best_score, parameter_pairs, scores


def eq_sources_score(
coordinates: tuple[pd.Series | NDArray, pd.Series | NDArray, pd.Series | NDArray],
data: pd.Series | NDArray,
Expand Down
2 changes: 1 addition & 1 deletion src/invert4geom/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1015,4 +1015,4 @@ def eq_sources_score(kwargs) -> float:
"""
deprecated function, use cross_validation.eq_sources_score instead.
"""
return cross_validation.eq_sources_score(kwargs)
return cross_validation.eq_sources_score(kwargs)
2 changes: 2 additions & 0 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,12 @@ def dummy_prism_layer_flat() -> xr.Dataset:
################
################


@deprecation.fail_if_not_removed
def test_eq_sources_score():
utils.eq_sources_score()


def test_rmeanse():
"""
test the Root Mean Square Error function
Expand Down

0 comments on commit ea59410

Please sign in to comment.