Skip to content

Commit

Permalink
don't use fstring
Browse files Browse the repository at this point in the history
  • Loading branch information
frances-h committed Sep 19, 2023
1 parent d9a28f5 commit eecb5ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rdt/transformers/numerical.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def _learn_rounding_digits(data):
return decimal

# Can't round, not equal after MAX_DECIMALS digits of precision
LOGGER.info(f"No rounding scheme detected for column '{name}'. Data will not be rounded.")
LOGGER.info("No rounding scheme detected for column '%s'. Data will not be rounded.", name)
return None

def _raise_out_of_bounds_error(self, value, name, bound_type, min_bound, max_bound):
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/transformers/test_numerical.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ def test__learn_rounding_digits_more_than_15_decimals(self, logger_mock):
output = FloatFormatter._learn_rounding_digits(data)

# Assert
logger_msg = "No rounding scheme detected for column 'col'. Data will not be rounded."
logger_mock.info.assert_called_once_with(logger_msg)
logger_msg = "No rounding scheme detected for column '%s'. Data will not be rounded."
logger_mock.info.assert_called_once_with(logger_msg, 'col')
assert output is None

def test__learn_rounding_digits_less_than_15_decimals(self):
Expand Down

0 comments on commit eecb5ae

Please sign in to comment.