Skip to content

Commit

Permalink
Remove unnecessary check
Browse files Browse the repository at this point in the history
  • Loading branch information
ViciousEagle03 committed Aug 7, 2024
1 parent 5e830f1 commit 9d27051
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions asdf_astropy/converters/slicedwcs/slicedwcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@ def from_yaml_tree(self, node, tag, ctx):
return SlicedLowLevelWCS(wcs, slice_array)

def to_yaml_tree(self, sl, tag, ctx):
import astropy

node = {}
if isinstance(sl._wcs, astropy.wcs.WCS):
node["wcs"] = sl._wcs
node["wcs"] = sl._wcs
node["slices_array"] = [str(item) for item in sl._slices_array]
return node

0 comments on commit 9d27051

Please sign in to comment.