{"id":993,"date":"2018-08-11T18:08:52","date_gmt":"2018-08-11T16:08:52","guid":{"rendered":"https:\/\/aerospaceresearch.net\/?p=993"},"modified":"2018-08-19T12:46:35","modified_gmt":"2018-08-19T10:46:35","slug":"gsoc18vismashantanu-week-12-13-packing-up","status":"publish","type":"post","link":"https:\/\/aerospaceresearch.net\/?p=993","title":{"rendered":"[GSoC&#8217;18|VisMa|Shantanu] Week #12-13: Packing Up"},"content":{"rendered":"<p>This is GSoC\u201918 log#06. Here I will cover on what I have done in week #12-13. Link to the\u00a0<a href=\"https:\/\/aerospaceresearch.net\/?p=990\">previous log<\/a>. The work in these two weeks involved packaging and documenting the code.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-706\" src=\"https:\/\/aerospaceresearch.net\/wp-content\/uploads\/2018\/05\/vismabanner.jpg\" alt=\"\" width=\"1280\" height=\"800\" \/><\/p>\n<h2>Done so far&#8230;<\/h2>\n<p>Deciding which packaging style to choose was a difficult task. Though there were a number of options available for packaging python apps I couldn\u2019t find one which makes it simple for packaging it for windows. I managed to convert the source into a single executable file using\u00a0<strong>pyinstaller<\/strong>\u00a0but the performance was compromised.<\/p>\n<p><!--more--><\/p>\n<p>Finally, I went with\u00a0<strong>PyPI<\/strong>. A simple\u00a0<em>setup.py<\/em>\u00a0was created which contained information about the dependencies to be installed. Installing\u00a0<strong>visma<\/strong>\u00a0is quiet simple now.\u00a0To install just type:<\/p>\n<div class=\"language-bash highlighter-rouge\">\n<div class=\"highlight\">\n<pre class=\"highlight\">$ pip3 install VISualMAth<\/pre>\n<\/div>\n<\/div>\n<p>And to launch type:<\/p>\n<div class=\"language-bash highlighter-rouge\">\n<div class=\"highlight\">\n<pre class=\"highlight\">$ visma<\/pre>\n<\/div>\n<\/div>\n<p>I also modified the\u00a0<em>run<\/em>\u00a0script which can be used by future developers to install, test and package\u00a0<strong>visma<\/strong>. Below are the available options in the new\u00a0<em>run<\/em>\u00a0script.<\/p>\n<div class=\"highlighter-rouge\">\n<div class=\"highlight\">\n<pre class=\"highlight\">$ .\/run\r\nEnter command arguments with run\r\n    .\/run install - Install all dependencies for visma\r\n    .\/run visma - Open visma GUI\r\n    .\/run test - Run all the tests and generates coverage report\r\n    .\/run test path\/to\/test_file.py - Runs all tests and shows coverage for given file\r\n    .\/run test syntax - Run syntax test using pylama\r\n    .\/run test modules - Run tests using pytest for all modules\r\n    .\/run test coverage - After running all the tests, open coverage report\r\n    .\/run pack - Generate builds for visma package\r\n    .\/run pack upload - Generate builds and then upload to test.pypi.org\r\n    .\/run pack final - Generate builds and upload final build to pypi.org\r\n    .\/run clean - Clean all cache, reports and builds<\/pre>\n<\/div>\n<\/div>\n<p>The\u00a0<em>plotter<\/em>\u00a0has been divided into two separate tabs i.e. 2D plot and 3D plot. The appropriate tab will be focused while plotting a given input. Also I have embedded the settings menu into the UI instead of creating a pop-up one. The settings contain options to enable\/disable UI elements, change font sizes, change plot\u2019s axis ranges and mesh density etc.<\/p>\n<p>Plotting an equation in different axis ranges helps in visualizing it in a better way. The below demo justifies the previous statement.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium\" src=\"https:\/\/raw.githubusercontent.com\/8hantanu\/8hantanu.github.io\/master\/assets\/images\/vismademo6.gif\" width=\"1214\" height=\"949\" \/><\/p>\n<h2 id=\"what-i-will-be-doing-next\">What I will be doing next\u2026<\/h2>\n<p>The project wiki is yet to be updated. It will contain the user and developer manual. Some more inline comments and docstrings can be added.<\/p>\n<p>Though the GSoC period is coming to an end, there are still a lot of new things I want to implement in\u00a0<strong>visma<\/strong>. I am thinking of making\u00a0<strong>visma<\/strong>\u00a0accessible from the terminal itself. A webapp is also on my mind (will implement after adding some more useful features).<\/p>\n<p>Link to\u00a0<a title=\"visma\" href=\"https:\/\/github.com\/aerospaceresearch\/visma\">project source<\/a>\u00a0and\u00a0<a title=\"Project Progress\" href=\"https:\/\/github.com\/aerospaceresearch\/visma\/projects\/1\">to-do board<\/a>.<\/p>\n<p>Read on <a href=\"https:\/\/8hantanu.github.io\/gsoc18\/2018\/07\/28\/gsoc-log05-dynamic-simplification-and-plotting.html\">my blog<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is GSoC\u201918 log#06. Here I will cover on what I have done in week #12-13. Link to the\u00a0previous log. The work in these two weeks involved packaging and documenting the code. Done so far&#8230; Deciding which packaging style to choose was a difficult task. Though there were a number of options available for packaging &hellip; <a href=\"https:\/\/aerospaceresearch.net\/?p=993\" class=\"more-link\"><span class=\"screen-reader-text\">\u201e[GSoC&#8217;18|VisMa|Shantanu] Week #12-13: Packing Up\u201c<\/span> weiterlesen<\/a><\/p>\n","protected":false},"author":14,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/aerospaceresearch.net\/index.php?rest_route=\/wp\/v2\/posts\/993"}],"collection":[{"href":"https:\/\/aerospaceresearch.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aerospaceresearch.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aerospaceresearch.net\/index.php?rest_route=\/wp\/v2\/users\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/aerospaceresearch.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=993"}],"version-history":[{"count":3,"href":"https:\/\/aerospaceresearch.net\/index.php?rest_route=\/wp\/v2\/posts\/993\/revisions"}],"predecessor-version":[{"id":1030,"href":"https:\/\/aerospaceresearch.net\/index.php?rest_route=\/wp\/v2\/posts\/993\/revisions\/1030"}],"wp:attachment":[{"href":"https:\/\/aerospaceresearch.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=993"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aerospaceresearch.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=993"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aerospaceresearch.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=993"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}