Skip to content

Commit

Permalink
Remove slicing that offended mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
k-collie committed Oct 28, 2022
1 parent 5dab824 commit 363ab66
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion indica/operators/extrapolate_impurity_density.py
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,9 @@ def optimize_perturbation(
orig_bolometry = orig_bolometry_data

extrapolated_smooth_data_mean = np.mean(
extrapolated_smooth_data.loc[threshold_rho[0] :, :, :]
extrapolated_smooth_data.sel(
rho_poloidal=slice(threshold_rho.isel(t=0), None)
)
)

def objective_func(objective_array: Sequence, time: float):
Expand Down

0 comments on commit 363ab66

Please sign in to comment.