Skip to content

Commit

Permalink
compatible with new VIP structure
Browse files Browse the repository at this point in the history
  • Loading branch information
iainhammond committed Mar 8, 2022
1 parent a0b363d commit 3d9c059
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vip_hci/preproc/skysubtraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ def cube_subtract_sky_pca(sci_cube, sky_cube, mask, ref_cube=None, ncomp=2,
- reconstructed cube.
"""
from ..pca.svd import svd_wrapper
try:
from ..psfsub.svd import svd_wrapper
except:
from ..pca.svd import svd_wrapper

if sci_cube.shape[1] != sky_cube.shape[1] or sci_cube.shape[2] != \
sky_cube.shape[2]:
Expand Down

0 comments on commit 3d9c059

Please sign in to comment.