Skip to content

Commit

Permalink
Fix plot_atlantic_profiles Flake8 E741 ambiguous variable name. (#5087)
Browse files Browse the repository at this point in the history
  • Loading branch information
trexfeathers authored Nov 29, 2022
1 parent 84807cd commit f63ccab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/gallery_code/oceanography/plot_atlantic_profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def main():
# the southern portion of the domain, and limit the depth of the profile
# to 1000m.
lon_cons = iris.Constraint(longitude=330.5)
lat_cons = iris.Constraint(latitude=lambda l: -10 < l < -9)
lat_cons = iris.Constraint(latitude=lambda lat: -10 < lat < -9)
depth_cons = iris.Constraint(depth=lambda d: d <= 1000)
theta_1000m = theta.extract(depth_cons & lon_cons & lat_cons)
salinity_1000m = salinity.extract(depth_cons & lon_cons & lat_cons)
Expand Down

0 comments on commit f63ccab

Please sign in to comment.