Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/tonyfast/metallic-spectacles
- Owner: tonyfast
- License: bsd-3-clause
- Created: 2016-09-09T13:06:42.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-09T17:24:16.000Z (about 8 years ago)
- Last Synced: 2024-10-11T19:25:23.377Z (about 1 month ago)
- Language: Jupyter Notebook
- Size: 5.88 MB
- Stars: 0
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
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).