Giter Club home page Giter Club logo

Comments (15)

kyleabeauchamp avatar kyleabeauchamp commented on June 3, 2024

One of the key benefits is allowing us to split up various "groups" of inputs into separate classes for re-use in multiple apps.

from yank.

jchodera avatar jchodera commented on June 3, 2024

Can you point me to the source files that have the command-line code?

from yank.

kyleabeauchamp avatar kyleabeauchamp commented on June 3, 2024

The mixtape/commands directory are the apps
On Mar 9, 2014 11:17 AM, "John Chodera" [email protected] wrote:

Can you point me to the source files that have the command-line code?

Reply to this email directly or view it on GitHubhttps://github.com//issues/30#issuecomment-37129188
.

from yank.

jchodera avatar jchodera commented on June 3, 2024

So you mean we should use mixtape.cmdline?

from yank.

kyleabeauchamp avatar kyleabeauchamp commented on June 3, 2024

Yes Its one possibility.

There's also ipython cmdline.

Just good to think about options.
On Mar 9, 2014 11:29 AM, "John Chodera" [email protected] wrote:

So you mean we should use mixtape.cmdline?

Reply to this email directly or view it on GitHubhttps://github.com//issues/30#issuecomment-37129526
.

from yank.

jchodera avatar jchodera commented on June 3, 2024

We could certainly do that, but I don't think I understand what the shortcomings of optparse are that cmdline fixes? Can you elaborate a bit?

from yank.

jchodera avatar jchodera commented on June 3, 2024

It would be easiest to give examples of what kinds of command-line specifications you're thinking about...

from yank.

kyleabeauchamp avatar kyleabeauchamp commented on June 3, 2024

Optparse is inflexible.
On Mar 9, 2014 11:37 AM, "John Chodera" [email protected] wrote:

We could certainly do that, but I don't think I understand what the
shortcomings of optparse are that cmdline fixes? Can you elaborate a bit?

Reply to this email directly or view it on GitHubhttps://github.com//issues/30#issuecomment-37129712
.

from yank.

jchodera avatar jchodera commented on June 3, 2024

Sure, but so is mixtape.cmdline, compared to some more flexible counterpart.

I'm just missing a description of what kind of flexibility you think we should include that optparse lacks. Like, a few example command-lines for yank that would make use simpler than optparse permits.

I'm totally not opposed to this---I'm just not understanding the suggestion!

from yank.

rmcgibbo avatar rmcgibbo commented on June 3, 2024

The problem I wanted to solve with mixtape was really that I have many different subcommands that I want to structure under the same command line call. (In the way git clone/fetch/merge are all "subcommands" of the root git command.) And I'd like to be able to do the equivalent of git -h to get a full listing of all my commands and a short description. The structure of the mixtape commands was mostly to enable this, and make it so new commands can get "registered" seamlessly without a having some single master block of argparse/optparse code that sets up all the parsers in one place.

from yank.

rmcgibbo avatar rmcgibbo commented on June 3, 2024

@kyleabeauchamp: I worked a lot with trying to "pull out" the command line infrastructure from IPython and adapt it to a standalone thing. I did that for the openmm command line executable actually. But IMO it is more complex than necessary. Traitlets are kind of nice and clever, but very magical and tricky to debug when things aren't hooked up correctly.

from yank.

kyleabeauchamp avatar kyleabeauchamp commented on June 3, 2024

Thanks for the insight, that was my thinking but I wasn't quite sure.

from yank.

jchodera avatar jchodera commented on June 3, 2024

Thanks for the detailed explanation, @rmcgibbo! I agree that this makes a lot of sense for yank.

For example, we food have yank analyze be separate from yank run or yank progress.

from yank.

jchodera avatar jchodera commented on June 3, 2024

I think we will definitely add this feature.

from yank.

pgrinaway avatar pgrinaway commented on June 3, 2024

I think we've settled on a command-line interface, as such I'm going to close this. If anyone disagrees, feel free to reopen.

from yank.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.