-
Notifications
You must be signed in to change notification settings - Fork 1
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
tickets/PREOPS-4896: make schedview's make_unique_survey_name more robust w.r.t. survey.observations type #79
Conversation
Do you mind explaining the logic for the unique survey name?
Maybe I'm reading this wrong, but doesn't this basically ignore the survey_name which is provided by the survey itself? |
This was the behavior requested by the auxtel team, @tribeiro I think. I think it would be a lot clearer if we always used survey_name, but that isn't what they want (or at least, wanted). I think I did use survey_name originally, until I was asked to make it use note like this. |
Urg. Uh, I guess they don't want to use "survey_name" either, because they're assigning the target name when it leaves the FBS but they're all part of the same "survey". I think you might want to make some really clear comment lines here about what it's doing (that it's intentional) and why it's doing that. Otherwise, this just looks like a mistake when it's actually intentional. We might need to revisit this when we actually properly pass out "survey_name", "target" and "note" ... currently we're combining target and note to be the same, but they should not be. (do you already get "observation.target"? I'm not clear on how far that's propagating at the moment) |
Experimenting with a scheduler pickle from last night, the |
Comment added. |
Ok, good to know! the "pipes" aren't there to connect 'target' to the thing it should be, I think. |
The
"note" in survey.observations
syntax doesn't work when survey.observations is anumpy.recarray
, but it can be such in the new auxtel scheduler, and schedview really aught to handle this correctly. Using a try/except block lets schedview be more versatile. This is another instance of "better to ask forgiveness" being better than "look before you leap" in python.