Skip to content

Commit

Permalink
use is instead of == to check type
Browse files Browse the repository at this point in the history
  • Loading branch information
emanehab99 committed Sep 17, 2024
1 parent 983f261 commit 1543901
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def _update_scheduler_fname(self):
return

# Current fix for _conditions.mjd having different datatypes.
if type(self._conditions._mjd) == np.ndarray:
if type(self._conditions._mjd) is np.ndarray:
self._conditions._mjd = self._conditions._mjd[0]

# Get mjd from pickle and set widget and URL to match.
Expand Down

0 comments on commit 1543901

Please sign in to comment.