Skip to content

Latest commit

 

History

History
79 lines (57 loc) · 2.71 KB

usage.rst

File metadata and controls

79 lines (57 loc) · 2.71 KB

Using Osmosis

Installation

To install :mod:`osmosis` on your computer, grab the code from github. Then, in the terminal set your pwd to be the top-level directory of the source tree and, at the terminal, issue:

python setup.py install

Test your installation

You can run the full test-suite by issuing the following from a terminal:

python -c"import osmosis; osmosis.test()"

Let [me](http://arokem.org/) know if this is not working for you and we will fix it. Make sure that you have all the [dependencies](https://github.com/vistalab/osmosis/blob/master/doc/dependencies.rst) installed. One easy way to get most of these dependencies installed is to use [Enthought Canopy](https://www.enthought.com/products/canopy/).

Where you can find some data

Download all the files from [here](https://sdr.stanford.edu/items/druid:ng782rw8378). Place them inside of a directory. At the beginning of each analysis script, you will want to adjust the data path to point to the location where you put the files, by setting the internal data_path variable of the :mod:`io` module:

import osmosis.io as oio oio.data_path = 'path/to/files'

Once you do that, the functions in that module should do your bidding on these data-sets.

How to get started with analysis

Examples of analysis using osmosis are in the doc/paper_figures directory. These scripts read data from file, fit models and perform evaluation and comparison of these models.

Modules