You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to run lsst/rubin_sim_notebooks/scheduler/1-Scheduler_intro.ipynb to generate a list of observations and then schedule the simulated observations.
The generation of the list of observations is done in the following way:
classMySurvey(BaseSurvey):
defgenerate_observations_rough(self, conditions):
obs=empty_observation()
obs['RA'] =np.radians(273.0)
obs['dec'] =np.radians(-78.0)
#obs['RA'] = 0#obs['dec'] = np.radians(-87)obs['exptime'] =30.# Secondsobs['nexp'] =2obs['filter'] ='r'# If it's been 12 hours or more, don't try to execute the observation anymoreobs['flush_by_mjd'] =conditions.mjd+1obs['note'] ='mysurvey'# Always good to set the note to which survey generated the observation# Make it a list of nresult= [obs] *7returnresult#print(empty_observation)
The simulated observations are scheduled using the following:
# Now to build our scheduler object, and run it for a dayscheduler=CoreScheduler([my_survey], nside=nside)
# sim_runner will return the updated model observatory, the updated scheduler, and an array of# completed observationsmo, scheduler, observations=sim_runner(mo, scheduler,survey_length=1,
verbose=True)
When the notebook is ran for the default RA and DEC given in the tutorial, it seems to be working fine. However, if the RA and DEC are changed to a different coordinates (described below) it seems to run into problems.
There are two different issues when the RA and DEC are changed:
The notebook runs perfectly fine when the RA is 228 deg or more and DEC is < -77, but seems to break once the RA and DEC are outside these limits.
Secondly, at times for some of the values of the RA and DEC that are within the above mentioned limits seems to not work for the notebook. For example:
Run 1: RA 360 DEC -77 works fine
Run 2: RA 350 DEC -77 works fine
Run 3: RA 360 DEC -77 doesnt work
The block above produces the following error:
RuntimeErrorTraceback (mostrecentcalllast)
[scheduler.ipynb](about:blank) Cell10line72scheduler=CoreScheduler([my_survey], nside=nside)
3# sim_runner will return the updated model observatory, the updated scheduler, and an array of4# completed observations---->7mo, scheduler, observations=sim_runner(mo, scheduler,survey_length=1,
8verbose=True)
File[ ~/.conda/envs/rubin-sim/lib/python3.11/site-packages/rubin_sim/scheduler/sim_runner.py:105](about:blank), insim_runner(observatory, scheduler, filter_scheduler, mjd_start, survey_length, filename, delete_past, n_visit_limit, step_none, verbose, extra_info, event_table, record_rewards)
102ifobservatory.mjd==mjd_last_flush:
103#sush104print(mjd_last_flush)
-->[ 105](about:blank) raiseRuntimeError("Scheduler has failed to provide a valid observation multiple times.")
106# if this is a first offence, might just be that targets set. Flush queue and get some new targets.107scheduler.flush_queue()
RuntimeError: Schedulerhasfailedtoprovideavalidobservationmultipletimes
I am running these in rubin_sim version 1.3.3 and with opsim baseline v3.3_10yrs
I was wondering if someone will be able to help me with this issue.
The text was updated successfully, but these errors were encountered:
Hello,
I am trying to run lsst/rubin_sim_notebooks/scheduler/1-Scheduler_intro.ipynb to generate a list of observations and then schedule the simulated observations.
The generation of the list of observations is done in the following way:
The simulated observations are scheduled using the following:
When the notebook is ran for the default RA and DEC given in the tutorial, it seems to be working fine. However, if the RA and DEC are changed to a different coordinates (described below) it seems to run into problems.
There are two different issues when the RA and DEC are changed:
The notebook runs perfectly fine when the RA is 228 deg or more and DEC is < -77, but seems to break once the RA and DEC are outside these limits.
Secondly, at times for some of the values of the RA and DEC that are within the above mentioned limits seems to not work for the notebook. For example:
The block above produces the following error:
I am running these in rubin_sim version 1.3.3 and with opsim baseline v3.3_10yrs
I was wondering if someone will be able to help me with this issue.
The text was updated successfully, but these errors were encountered: