-
Notifications
You must be signed in to change notification settings - Fork 15
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
ParSNIP Cron Deployment #311
base: develop
Are you sure you want to change the base?
Conversation
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.
Hey Patrick, looks like the docker image is building in the CI now and works! Could you please confirm that the make migrations works locally? So checkout a fresh version of this branch and a fresh yse-pz database backup and run make migrations and migrate to see if there are any issues?
@davecoulter Can you please take a look? make migrates and migrate appear to work with a fresh checkout according to Patrick :) |
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.
Just white space changes to this file, please remove!
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.
Please remove white space changes to this file, and we need the migrations relating to these model changes to be checked in if we want to deploy to test.
Hi @patrickaleo -- good work overall -- however, there are a couple of things I'd love to see addressed. While @astrophpeter has left file-specific comments, I will reiterate them here for clarity:
|
Description of the Change
ParSNIP Cron.
I've added
parsnip_classify.py
, which runs the cron "parsnip_classify_cron". It needs the ParSNIP RFC model files and the simulation model file, which are sent via Box (message me if you haven't gotten them). You define the path to these models insettings.ini
, in the new parsnip section. parsnip_classify.py will load them fromsettings.ini
automatically. I've added dummy variables to the public-facingpublic_settings.ini
.I've uploaded a requirements.web.dev. I've successfully built (but not tested) an image using
docker-compose -f docker-compose.dev.yaml up --build
. However, note that I technically use numpy==1.20.3 and astropy==4.2.1. I've added some leeway with the versions, so if this breaks anything, change the requirements file to these exact versions. My exact process to run these files locally were:Note that in
models/
I've modified files to allow for the new attribute:t.photo_class_conf
, the confidence (%) association with the photometric classificationt.photo_class
(which should replace/overwrite the old RAPID t.photo_class).Lastly, note that the cron automatically runs ONLY the 3-type (SN Ia/ SN II/ SN Ibc) model, not the 2-type model.
Checklist
Please check all that apply to your proposed changes
Additional context