Skip to content

Commit

Permalink
Revised soft dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Timothy Brandt committed Jan 15, 2025
1 parent 103710a commit 0497751
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions jwst/emicorr/emicorr.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,17 @@
import logging
from astropy.stats import sigma_clipped_stats as scs
from stdatamodels.jwst import datamodels
import warnings

log = logging.getLogger(__name__)
log.setLevel(logging.DEBUG)

try:
import bottleneck as bn
except:
bn = np
log.info('Bottleneck package unavailable. Suggest pip install'
' bottleneck to improve performance.')
except ImportError as err:
msg = "Please install the bottleneck package for improved performance. Falling back on numpy. To install, use pip install bottleneck."
warnings.warn(msg)
bn = np # set bn as an alias for numpy

subarray_clocks = {

Expand Down

0 comments on commit 0497751

Please sign in to comment.