Skip to content

Commit dd6b1cc

Browse files
committed
Fix linting
1 parent 5be8f47 commit dd6b1cc

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

im2deep/__main__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ def cli(ctx, logging_level, profile, profile_name):
9494

9595
console.print(_build_credits())
9696

97+
9798
# TODO: Check that parameters match predict function in core
9899
# Implement psm_utils reading for calibration and prediction PSMLists
99100
@cli.command()

tests/test_model_ops.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,9 @@ def test_predict_loop_single_output(self):
170170

171171
with patch("im2deep._model_ops.track", return_value=mock_data):
172172
predictions = _model_ops._predict_loop(
173-
model=model, data_loader=mock_data, device="cpu" # type: ignore
173+
model=model,
174+
data_loader=mock_data,
175+
device="cpu", # type: ignore
174176
)
175177

176178
assert isinstance(predictions, torch.Tensor)
@@ -191,7 +193,9 @@ def test_predict_loop_multi_output(self):
191193

192194
with patch("im2deep._model_ops.track", return_value=mock_data):
193195
predictions = _model_ops._predict_loop(
194-
model=model, data_loader=mock_data, device="cpu" # type: ignore
196+
model=model,
197+
data_loader=mock_data,
198+
device="cpu", # type: ignore
195199
)
196200

197201
assert isinstance(predictions, torch.Tensor)
@@ -212,7 +216,9 @@ def test_predict_loop_no_grad(self):
212216
# Mock track to return our mock data
213217
with patch("im2deep._model_ops.track", return_value=mock_data):
214218
predictions = _model_ops._predict_loop(
215-
model=model, data_loader=mock_data, device="cpu" # type: ignore
219+
model=model,
220+
data_loader=mock_data,
221+
device="cpu", # type: ignore
216222
)
217223

218224
assert not predictions.requires_grad

0 commit comments

Comments
 (0)