Skip to content

Commit

Permalink
typing
Browse files Browse the repository at this point in the history
  • Loading branch information
akoumjian committed Jul 26, 2024
1 parent 6e8c9c5 commit 0e9e8c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/adam_core/coordinates/residuals.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def calculate(
raise TypeError(
f"Predicted coordinates must be one of {SUPPORTED_COORDINATES}, not {type(predicted)}."
)
if type(observed) != type(predicted):
if type(observed) is not type(predicted):
raise TypeError(
"Observed and predicted coordinates must be the same type, "
f"not {type(observed)} and {type(predicted)}."
Expand Down
2 changes: 1 addition & 1 deletion src/adam_core/coordinates/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -1368,7 +1368,7 @@ def transform_coordinates(
# `~adam_core.coordinates.origin.OriginCodes` so we can compare them directly.
# If its not an OriginCodes enum then origin_out will be an array of strings which
# also can be checked for equality.
if type(coords) == representation_out_:
if type(coords) is representation_out_:
if coord_frame == frame_out and np.all(coord_origin == origin_out):
return coords

Expand Down

0 comments on commit 0e9e8c2

Please sign in to comment.