Skip to content

Commit

Permalink
Merge pull request #499 from IainHammond/master
Browse files Browse the repository at this point in the history
Updated import in PCA skysubtraction
  • Loading branch information
VChristiaens authored Mar 15, 2022
2 parents f417541 + ee96f6a commit 50e10eb
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 50e10eb

Please sign in to comment.