Skip to content

Commit

Permalink
Changed bottleneck to a soft dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Timothy Brandt committed Jan 15, 2025
1 parent 465ea0f commit 103710a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 6 additions & 1 deletion jwst/emicorr/emicorr.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,19 @@
#

import numpy as np
import bottleneck as bn
import logging
from astropy.stats import sigma_clipped_stats as scs
from stdatamodels.jwst import datamodels

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.')

subarray_clocks = {

Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ dependencies = [
"asdf>=3.3,<5",
"astropy>=6.1",
"BayesicFitting>=3.0.1",
"bottleneck>=1.2.0",
"crds>=12.0.3",
"drizzle>=2.0.0",
# "gwcs>=0.22.0,<0.23.0",
Expand Down

0 comments on commit 103710a

Please sign in to comment.