Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
steinnymir committed Oct 23, 2023
1 parent acc9c4a commit a1066e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion sed/calibrator/energy.py
Original file line number Diff line number Diff line change
Expand Up @@ -2237,10 +2237,10 @@ def apply_energy_offset(
signs = [signs]
if reductions is None:
reductions = [None] * len(columns)

columns_: List[str] = []
reductions_: List[str] = []
to_roll: List[str] = []

for c, r in zip(columns, reductions):
if r == "rolled":
cname = c + "_rolled"
Expand Down
8 changes: 2 additions & 6 deletions tests/loader/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,7 @@ def test_split_channel_bitwise_raises():
False,
[np.int8, np.int16, np.int32],
)
pytest.raises(
ValueError, split_channel_bitwise, test_df, "a", ["b", "c"], 3, False, [np.int8]
)
pytest.raises(ValueError, split_channel_bitwise, test_df, "a", ["b", "c"], 3, False, [np.int8])
pytest.raises(
ValueError,
split_channel_bitwise,
Expand All @@ -91,6 +89,4 @@ def test_split_channel_bitwise_raises():
"b": [0, 1, 2, 3, 4, 5, 6, 7],
},
)
pytest.raises(
KeyError, split_channel_bitwise, other_df, "a", ["b", "c"], 3, False, None
)
pytest.raises(KeyError, split_channel_bitwise, other_df, "a", ["b", "c"], 3, False, None)

0 comments on commit a1066e5

Please sign in to comment.