Skip to content

Cube Wrangler

Welcome to Cube Wrangler. Cube Wrangler is a Python package that contains utilities for working with Network Wrangler. Cube is a commercial travel modeling software package. Cube Wrangler contains methods for carrying out the following common tasks:

  • Creates a set of files than can be read in by a Cube script to create a Cube roadway network.
  • Writes out a Network Wrangler transit network in Cube format.
  • Converts a Cube Log file, which is a record of roadway edits done in Cube, into a Project Card.
  • Converts two Cube LIN files, which are Cube’s way of representing transit, into a Project Card. Note that Cube’s log files do not record transit edits. Rather, Cube writes out an updated LIN file. Cube Wrangler assesses the differences in the LIN files and creates a Project Card that represents the edits.

Installation

[NOT YET IMPLEMENTED]

The Cube Wrangler package is available on PyPI. If you are managing multiple python versions, we suggest using virtualenv or conda virtual environments. conda is the environment manager that is contained within both the Anaconda and mini-conda applications.

An example installation using conda in the command line is as follows:

1
2
3
4
conda config --add channels conda-forge
conda create python=3.10 -n your_environment_name
conda activate your_environment_name
pip install cube_wrangler