Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: test
on:
push:
branches: [main]
pull_request:
jobs:
pytest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v6
- run: uv sync --locked
- run: uv run pytest -q
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,16 @@ You can install the latest development version of Cognax directly from GitHub us
pip install git+https://github.com/compmem/cognax
```

> [!NOTE]
> JAX is not listed as a dependency, but it must be installed separately before using Cognax. See the [JAX Docs](https://jax.readthedocs.io/en/latest/installation.html) for more information.
## Development

Cognax uses [uv](https://docs.astral.sh/uv/) for local development. To create a development environment and install the project with its development dependencies, run:

```bash
uv sync
```

Run tests through uv:

```bash
uv run pytest
```
2 changes: 2 additions & 0 deletions cognax/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from cognax import decisions, df_util, experimental, joint, util

__version__: str = "0.1.0"

__all__ = ["decisions", "df_util", "experimental", "joint", "util"]
374 changes: 339 additions & 35 deletions examples/fit_trdm.ipynb

Large diffs are not rendered by default.

490 changes: 449 additions & 41 deletions examples/fit_wfpt.ipynb

Large diffs are not rendered by default.

20 changes: 11 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
requires = ["flit_core>=3.12,<4"]
build-backend = "flit_core.buildapi"

[project]
name = "cognax"
version = "0.0.1"

# This is set automatically by flit using `cognax.__version__`
dynamic = ["version"]
description = "Build, fit, and sample from cognitive models with JAX + NumPyro."
readme = "README.md"
requires-python = ">=3.12"
license = {file = "LICENSE"}
authors = [
{name = "Ami Falk", email="aaf2pz@virginia.edu"},
]
license = { file = "LICENSE" }
authors = [{ name = "Ami Falk", email = "aaf2pz@virginia.edu" }]
keywords = ["cognitive-science", "modeling-tools", "jax", "numpyro"]
urls = {repository = "https://github.com/compmem/cognax/"}
urls = { repository = "https://github.com/compmem/cognax/" }
dependencies = [
"jax >= 0.11",
"numpyro >= 0.22",
Expand All @@ -23,4 +23,6 @@ dependencies = [

[project.optional-dependencies]
examples = ["arviz", "jupyter", "matplotlib"]
test = ["pytest", "scipy"]

[dependency-groups]
dev = ["pytest", "ruff", "scipy"]
2,409 changes: 2,409 additions & 0 deletions uv.lock

Large diffs are not rendered by default.

Loading