-
Notifications
You must be signed in to change notification settings - Fork 8
New SBI models from anya #334
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
base: main
Are you sure you want to change the base?
Conversation
| 'Transient MWEBV', | ||
| 'Host MWEBV', | ||
| 'Log transient processing status', | ||
| 'Local aperture photometry photo-z', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The migration scripts are immutable; they are an append-only stack. You'll need to move the creation of these three new tasks to 0037.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh wait, I see that you already did this. Perhaps you just need to revert the change to 0024.
| x_train_local = pickle.load(handle) | ||
| x_train_zphot = pickle.load(handle) | ||
| print("""Training sets loaded.""") | ||
| except Exception as err: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What exactly is the failure mode you anticipate here? This seems too broad. Also, it looks like this block is executed upon import (which happens here), because it is not under a "if name=main" condition. Can this be done better?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Conversation follow-up: This redundant pickle file loading code should be refactored into a function.
so that IDEs can resolve host.SBI.run_sbi_blast
app/host/transient_tasks.py
Outdated
| elif host.photometric_redshift is not None: | ||
| pass | ||
| elif transient.redshift is not None: | ||
| pass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the purpose of these pass statements?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Conversation follow-up: These last two elif-pass statements are no longer useful with the else block removed.
Fixes # .
Description of the Change
New SBI models, redshift up to z = 1.5 and photo-z implemented.
Checklist
Please check all that apply to your proposed changes
Additional context