Skip to content

Conversation

@djones1040
Copy link
Collaborator

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

  • HTML code change
  • Added package dependency
  • Added data
  • Changed django model
  • Documentation change
  • Added or changed TaskRunner

Additional context

'Transient MWEBV',
'Host MWEBV',
'Log transient processing status',
'Local aperture photometry photo-z',
Copy link
Collaborator

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.

Copy link
Collaborator

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:
Copy link
Collaborator

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?

Copy link
Collaborator

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
elif host.photometric_redshift is not None:
pass
elif transient.redshift is not None:
pass
Copy link
Collaborator

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?

Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants