Skip to content

scyseq-tools/scyseq-encoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scyseq-encoder

ScySeq Encoder is a Python/Tk application for coding behavioural data from media files. It provides one command line launcher:

  • scyseq-encoder

Requirements

  • Python 3.9 or newer
  • Hatch, used to create and manage the development virtual environment
  • VLC 64-bit, required by the encoder through python-vlc
  • tkinter
    • Windows: included with the standard Python installer
    • Ubuntu/Debian: sudo apt install python3-tk
    • macOS: install Python from python.org if tkinter is missing

On Windows, install 64-bit VLC from:

https://www.videolan.org/vlc/download-windows.html

After installing VLC, this file should exist:

Test-Path "C:\Program Files\VideoLAN\VLC\libvlc.dll"

Starter Setup

Clone or download the project, then open a terminal in the project folder. On Windows, use PowerShell; on macOS or Linux, use your usual terminal.

cd path/to/scyseq-encoder

Replace path/to/scyseq-encoder with the folder where you cloned or downloaded the project.

1. Check Python

python --version

You should see Python 3.9 or newer.

2. Check Whether Hatch Is Installed

hatch --version

If your terminal says hatch is not found or not recognized, install it:

python -m pip install hatch

Then check again:

hatch --version

3. Create and Enter the Hatch Environment

From the project root, run:

hatch shell

Your prompt should now start with something like:

(scyseq-encoder) ...

That means you are inside the ScySeq Encoder virtual environment.

4. Install ScySeq Encoder in Editable Mode

Inside the Hatch shell, install the current project:

python -m pip install -e .

The -e option means "editable": Python imports ScySeq Encoder directly from this source folder, so local code changes are picked up without reinstalling every time.

5. Verify the Install

python -m pip show scyseq-encoder
python -c "import scyseq_encoder.main; print('ok')"

If the last command prints ok, the package import works.

Run ScySeq Encoder

Inside the Hatch shell:

scyseq-encoder

The encoder opens a graphical interface and asks you to choose a working directory. ScySeq Encoder expects or creates media and data folders inside directory. Codix expects or creates media and data folders inside that working directory.

Encoder Window Layout

By default, the encoder opens with the classic single-window layout. To split the encoder into separate Information, Control, and Coding framework windows, add this to the AppData or project config.ini file:

[application]
encoder_layout = detached

Run Tests

Inside the Hatch shell:

python -m pytest tests

Build the Documentation

The documentation is built with Sphinx.

First enter the Hatch environment from the project root:

hatch shell

Then navigate to the docs folder and build the HTML files:

On Windows:

cd docs
./make.bat html

On Linux/Mac:

cd docs
make html

The generated HTML documentation will be available in docs/build/html/. Open docs/build/html/index.html in your browser to view the documentation.

Tools used in this package:

Sphinx pytest Hatch doctest

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages