★ wanayoo — archive 1999 https://github.com/nelpy/ghostNouvelle recherche | Portail wanayoo
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.rst

ghost-logo

ghost (Grand Hub Of Spectral Tools) is the friendly phantom that helps you do signal processing on neuroscience data, especially spectral analysis ;)

It can be used as a standalone package for numpy arrays, or as a companion plugin module to nelpy. Currently it supports rudimentary wavelet analysis. Planned features include multitaper Fourier methods, phase-amplitude & phase-phase coupling, current source density analysis, and more.

ghost tries to be as lightweight yet fast as possible. Suggestions for increasing efficiency and performance are always welcome!

Installation

To install this package, please run the following commands

$ git clone https://github.com/nelpy/ghost.git
$ cd ghost
$ pip install

If you are a developer and would like to modify the code, replace the last command above with

$ pip install -e .

Example

Suppose you have a numpy array named X which was sampled at 1 kHz, on which you want to run a continuous wavelet transform:

from ghost.wave import ContinuousWaveletTransform

cwt = ContinuousWaveletTransform()
cwt.transform(X, fs=1000)

If you have a nelpy AnalogSignalArray named asa, you can simply do:

from ghost.wave import ContinuousWaveletTransform

cwt = ContinuousWaveletTransform()
cwt.transform(asa)

In either case, you can obtain the spectrogram by calling plot:

cwt.plot(logscale=False,
         standardize=True,
         cmap=plt.cm.Spectral_r,
         levels=300,
         vmin=0,
         vmax=10)

And that's it! Short and simple.

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.