Skip to content

Commit 0174757

Browse files
Fix too-many-function-args linting error (OpenwaterHealth#106)
1 parent b2483a6 commit 0174757

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/openlifu/virtual_fit.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,7 @@ def from_dict(parameter_dict:Dict[str,Any]) -> VirtualFitOptions: # Override Dic
103103
return VirtualFitOptions(**parameter_dict)
104104

105105

106-
# (Currently we disable pylint E1121 because it is a temporary issue
107-
# which should be resolved by #165 and #166)
108-
def virtual_fit( # pylint: disable=E1121
106+
def virtual_fit(
109107
volume_array : np.ndarray,
110108
volume_affine_RAS : np.ndarray,
111109
units: str,
@@ -195,7 +193,7 @@ def virtual_fit( # pylint: disable=E1121
195193

196194
r_hat, theta_hat, phi_hat = spherical_coordinate_basis(theta_rad,phi_rad)
197195
planefit_points_unprojected_cartesian = (
198-
point.reshape(1,1,3)
196+
point.reshape((1,1,3))
199197
+ dtheta_grid[...,np.newaxis] * theta_hat.reshape(1,1,3) # shape (num dthetas, num dphis, 3)
200198
+ dphi_grid[...,np.newaxis] * phi_hat.reshape(1,1,3) # shape (num dthetas, num dphis, 3)
201199
) # shape (num dthetas, num dphis, 3)

0 commit comments

Comments
 (0)