Skip to content

Commit

Permalink
fixing 6 files with linting errors E126, E128, E251
Browse files Browse the repository at this point in the history
  • Loading branch information
shachafl committed Mar 21, 2024
1 parent 7fe62b2 commit 914ffc6
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion starfish/core/codebook/codebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ def _view_row_as_element(array: np.ndarray) -> np.ndarray:
max_intensities = intensities.max(Axes.CH.value)
round_intensities = intensities.sum(Axes.CH.value)
distance: IntensityTable = 1 - (max_intensities / round_intensities).mean(
Axes.ROUND.value) # type: ignore
Axes.ROUND.value) # type: ignore

a = _view_row_as_element(codes.values.reshape(self.shape[0], -1)) # type: ignore
b = _view_row_as_element(
Expand Down
4 changes: 2 additions & 2 deletions starfish/core/codebook/test/test_metric_decode.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ def intensity_table_factory(data: np.ndarray=np.array([[[0, 3], [4, 0]]])) -> In
intensity_table = IntensityTable.from_spot_data(
data,
SpotAttributes(spot_attributes_data),
ch_values = range(data.shape[1]),
round_values = range(data.shape[2]),
ch_values=range(data.shape[1]),
round_values=range(data.shape[2]),
)
return intensity_table

Expand Down
4 changes: 2 additions & 2 deletions starfish/core/codebook/test/test_normalize_code_traces.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ def intensity_table_factory() -> IntensityTable:

intensity_table = IntensityTable.from_spot_data(
intensities, spot_attributes,
ch_values = range(intensities.shape[1]),
round_values = range(intensities.shape[2]),
ch_values=range(intensities.shape[1]),
round_values=range(intensities.shape[2]),
)
return intensity_table

Expand Down
4 changes: 2 additions & 2 deletions starfish/core/codebook/test/test_per_round_max_decode.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ def intensity_table_factory(data: np.ndarray = np.array([[[0, 3], [4, 0]]])) ->
spot_attributes = SpotAttributes(spot_attributes_data)
intensity_table = IntensityTable.from_spot_data(
data, spot_attributes,
round_values = range(data.shape[1]),
ch_values = range(data.shape[2]),
round_values=range(data.shape[1]),
ch_values=range(data.shape[2]),
)
return intensity_table

Expand Down
4 changes: 2 additions & 2 deletions starfish/core/image/_registration/transforms_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ class TransformsList:

def __init__(self,
transforms_list: Optional[List[Tuple[Mapping[Axes, int],
TransformType,
_GeometricTransform]]] = None
TransformType,
_GeometricTransform]]] = None
):
"""
Parameters
Expand Down
4 changes: 2 additions & 2 deletions starfish/core/imagestack/imagestack.py
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ def apply(
func: Callable,
*args,
group_by: Optional[Set[Axes]] = None,
in_place = False,
in_place=False,
verbose: bool = False,
n_processes: Optional[int] = None,
level_method: Levels = Levels.CLIP,
Expand Down Expand Up @@ -892,7 +892,7 @@ def transform(
func: Callable,
*args,
group_by: Optional[Set[Axes]] = None,
verbose = False,
verbose=False,
n_processes: Optional[int] = None,
**kwargs
) -> List[Any]:
Expand Down

0 comments on commit 914ffc6

Please sign in to comment.