-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
72 changed files
with
28,670 additions
and
79 deletions.
There are no files selected for viewing
This file contains 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
File renamed without changes.
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
======= | ||
Logging | ||
======= | ||
|
||
Collection of classes and functions to configuration Python Logger objects, re-purposed to provide detailed status messages during model program execution. | ||
|
||
Contents | ||
-------- | ||
|
||
.. automodule:: balsa.logging | ||
:members: |
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
================= | ||
General Utilities | ||
================= | ||
|
||
.. automodule:: balsa.routines.general | ||
:members: |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
======== | ||
Routines | ||
======== | ||
|
||
A collection of standalone functions for performing various modelling tasks. | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
general | ||
io | ||
modelling | ||
matrices | ||
plotting |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
============ | ||
IO Utilities | ||
============ | ||
|
||
Routines for reading and writing demand modelling files, particularly matrices and TMG Toolbox network packages. | ||
|
||
Matrices | ||
-------- | ||
|
||
Common | ||
~~~~~~ | ||
|
||
.. automodule:: balsa.routines.io.common | ||
:members: | ||
|
||
Inro (Emme) format | ||
~~~~~~~~~~~~~~~~~~ | ||
|
||
.. automodule:: balsa.routines.io.inro | ||
:members: | ||
|
||
|
||
OMX format | ||
~~~~~~~~~~ | ||
|
||
The Python library openmatrix already exists, but doesn't provide a lot of interoperability with Pandas. Balsa provides | ||
wrapper functions that produce Pandas DataFrames and Series directly from OMX files. | ||
|
||
.. automodule:: balsa.routines.io.omx | ||
:members: | ||
|
||
Fortran format | ||
~~~~~~~~~~~~~~ | ||
|
||
.. automodule:: balsa.routines.io.fortran | ||
:members: | ||
|
||
Network Packages (NWP) | ||
---------------------- | ||
|
||
.. automodule:: balsa.routines.io.nwp | ||
:members: |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
================ | ||
Matrix Utilities | ||
================ | ||
|
||
.. automodule:: balsa.routines.matrices | ||
:members: |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
=================== | ||
Modelling Utilities | ||
=================== | ||
|
||
.. automodule:: balsa.routines.modelling | ||
:members: |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
================== | ||
Plotting Utilities | ||
================== | ||
|
||
.. automodule:: balsa.routines.plotting | ||
:members: |
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Sphinx build info version 1 | ||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: d163a3190e500cd10d1ae4f8fe918647 | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
Empty file.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
wsp-balsa: Common modelling tools | ||
================================= | ||
|
||
``wsp-balsa`` is a collection of functions and tools for Python to facilitate travel demand forecasting applications and analyses. It is designed to work the the "scientific stack" of Python, namely NumPy, Pandas, and Matplotlib; which are optimized for speed and usability. The package mostly consists of standalone functions; for input/output, for analysis, etc.; as well as a few lightweight class-based data structures for specific applications. | ||
|
||
The import statement for the ``wsp-balsa`` package is as follows: | ||
|
||
.. code-block:: python | ||
import balsa | ||
.. toctree:: | ||
:maxdepth: 3 | ||
:caption: Contents | ||
|
||
routines/index | ||
logging/index |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
======= | ||
Logging | ||
======= | ||
|
||
Collection of classes and functions to configuration Python Logger objects, re-purposed to provide detailed status messages during model program execution. | ||
|
||
.. automodule:: balsa.logging | ||
:members: |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
================= | ||
General Utilities | ||
================= | ||
|
||
.. automodule:: balsa.routines.general | ||
:members: |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
======== | ||
Routines | ||
======== | ||
|
||
A collection of standalone functions for performing various modelling tasks. | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
general | ||
io | ||
modelling | ||
matrices | ||
plotting |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
============ | ||
IO Utilities | ||
============ | ||
|
||
Routines for reading and writing demand modelling files, particularly matrices and TMG Toolbox network packages. | ||
|
||
Matrices | ||
-------- | ||
|
||
Common | ||
~~~~~~ | ||
|
||
.. automodule:: balsa.routines.io.common | ||
:members: | ||
|
||
Inro (Emme) format | ||
~~~~~~~~~~~~~~~~~~ | ||
|
||
.. automodule:: balsa.routines.io.inro | ||
:members: | ||
|
||
|
||
OMX format | ||
~~~~~~~~~~ | ||
|
||
The Python library openmatrix already exists, but doesn't provide a lot of interoperability with Pandas. Balsa provides | ||
wrapper functions that produce Pandas DataFrames and Series directly from OMX files. | ||
|
||
.. automodule:: balsa.routines.io.omx | ||
:members: | ||
|
||
Fortran format | ||
~~~~~~~~~~~~~~ | ||
|
||
.. automodule:: balsa.routines.io.fortran | ||
:members: | ||
|
||
Network Packages (NWP) | ||
---------------------- | ||
|
||
.. automodule:: balsa.routines.io.nwp | ||
:members: |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
================ | ||
Matrix Utilities | ||
================ | ||
|
||
.. automodule:: balsa.routines.matrices | ||
:members: |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
=================== | ||
Modelling Utilities | ||
=================== | ||
|
||
.. automodule:: balsa.routines.modelling | ||
:members: |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
================== | ||
Plotting Utilities | ||
================== | ||
|
||
.. automodule:: balsa.routines.plotting | ||
:members: |
Oops, something went wrong.