Skip to content

Commit

Permalink
compare literals using == not "is"
Browse files Browse the repository at this point in the history
  • Loading branch information
TomWagg committed Oct 10, 2022
1 parent 233c521 commit a4d0346
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion isochrones/interp.py
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ def find_closest(self, val, lo, hi, v1, v2, col="initial_mass", debug=False):
return find_closest3(val, lo, hi, v1, v2, self.grid, icol, *self.index_columns, debug=debug)

def __call__(self, p, cols="all"):
if cols is "all":
if cols == "all":
icols = np.arange(self.n_columns)
else:
icols = np.array([self.column_index[col] for col in cols])
Expand Down

0 comments on commit a4d0346

Please sign in to comment.