Skip to content

thousandbrainsproject/tbp.monty_project_template

Repository files navigation

tbp.monty_project_template

This is a template repository to quickly use tbp.monty for your project, prototype, or paper.

To create a repository from this template, find and click the "Use this template" button:

Use this template

Make it yours

After copying the template, you need to address the following TODOs.

environment.yml

  • Update project name.
  • Update thousandbrainsproject::tbp.monty version.
  • Add any other dependencies.

pyproject.toml

  • Update the project description
  • Update the project name
  • Update the Repository and Issues URLs

Delete template images

  • Delete delete_me.png
  • Delete delete_me_too.png

README.md

  • Update for your project

Recommendations

For a cleaner project commit history, go to your repository settings and in the Pull Requests section, only "Allow squash merging". It also helps to set your default commit message to the "Pull request title" option.

Pull Request Settings

Installation

The environment for this project is managed with conda.

To create the environment, run:

ARM64 (Apple Silicon) (zsh shell)

conda env create -f environment.yml --subdir=osx-64
conda init zsh
conda activate project # TODO: Update to your project's name
conda config --env --set subdir osx-64

ARM64 (Apple Silicon) (bash shell)

conda env create -f environment.yml --subdir=osx-64
conda init
conda activate project # TODO: Update to your project's name
conda config --env --set subdir osx-64

Intel (zsh shell)

conda env create -f environment.yml
conda init zsh
conda activate project # TODO: Update to your project's name

Intel (bash shell)

conda env create -f environment.yml
conda init
conda activate project # TODO: Update to your project's name

Experiments

Experiments are defined in the configs directory.

After installing the environment, to run an experiment, run:

python run.py -e <experiment_name>

To run an experiment where episodes are executed in parallel, run:

python run_parallel.py -e <experiment_name> -n <num_parallel>

Development

After installing the environment, you can run the following commands to check your code.

Run formatter

ruff format

Run style checks

ruff check

Run dependency checks

deptry .

Run static type checks

mypy .

Run tests

pytest

About

Quickly use Monty for your project, prototype, or paper.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages