Skip to content

Commit

Permalink
WIP: move cluster.manual to cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
rossant committed Nov 23, 2016
1 parent 3f6ead3 commit 6a6e22e
Show file tree
Hide file tree
Showing 21 changed files with 19 additions and 26 deletions.
2 changes: 1 addition & 1 deletion MANIFEST.in
Expand Up @@ -5,7 +5,7 @@ recursive-include tests *
recursive-include phy/electrode/probes *.prb
recursive-include phy/plot/glsl *.vert *.frag *.glsl
recursive-include phy/plot/static *.npy *.gz *.txt
recursive-include phy/cluster/manual/static *.html *.css
recursive-include phy/cluster/static *.html *.css
recursive-include phy/gui/static *.html *.css *.js
recursive-exclude * __pycache__
recursive-exclude * *.py[co]
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -14,7 +14,7 @@

**phy** contains the following subpackages:

* **phy.cluster.manual**: an API for manual sorting, used to create graphical interfaces for neurophysiological data
* **phy.cluster**: an API for manual sorting, used to create graphical interfaces for neurophysiological data
* **phy.gui**: a generic API for creating desktop applications with PyQt.
* **phy.plot**: a generic API for creating high-performance plots with VisPy (using the graphics processor via OpenGL)

Expand Down
4 changes: 2 additions & 2 deletions docs/cluster-manual.md → docs/clustering.md
@@ -1,6 +1,6 @@
# Manual clustering

The `phy.cluster.manual` package provides manual clustering routines. The components can be used independently in a modular way.
The `phy.cluster` package provides manual clustering routines. The components can be used independently in a modular way.

## Clustering

Expand Down Expand Up @@ -84,7 +84,7 @@ The `ClusterMeta` class implement the logic of assigning metadata to every clust
Here is an example.

```python
>>> from phy.cluster.manual import ClusterMeta
>>> from phy.cluster import ClusterMeta
>>> cm = ClusterMeta()
```

Expand Down
2 changes: 1 addition & 1 deletion mkdocs.yml
Expand Up @@ -3,7 +3,7 @@ pages:
- Home: 'index.md'
- GUI: 'gui.md'
- Plotting: 'plot.md'
- Manual clustering: 'cluster-manual.md'
- Manual clustering: 'clustering.md'
- Configuration and plugin system: 'config.md'
- Command-line interface: 'cli.md'
theme: readthedocs
7 changes: 5 additions & 2 deletions phy/cluster/__init__.py
@@ -1,6 +1,9 @@
# -*- coding: utf-8 -*-
# flake8: noqa

"""Automatic and manual clustering facilities."""
"""Manual clustering facilities."""

from . import manual
from ._utils import ClusterMeta
from .clustering import Clustering
from .gui_component import ManualClustering
from .views import WaveformView, TraceView, FeatureView, CorrelogramView
File renamed without changes.
File renamed without changes.
File renamed without changes.
16 changes: 8 additions & 8 deletions phy/cluster/manual/controller.py → phy/cluster/controller.py
Expand Up @@ -11,14 +11,14 @@

import numpy as np

from phy.cluster.manual.gui_component import ManualClustering
from phy.cluster.manual.views import (WaveformView,
TraceView,
FeatureView,
CorrelogramView,
select_traces,
extract_spikes,
)
from phy.cluster.gui_component import ManualClustering
from phy.cluster.views import (WaveformView,
TraceView,
FeatureView,
CorrelogramView,
select_traces,
extract_spikes,
)
from phy.gui import GUI
from phy.io.array import _get_data_lim, concat_per_cluster, get_excerpts
from phy.io import Context, Selector
Expand Down
File renamed without changes.
9 changes: 0 additions & 9 deletions phy/cluster/manual/__init__.py

This file was deleted.

Empty file.
Expand Up @@ -10,7 +10,7 @@

import numpy as np

from phy.cluster.manual.controller import Controller
from phy.cluster.controller import Controller
from phy.electrode.mea import staggered_positions
from phy.io.array import (get_closest_clusters,
_spikes_in_clusters,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion tools/api.py
Expand Up @@ -315,7 +315,6 @@ def generate_api_doc(package, subpackages, path=None):
package = 'phy'
subpackages = [
'cluster',
'cluster.manual',
'electrode',
'gui',
'io',
Expand Down

0 comments on commit 6a6e22e

Please sign in to comment.