setup
pyenv install 3.10.14
pyenv virtualenv 3.10.14 cursor
pyenv activate cursor
pip install -r requirements.txt
git submodule update --init
adjust config.ini
cp config config_local.ini
# adjust paths to data folder. within data folder we expect "recordings" and "experiments" folder
test
# linux/osx
py.test --cov cursor -v
flake8 --max-line-length=100 --ignore=E402,W503
# single test
pytest tests/test_renderer.py::test_ascii_renderer
# windows
python -m pytest --cov=cursor . -v
recorder
# check scripts folder
pip install -e .
cursor_recorder
experiment
pip install -e .
cd experiments
python file.py
tools
See tools for more information on available tools.
data handling
# remove recording files with <3kb in file size
cd data/recordings
find . -name "*.json" -type 'f' -size -3k -delete
# share dir in local network via sshfs
sshfs [email protected]:/home/marcel/share/ ./share