Comments (1)
This ticket is a bit of a rabbit hole and I'm inclined to close it. The crash actually occurs in specsim
when the atmospheric extinction is interpolated onto the input wavelength grid--
https://github.com/desihub/specsim/blob/master/specsim/config.py#L488
However, the extinction grid only extends to 9999.9 A
while the wavelength grid in the example in this ticket extends to 10000.0 A
and so an extrapolation exception is raised. In its defense, specsim
does have some options to allow for extrapolated interpolation, but it looks like some of the options in scipy
may have changed since the code was written.
Unfortunately, choosing a shorter maximum wavelength results in a different crash that I'm not inspired to pursue:
from desisim.simexp import simulate_spectra
from desisim.templates import ELG
flux, wave, meta, obj = ELG(maxwave=9990).make_templates(1, seed=1)
sim1 = simulate_spectra(wave, flux)
INFO:io.py:971:read_basis_templates: Reading /Users/ioannis/work/desi/spectro/templates/basis_templates/v3.2/elg_templates_v2.2.fits
INFO:iers.py:82:freeze_iers: Freezing IERS table used by astropy time, coordinates.
DEBUG:simexp.py:418:simulate_spectra: loading specsim desi config desi
DEBUG:simexp.py:422:simulate_spectra: creating specsim desi simulator
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Users/ioannis/code/desihub/desisim/py/desisim/simexp.py", line 423, in simulate_spectra
desi = desisim.specsim.get_simulator(config, num_fibers=nspec,
File "/Users/ioannis/code/desihub/desisim/py/desisim/specsim.py", line 52, in get_simulator
qsim = specsim.simulator.Simulator(config, num_fibers,
File "/Users/ioannis/code/desihub/specsim/specsim/simulator.py", line 75, in __init__
self.instrument = specsim.instrument.initialize(config, camera_output)
File "/Users/ioannis/code/desihub/specsim/specsim/instrument.py", line 622, in initialize
initialized_cameras.append(specsim.camera.Camera(
File "/Users/ioannis/code/desihub/specsim/specsim/camera.py", line 145, in __init__
raise RuntimeError(
RuntimeError: Wavelength grid min does not cover b-camera response.
For the record, this ticket came up as I was trying to understand #563.
from desisim.
Related Issues (20)
- Change default pixel width of DESI mocks to 0.8A HOT 8
- desisim sky level test failure HOT 16
- new problem with how the spectral templates are being normalized HOT 3
- desisim.templates should fail if a template that satisfies the colorcuts cannot be generated HOT 1
- quicktransients should catch failed template generation HOT 1
- Save true continuum in quickquasars
- TestPixsim negative flux failure
- desisim.templates failing with new version of desitarget HOT 2
- Formalize basis_templates tagging procedure HOT 3
- Modify specsim / quickquasars to mimic how the real pipeline estimates the noise variance HOT 1
- "Refraction model is inaccurate for altitudes below 5.0 deg" warning in test_quickquasars unit test HOT 6
- several quickgen unit tests are failing HOT 1
- RuntimeWarning: numpy.ndarray size changed, may indicate binary incompatibility. Expected 80 from C header, got 88 from PyObject
- Test failure at NERSC due to basis template configuration HOT 3
- argument type error in pixsim HOT 2
- desisim.simexp.simulate_spectra not varying exposure time HOT 9
- Error while running redrock in mock spectra HOT 1
- Failure on jupyter at nersc trying to run redrock on desisim outputs HOT 2
- io.py find_basis_template does not select most recent template file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from desisim.