Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tonyfast/metallic-spectacles

Work with jason hattrick-simpers group
https://github.com/tonyfast/metallic-spectacles

Last synced: 11 days ago
JSON representation

Work with jason hattrick-simpers group

Awesome Lists containing this project

README

        

# `surfs-up`

[![Join the chat at https://gitter.im/metallic-spectacles/Lobby](https://badges.gitter.im/metallic-spectacles/Lobby.svg)](https://gitter.im/metallic-spectacles/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

Some things I like to use when I am surfing through data.

## Installation

`pip install surfs-up`

# Basic Usage

```python
from dropin import SimplePipeline, RavelPreProcessor, CorrelationModel
import numpy as np
```

```python
im = np.random.randn(5, 100, 100) > 1
```

```python
RavelPreProcessor.fit_transform(im).sum(axis=1)/100
```

array([ 15.98, 15.94, 15.36, 15.65, 16.26])

```python
autocorrelation_result = CorrelationModel(sz=(100,100), s=(150, 150,)).fit_transform(im);
```

```python
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
plt.pcolor(np.fft.fftshift(autocorrelation_result[0]));
```

![png](../readme_files/../readme_6_0.png)

---

# Development

## Running the Build and Tests

```bash
pip install -r requirements-dev.txt
python setup.py develop
watchmedo tricks tricks.yaml
```

The `watchmedo` script will convert your notebooks to scripts and html files. `py.test-ipynb` will test all notebooks matching `test-*.ipynb`.

## Running the docs

```bash
jekyll serve docs -wit
```

Docs are hosted at `http://localhost:4000/magical-magic/`.

## License
`surfs-up` is released as free software under the [BSD 3-Clause license](https://github.com/tonyfast/magical-magic/blob/master/LICENSE).