Skip to content

Commit

Permalink
Rename get_link function to calculate_imputation_link
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonZogk committed May 16, 2024
1 parent d31535f commit 3509145
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/forward_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def mask_values(
PandasObject.mask_values = mask_values


def get_link(
def calculate_imputation_link(
df: pd.DataFrame,
groups: List[str] or str,
match_col: str,
Expand Down
6 changes: 3 additions & 3 deletions tests/test_forward_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import pandas as pd
from pandas.testing import assert_frame_equal, assert_series_equal

from src.forward_link import get_link, mask_values
from src.forward_link import calculate_imputation_link, mask_values


class TestFilters:
Expand Down Expand Up @@ -295,7 +295,7 @@ def test_forward_link(self):
]
)

f_link = get_link(
f_link = calculate_imputation_link(
self.df,
["group", "date"],
"f_matched_pair",
Expand Down Expand Up @@ -327,7 +327,7 @@ def test_backward_link(self):
]
)

b_link = get_link(
b_link = calculate_imputation_link(
self.df,
["group", "date"],
"b_matched_pair",
Expand Down

0 comments on commit 3509145

Please sign in to comment.