-
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
Switch from optparse to argparse #100
Conversation
…xed the opt.source error under the old optparse approach
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. |
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.
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 |
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.
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
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.
Agreed. I'll change the port in both places and push. Thanks for catching that.
Travis error seems spurious. I kicked that bot back into action. |
K. Changed the ports. Do you want me to fork pyAFQ and submit a PR for the same switch? |
That would be awesome. |
This PR switches from optparse to argparse in afqbrowser-assemble and afqbrowser-run. It also resolves issue #99.