-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
desisim.simexp.simulate_spectra not varying exposure time #563
Comments
Thanks for the ticket, @humnaawan, I can try to look into this. |
Thanks @moustakas for looking into this. At least in the Lyman alpha WG none had played with these observing conditions before, so I'm not too surprised that there are hiccupts. I hope these are easy to fix! |
Hi all, thanks @moustakas for taking a look. For reference, in the Y1 simulations we make, we do vary the exposure time, and it does change the spectra. It uses the same routine I see in quickquasars we start with a reference set of desisim/py/desisim/scripts/quickquasars.py Line 874 in d9b552f
we then just modify the exptime for each target as needed, and I think the same applies for the other arguments in obsconditions. So maybe is issue at the dictionary level? |
@moustakas - any update on this? We will discuss this project at the KP6 telecon later today. |
Apologies, I have not had a chance to look yet. But @humnaawan can you include an end-to-end example of what you're doing, including the input spectra you're passing to |
no worries @moustakas! here's the code that should produce the issue:
in case its helpful, i've put a copy of the notebook with all the code above at |
@humnaawan, I get the same results as you with the current main branches of desisim and specsim. However, I decided to see if the full
|
@humnaawan I think the issue is that the simulator object is not being cleared by just reusing the variable with different arguments. I added this line to your notebook
|
@sybenzvi thanks! so i was largely following how spectra are created in adding |
Hi, I have been trying to figure out why my spectra don't change with exposure time, and I've isolated the issue to
desisim.simexp.simulate_spectra
.Specifically, say I have a wave array
wave_arr
and flux arrayflux_arr
, and I runvs.
where
Then I'd expect
out0
andout1
to not be the same -- is that not right?The calls to
simexp
seems to suggest that the observation parameters being considered are indeed the ones I pass, as I see the following for the first runand this for the second
but then I don't understand why the output spectra are not different. I'd really appreciate some help since I don't know what is going wrong. I thought it was my fibermap (that I was passing to
desisim.simexp.simulate_spectra
) but that seems to be making no difference to the actual outputs as well, although I do see that the source types are read:The only other thing I can think of is the config file but then I don't understand why there's an
obsconditions
optional parameter at all if I am supposed to be passing a non-default config file (which would be a pain to create for every tile).Thanks so much!
The text was updated successfully, but these errors were encountered: