Skip to content

Ready for MERGE: Add command to import preprocessed data #122

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

Merged
merged 15 commits into from
Jun 20, 2014

Conversation

teravest
Copy link
Contributor

Tests will not pass until @josenavas issues a new pull request.

@josenavas
Copy link
Contributor

@teravest I'm working on this branch, I've already solved the PR.

@josenavas
Copy link
Contributor

I meant the merge conflict

@teravest
Copy link
Contributor Author

@josenavas you are a collaborator on my branch now.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.52%) when pulling 40ea6a5 on teravest:preproccesed into ed57160 on biocore:master.

@teravest teravest changed the title DO NOT MERGE: Add command to import preprocessed data Ready for MERGE: Add command to import preprocessed data Jun 20, 2014
@teravest
Copy link
Contributor Author

I think this is ready for review and merge! thanks for the help @josenavas

@@ -50,6 +50,23 @@ def insert_study_to_db(owner, title, info):


@qiita_db.command()
@click.option('--study_id', help="Study id associated with data")
@click.option('--params_table', help="Name of the paramaters table for the"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing a space after the.

@ElDeveloper
Copy link
Contributor

👍

@click.option('--submitted_to_insdc', is_flag=True,
help="If provided, the preprocessed data have been submitted"
" to insdc")
def insert_preprocessed_data(study_id, filedir, filetype, params_table,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

similarly, this function starts with insert_, while the function it calls begins with import_. I like the convention where the click function is load_x and then the function that it calls (which resides in commands.py) would be called load_x_cmd

@adamrp
Copy link
Contributor

adamrp commented Jun 20, 2014

A few comments. Thanks @teravest and @josenavas!

@adamrp
Copy link
Contributor

adamrp commented Jun 20, 2014

Also, new merge conflict.

@teravest
Copy link
Contributor Author

I think it addressed all the comments but I would like to talk to @adamrp before merging...

@adamrp
Copy link
Contributor

adamrp commented Jun 20, 2014

@teravest I'll be back soon, this meeting should be over soon

@teravest
Copy link
Contributor Author

I think this is ready for final review

@antgonza
Copy link
Member

Looks good to me. 👍

@@ -9,6 +9,8 @@
from dateutil.parser import parse
import pandas as pd
from functools import partial
from os import listdir
from os.path import join
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think during conflict resolution you moved these imports to the wrong place. pandas and dateutil are third-party imports, so they should come after the functools, os, and os.path imports, separated by a blank line, then another blank line, then the imports from qiita

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.05%) when pulling 6c572fc on teravest:preproccesed into 2dc78a3 on biocore:master.

@adamrp
Copy link
Contributor

adamrp commented Jun 20, 2014

Very minor comments, and it looks great! Thanks again

@squirrelo
Copy link
Contributor

👍 once imports cleaned up

@teravest
Copy link
Contributor Author

failures unrelated.

antgonza added a commit that referenced this pull request Jun 20, 2014
Ready for MERGE:  Add command to import preprocessed data
@antgonza antgonza merged commit 8ce7089 into qiita-spots:master Jun 20, 2014
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.

7 participants