You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR makes slight changes to the default returns of OpEnvironment.help() and OpEnvironment.helpVerbose(), elimating smaller symbols (and the key describing them) in favor of Java-style annotations. Right now, that only means a @CONTAINER mark on any Computer output, and a @MUTABLE mark on any Inplace output.
This PR also consolidates down to two "describe" methods in the Infos utility class, as we added two new ones in #113 but did not remove any old ones.
Points of discussion:
As you can see in the associated test, the verbose descriptions for adapted Op infos are almost unusably long. How should we change them? For example:
I don't think you need to list the version in the help output since you can't have multiple versions of an op loaded at runtime.
Does a user ever need to see package names? I can't think of a reason they would, off the top of my head. They are never going to use that information to call the op.
The parameter info in the op name (java.lang.Double,java.lang.Double) is redundant
Well, keep in mind that the "name" used here comes from OpInfo.implementationName() currently, which is designed to give users some more information about which Ops exist. Maybe we should change that, though...what would you prefer to see @hinerm? Keep in mind this decision would affect all Ops, not just adapted Ops.
Well, keep in mind that the "name" used here comes from OpInfo.implementationName() currently, which is designed to give users some more information about which Ops exist. Maybe we should change that, though...what would you prefer to see @hinerm? Keep in mind this decision would affect all Ops, not just adapted Ops.
I would consider not changing the implementationName method but in verbose output processing looking at replacing |Info characters with newlines and indents.
I don't have any other suggestions on shortening the name beyond what I posted above. I fine just leaving it the way it is.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR makes slight changes to the default returns of
OpEnvironment.help()andOpEnvironment.helpVerbose(), elimating smaller symbols (and the key describing them) in favor of Java-style annotations. Right now, that only means a@CONTAINERmark on anyComputeroutput, and a@MUTABLEmark on anyInplaceoutput.This PR also consolidates down to two "describe" methods in the
Infosutility class, as we added two new ones in #113 but did not remove any old ones.Points of discussion:
TODO:
Closes scijava/scijava#178 and scijava/scijava#179