Closed moustakas closed 3 years ago
I suspect that 4 tiles is not enough for the fancy HA optimization algorithm that surveyinit uses by default. If you are happy with HA=0, this should work:
surveyinit --config-file ./desisurvey-config.yaml --init zero --max-cycles 0
Thanks @dkirkby that worked. But the next step borked, surely related to the small number of tiles again. All I want/need is an exposures.fits
file so I can test https://github.com/desihub/desitarget/pull/561 through the spectral simulations on my laptop without having to run the minitest
notebook (which is not so "mini" for what I want to do, and only runs at NERSC!).
time surveysim --config-file ./desisurvey-config.yaml --save-restore
ERROR:rules.py:233:apply: No tiles covered by rule N10(2)
ERROR:rules.py:233:apply: No tiles covered by rule N10(3)
ERROR:rules.py:233:apply: No tiles covered by rule N10(4)
ERROR:rules.py:233:apply: No tiles covered by rule N10(7)
ERROR:rules.py:233:apply: No tiles covered by rule N10P1(1)
ERROR:rules.py:233:apply: No tiles covered by rule N10P0(0)
ERROR:rules.py:233:apply: No tiles covered by rule N10P6(6)
[snip]
ERROR:rules.py:233:apply: No tiles covered by rule SHI(7)
Traceback (most recent call last):
File "/Users/ioannis/repos/desihub/surveysim/bin/surveysim", line 15, in <module>
surveysim.scripts.surveysim.main(args)
File "/Users/ioannis/repos/desihub/surveysim/py/surveysim/scripts/surveysim.py", line 162, in main
night, scheduler, stats, explist, weather=weather, use_twilight=args.twilight)
File "/Users/ioannis/repos/desihub/surveysim/py/surveysim/nightops.py", line 154, in simulate_night
nightstats['nsetup'][passnum] += 1
IndexError: index 4 is out of bounds for axis 0 with size 4
@moustakas, I'm trying to clean up some old desisurvey issues. Do you want me to take action here? Obviously there have been a lot of changes in the last two years. This may magically work now---certainly the change to no-pass means that the particular line where you're seeing an issue will no longer trigger this particular issue. But I haven't tried to do the equivalent to what you intended here and verified it still works. I'm nevertheless inclined to close unles you feel otherwise.
Thanks for checking with me. This ticket is pretty stale so let's close.
@dkirkby @sbailey I'm trying to execute some very simple survey simulations but running into trouble. I'm sure I'm missing something simple---could you advise?
Note that I'm using the desisurvey-config.yaml file from the minitest notebook and the
master
branches of all the DESI code.Set one needed environment variable:
Build a simple tile file (here, with four tiles: two DARK, one GRAY, and one BRIGHT).
Run
surveyinit
: