Skip to content

Commit

Permalink
Merge pull request #508 from VChristiaens/master
Browse files Browse the repository at this point in the history
skimage-based rotation fixed
  • Loading branch information
VChristiaens authored Mar 29, 2022
2 parents 8eb3297 + a5f36a2 commit 763520a
Show file tree
Hide file tree
Showing 6 changed files with 162 additions and 1,941 deletions.
120 changes: 67 additions & 53 deletions docs/source/tutorials/04_metrics.ipynb

Large diffs are not rendered by default.

1,971 changes: 89 additions & 1,882 deletions docs/source/tutorials/05_fm_planets.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/source/tutorials/08_datasets_as_objects.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@
"metadata": {},
"outputs": [],
"source": [
"#betapic.save(\"../datasets/betapic_hci_dataset\")"
"betapic.save(\"../datasets/betapic_hci_dataset\")"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ scipy
astropy
photutils
scikit-learn
scikit-image
scikit-image<=0.18.3
emcee==2.2.1
nestle
corner
Expand Down
2 changes: 1 addition & 1 deletion vip_hci/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "1.1.2"
__version__ = "1.1.3"

from . import preproc
from . import config
Expand Down
6 changes: 3 additions & 3 deletions vip_hci/preproc/derotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,12 @@ def frame_rotate(array, angle, imlib='vip-fft', interpolation='lanczos4',
raise ValueError('Skimage `border_mode` not recognized.')

# for a non-constant image, normalize manually
min_val = np.min(array_prep)
max_val = np.max(array_prep)
min_val = np.nanmin(array_prep)
max_val = np.nanmax(array_prep)
if min_val != max_val:
norm=True
im_temp = array_prep - min_val
max_val = np.max(im_temp)
max_val = np.nanmax(im_temp)
im_temp /= max_val
else:
norm=False
Expand Down

0 comments on commit 763520a

Please sign in to comment.