Replies: 5 comments
-
|
if you build a framework for adding descriptions to choice parameters, I am happy to contribute said descriptions. :) |
Beta Was this translation helpful? Give feedback.
-
|
Awesome, you're hired. I can currently think of 2 ways to do this:
Pros:
Cons:
and could even be accessed from the Parameter-level
The tricky part about this is that it could get slightly complex if we want to handle any context. If I have my way and the period parameter stays as it is - then do we provide different help strings for period@binary vs period@primary (there are other examples, this is just the most obvious)? Pros:
Cons:
|
Beta Was this translation helpful? Give feedback.
-
|
see the above commit (currently in the "help_framework" branch) and try the following If everyone likes this framework, we can then start populating help messages in this branch (see phoebe.frontend.help) and I can merge back to development once we have decent coverage. |
Beta Was this translation helpful? Give feedback.
-
|
Two considerations: (1) I would prefer help to be a method rather than a string, so (2) for multiply defined parameters (such as period), I wouldn't raise an My 2 cents. On October 5, 2016 12:45:39 Kyle Conroy notifications@github.com wrote:
|
Beta Was this translation helpful? Give feedback.
-
|
(1) I hate printing from phoebe - so instead I changed it (in 535d11b) to call the same pager that python's builtin help function uses (if phoebe is in interactive mode, otherwise it still returns a string). As for parameters - param.help is a property but there is also a param.get_help() method. This was for self-consistency reasons... but now that we don't really return a string anymore, you might be able to convince me to reconsider. (2) I do state the matches in the error statement. It wouldn't be hard to loop through all the matches though... but let's defer that decision until we see how often it comes up? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
some choice options aren't entirely intuitive and could use further explanation.
For example 'ck2004' for the atm parameter or different eclipse_methods would benefit from some explanation in the parameter itself rather than needing to look up in the docs.
Beta Was this translation helpful? Give feedback.
All reactions