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

[SYSTEMML-1600] Add version info in MLContext #502

Closed

Conversation

krishnakalyan3
Copy link
Member

@krishnakalyan3 krishnakalyan3 commented May 15, 2017

Append SystemML version number to MLContext welcome message.
Tested local in my local system.

ping @deroneriksson

Welcome to Apache SystemML!
Version 1.0.0-incubating-SNAPSHOT
ml: org.apache.sysml.api.mlcontext.MLContext = org.apache.sysml.api.mlcontext.MLContext@1755aee6

@akchinSTC
Copy link
Contributor

Can an Admin verify this patch?

StringBuilder sb = new StringBuilder();
sb.append("\nWelcome to Apache SystemML!\n");
StringBuilder sb = new StringBuilder();
sb.append("\nWelcome to Apache SystemML!\n Version ");
Copy link
Member

Choose a reason for hiding this comment

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

Hi @krishnakalyan3. Thank you for working on this!

Would you mind moving " Version " to within the if (info.version() != null) { } block? Otherwise, if someone is developing using MLContext in an IDE (where no SystemML jar file is available), they see output such as the following in the console:

Welcome to Apache SystemML!
 Version 

rather than just

Welcome to Apache SystemML!

Thanks!

Copy link
Member Author

Choose a reason for hiding this comment

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

@deroneriksson Thank you for the review. I have made the necessary changes

Copy link
Member

@deroneriksson deroneriksson left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you @krishnakalyan3!

@asfgit asfgit closed this in ecadf0f May 16, 2017
j143-zz pushed a commit to j143-zz/systemml that referenced this pull request Nov 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants