Skip to content
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

Switch from optparse to argparse #100

Merged
merged 4 commits into from
Feb 8, 2017
Merged

Conversation

richford
Copy link
Collaborator

@richford richford commented Feb 8, 2017

This PR switches from optparse to argparse in afqbrowser-assemble and afqbrowser-run. It also resolves issue #99.

@richford
Copy link
Collaborator Author

richford commented Feb 8, 2017

I wasn't able to run afqbrowser-assemble on a mat file that @jyeatman sent to us. I resolved that error by switching from opts.source to the only element of args. But then I decided to switch entirely from the optparse module to the argparse module. optparse is deprecated since 2.7. My apologies @arokem for not checking on this on your original PR #95 and #97.

Copy link
Collaborator

@arokem arokem left a comment

Choose a reason for hiding this comment

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

Great!

README.md Outdated
@@ -31,5 +31,5 @@ After installing the software, you can run the program on mat files generated by
afqbrowser-assemble afq.mat
afqbrowser-run

Open a browser pointing to http://localhost:8080, to view the visualization of
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe we should set the default to 8080? 8888 is usually what Jupyer chooses per default, and we might want to set up machines that can do both (e.g., on AWS).

We'd probably also need to change here: https://github.com/yeatmanlab/AFQ-Browser/blob/master/afqbrowser/browser.py#L147

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Agreed. I'll change the port in both places and push. Thanks for catching that.

@arokem
Copy link
Collaborator

arokem commented Feb 8, 2017

Travis error seems spurious. I kicked that bot back into action.

@richford
Copy link
Collaborator Author

richford commented Feb 8, 2017

K. Changed the ports. Do you want me to fork pyAFQ and submit a PR for the same switch?

@arokem
Copy link
Collaborator

arokem commented Feb 8, 2017

That would be awesome.

@arokem arokem merged commit fcb3868 into yeatmanlab:master Feb 8, 2017
@richford richford deleted the argParse branch February 8, 2017 16:52
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.

2 participants