Skip to content

Commit

Permalink
code refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
ramintoosi committed Jul 9, 2023
1 parent 7465de1 commit ceb59d4
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 20 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/ross-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@ jobs:
strategy:
max-parallel: 5
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: '3.9'
- name: Add conda to system path
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
echo $CONDA/bin >> $GITHUB_PATH
- name: Install dependencies
run: |
conda env update --file environment.yml --name base
- name: Test with pytest
run: |
python -m pytest -q -rf --tb=short --cov-report term-missing --cov=./
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: '3.9'
- name: Add conda to system path
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
echo $CONDA/bin >> $GITHUB_PATH
- name: Install dependencies
run: |
conda env update --file environment.yml --name base
- name: Test with pytest
run: |
python -m pytest -q -rf --tb=short --cov-report term-missing --cov=./
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,17 @@

![ROSS Test](https://github.com/ramintoosi/ROSS/actions/workflows/ross-test.yml/badge.svg)

ROSS v2 (alpha) is the Python version of offline spike sorting software implemented based on the methods described in the
ROSS v2 (alpha) is the Python version of offline spike sorting software implemented based on the methods described in
the
paper
entitled [An automatic spike sorting algorithm based on adaptive spike detection and a mixture of skew-t distributions](https://www.nature.com/articles/s41598-021-93088-w). (
Official Python Implementation)

### Important Note on ROSS v2

ROSS v2 is implemented based on the client-server architecture. In the alpha version, the GUI and processing units are
completely separated and their connection is based on Restful APIs. Now, you are able to run the light GUI on a simple machine while the data and algorithms would be executed on a
completely separated and their connection is based on Restful APIs. Now, you are able to run the light GUI on a simple
machine while the data and algorithms would be executed on a
separate server in your lab. Please carefully read the docs and check our tutorial videos.

## Requirements
Expand All @@ -32,6 +34,7 @@ separate server in your lab. Please carefully read the docs and check our tutori
2. Run the UI by typing ```python ./ross_ui/main.py``` in the terminal.

**Note:** If you have a separate server, run ```step 1``` in your server and ```step 2``` in your personal computer.

3. The first time you want to use the software, you must define a user as follows:

- In opened window, click on ```Options``` ---> ```Sign In/Up``` , enter the desired username and password, click
Expand Down Expand Up @@ -88,6 +91,7 @@ ROSS v2, same as v1, provides useful tools for spike detection, automatic and ma
![image](./images/vis2.png)

# Citation

If ROSS helps your research, please cite our paper in your publications.

```
Expand Down
2 changes: 1 addition & 1 deletion ross_backend/rutils/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from pathlib import Path
from uuid import uuid4

from scipy.io import loadmat
import numpy as np
from scipy.io import loadmat

Raw_data_path = os.path.join(Path(__file__).parent, '../ross_data/Raw_Data')
Path(Raw_data_path).mkdir(parents=True, exist_ok=True)
Expand Down
2 changes: 0 additions & 2 deletions ross_ui/controller/mainWindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import pyqtgraph
import pyqtgraph.exporters
import pyqtgraph.opengl as gl
Expand All @@ -16,7 +15,6 @@
from PyQt5 import QtCore, QtWidgets, QtGui
from PyQt5.QtGui import QPixmap, QTransform, QColor, QIcon
from colour import Color
from nptdms import TdmsFile
from shapely.geometry import Point, Polygon
from sklearn.neighbors import NearestNeighbors

Expand Down

0 comments on commit ceb59d4

Please sign in to comment.