Package: wrangler-lasso
Lasso (or whatever we decide to call it)This package of utilities is a wrapper around thenetwork_wranglerpackage for MetCouncil.  It aims to have the following functionality:parse Cube log files and base highway networks and create ProjectCards for Network Wranglerparse two Cube transit line files and create ProjectCards for NetworkWranglerrefine Network Wrangler highway networks to contain specific variables and settings for Metropolitan Council and export them to a format that can be read in by  Citilab's Cube software.InstallationRequirementsLasso uses Python 3.6 and above.  Requirements are stored inrequirements.txtbut are automatically installed when usingpipas are development requirements (for now) which are located indev-requirements.txtBasic instructionsIf you are managing multiple python versions, we suggest usingvirtualenvorcondavirtual environments.Example using a conda environment (recommended):condacreatepython=3.7-n<my_lasso_environment>sourceactivate<my_lasso_environment>
condainstallrtree
condainstallshapely
condainstallfiona
pipinstallgit+https://github.com/wsp-sag/network_wrangler.git@master#egg=network_wrangler
pipinstallgit+https://github.com/wsp-sag/Lasso@master#egg=lassoFrom GitHubUse the package managerpipto install Lasso from the source on GitHub.condainstallrtree
condainstallshapely
pipinstall-egit+https://github.com/wsp-sag/network_wrangler.git@master#egg=network_wrangler
pipinstall-egit+https://github.com/wsp-sag/Lasso@master#egg=lassoNote: if you wanted to install from a specific tag/version number or branch, replace@masterwith@<branchname>or@tagFrom CloneIf you are going to be working on Lasso locally, you might want to clone it to your local machine and install it from the clone.  The -e will install it ineditable mode.if you plan to do development on both network wrangler and lasso locally, consider installing network wrangler from a clone as well!gitclonehttps://github.com/wsp-sag/Lassocdlasso
pipinstall-egit+https://github.com/wsp-sag/network_wrangler.git@master#egg=network_wrangler
pipinstall-e.Note: if you are not part of the project team and want to contribute code bxack to the project, please fork before you clone and then add the original repository to your upstream origin list perthese directions on github.DocumentationNot currently up and running, but when it is...Documentation requires the sphinx package and can be built from the/docsfolder using the command:make htmlUsageTo learn basic lasso functionality, please refer to the following jupyter notebooks in the/notebooksdirectory:Lasso Project Card Creation Quickstart.ipynbLasso Scenario Creation Quickstart.ipynbJupyter notebooks can be started by activating the lasso conda environment and typingjupyter notebook:condaactivate<my_lasso_environment>
jupyternotebookA few other very basic API tips:importlasso##TODOClient Contact and RelationshipRepository created in support of Met Council Network Rebuild project. Project lead on the client side isRachel Wiken. WSP team member responsible for this repository isDavid Ory.AttributionThis project is built upon the ideas and concepts implemented in thenetwork wrangler projectby theSan Francisco County Transportation Authorityand expanded upon by theMetropolitan Transportation Commission.