-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
ValueError: block already occupied #368
Comments
That error occurs when you try to schedule an observing block into the same time slot as another observing block, which has already been scheduled. Is it possible that you're calling the scheduler twice on the same schedule? |
Thank you very much for your answer. Here is a MWE that summarize what I am trying to do, and that exhibit the error:
Maybe you could tell me what is wrong with this program. |
@gnthibault – it seems to me that the problem has to do with how short your observing blocks are. Do you really intend to take 3x 2 second exposures of each target? If you increase the exposure length to something more typical (100 seconds, for example), the script works without error. |
Awesome, it worked!, indeed, it is true that I usually use much more acquisitions than 3, Regarding the scheduling itself, I found this feature really awesome, exactly what I -If I schedule the above program with 10 time the number of exposure each time,
Can you confirm that the scheduler interleaved the 2 target blocks into 4 slots If this is the case, it is truly awesome! -Second question, I tried to schedule a more complex acquisition scheme with only 1 I thought that pairs of L-L, R-R G-G and B-B would be concatenated in order to save
Do you think that the splitting also result from the optimization of the overall airmass for each filter ?
I find it weird that the optimizer keeps Luminance and Red images separated by a transition instead of merging the blocks with the Thank you in advance for your help, this python module looks really promising. |
I think the scheduling plots can be really instructive when trying to understand why the scheduler makes its decisions –– have you tried plotting the resulting schedules to see how the airmass varies across for each schedule? see here for examples in the docs |
Thank you, I solved some of my issues, although I have been slightly surpsied by some behaviour: Of course, I know that optimal scheduling tend to end-up being NPHard problems, so I won't be too hard on the criticism. Looks at the nice plots I have been able to generate thanks to your astropy/astroplan/matplotlib: No I just need to implement my own constraint for defining my local horizon (in green on the polar grid figure). |
We intentionally define an If you'd like the ability to split up a block into smaller segments, you should initialize multiple |
Thank you very much for your feedback. I changed my calls to astroplan, so that each observing block is no more longer than 300 seconds now. Now I still need to implement my own constraint, following the guideline you give here:http://astroplan.readthedocs.io/en/latest/tutorials/constraints.html for my local horizon. |
It looks like this issue has been resolved, feel free to re-open it if I'm incorrect. |
Hello @bmorris3! I have been trying to use astroplan to schedule some observations and am getting the same "ValueError: block already occupied" error as above. You mentioned that it may be because the observation length is short (in my case, a bright star, so I want <1sec exposures!). Is there any way around this issue with short exposures? Thanks in advance! And Happy New Year! :) |
Hi @amendochka! Happy New Year to you as well. Is it possible that your observations might naturally group into larger blocks? For example, if you will be taking <1 sec exposures for 5 minutes at a time, then you could schedule the five minute blocks instead of <1 sec blocks. |
I also sometimes run into |
Hi, I was wondering if someone can explain how to represent the "green" altitude constraints into the sky_plot? Thank in advance |
Dear developer of Astroplan,
Thank you for this software, the capabilities are really interesting.
I am trying to leverage the power of astroplan into one of my project, unfortunately, I had trouble trying to integrate something very similar to this tutorial in my code:
http://astroplan.readthedocs.io/en/latest/tutorials/scheduling.html
I have not been able to generate a MWE yet, because my code includes sensitive informations, like gps coordinates. But this error may be simple to solve, here is why I reproduce the call stack hereafter:
Traceback (most recent call last):
How can I debug this ? Thank you in advance for your help
The text was updated successfully, but these errors were encountered: