-
Notifications
You must be signed in to change notification settings - Fork 24
Ingest companion parameters #624
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
Ingest companion parameters #624
Conversation
|
Great start! |
|
Not really sure what this error means
|
|
The database isn't being loaded properly because your call to load_astrodb doesn't include the pointer to the schema. |
| RECREATE_DB = True # recreates the .db file from the data files | ||
| # LOAD THE DATABASE |
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.
| RECREATE_DB = True # recreates the .db file from the data files | |
| # LOAD THE DATABASE | |
| RECREATE_DB = True # recreates the .db file from the data files | |
| SCHEMA_PATH = "simple/schema.yaml" | |
| # LOAD THE DATABASE |
|
And we actually hadn't added the CompanionParameters table yet! I've added it to the schema.yaml file and pushed to your branch. |
|
@kaseyLee123: This looks great! Really good work! Please work with @canavarrete01 to merge with main. @rothermichaustin , please do a spot check of the JSON files and make sure the data looks as expected. |
|
Since we're adding the CompanionList table, I wonder if we should also add the |
I think that makes sense. I can go do that. That would mean I have to reingest the companion list right? |
Yep! You'll have to re-run that script. |
|
(I would also update the branch using the button here OR |
i just reran the script but i'd have to add something to my companion list script to add to the other_companion_names right? For that would I just use what the ingest_companion_relationships function uses or do you recommend something else |
…ee123/SIMPLE-db into ingestCompanionParameters
kelle
left a comment
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.
It's fine with me to keep other_companion_names all blank for the moment. I think this is good to merge!
|
Kasey, one more thing. Add a test that touches the companion parameters you added. It should go in the |
tests/test_data.py
Outdated
|
|
||
|
|
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.
delete these lines
I just pushed new code and ran pytest (which worked). Can you take a look over at it to make sure I did it correctly before I can merge? |
|
Looks great! Do you have the power to Squash and Merge or should I do it? |
I think I do. I can go do that right now |
* ingest companion parameters * update + new csv file * commented out unnecessary code * adding CompanionParameters and CompanionList tables to the schema * implement cruz's changes + unconsumed column for reference is fixed * updated schema+parameters.json, updated csv file * comment * companionlist script + further bug testing in parameters * removed unnecessary * added companion list to reference table to fix pytest error * updated companion list json file * edit the ingesting publication logic * finished script + updated json files!! * Revert "finished script + updated json files!!" This reverts commit ad484d3. * changes * publication unicode changed within * schema update * Revert "schema update" This reverts commit 2f2a179. * reingested companion list with changed schema * updated json files with no unicode * update test_data with companion_param cases * remove unnecessart spaces --------- Co-authored-by: kelle <kellecruz@gmail.com>
Ingest Roth24 companion parameters such as age and metalicity
Link to relevant issue: Closes #613
For data ingests: