Skip to content

Commit

Permalink
test turning off on_rtd switch
Browse files Browse the repository at this point in the history
  • Loading branch information
JarronL committed Dec 22, 2021
1 parent a8a30f9 commit 00e389c
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions pynrc/nrc_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,23 +81,23 @@
S.refs.setref(area = 25.78e4) # cm^2 according to jwst_pupil_RevW_npix1024.fits.gz

# The following won't work on readthedocs compilation
if not on_rtd:
# Grab WebbPSF assumed pixel scales
log_prev = conf.logging_level
setup_logging('WARN', verbose=False)
nc_temp = webbpsf_ext.NIRCam_ext()
setup_logging(log_prev, verbose=False)

pixscale_SW = nc_temp._pixelscale_short
pixscale_LW = nc_temp._pixelscale_long
del nc_temp

_jbt_exists = True
try:
from jwst_backgrounds import jbt
except ImportError:
_log.info(" jwst_backgrounds is not installed and will not be used for bg estimates.")
_jbt_exists = False
# if not on_rtd:
# Grab WebbPSF assumed pixel scales
log_prev = conf.logging_level
setup_logging('WARN', verbose=False)
nc_temp = webbpsf_ext.NIRCam_ext()
setup_logging(log_prev, verbose=False)

pixscale_SW = nc_temp._pixelscale_short
pixscale_LW = nc_temp._pixelscale_long
del nc_temp

_jbt_exists = True
try:
from jwst_backgrounds import jbt
except ImportError:
_log.info(" jwst_backgrounds is not installed and will not be used for bg estimates.")
_jbt_exists = False


###########################################################################
Expand Down

0 comments on commit 00e389c

Please sign in to comment.