Skip to content

Commit 7977865

Browse files
committed
update commands to use pixi
1 parent 847cc30 commit 7977865

File tree

2 files changed

+5
-18
lines changed

2 files changed

+5
-18
lines changed

README.md

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -28,23 +28,18 @@ See [this notebook](https://github.com/JaneliaSciComp/neuronbridge-python/blob/m
2828

2929
## Development Notes
3030

31-
To build this code you will need to [install UV](https://docs.astral.sh/uv/getting-started/installation/).
32-
33-
Create a new UV virtual environment and install the dependencies:
31+
To build this code you will need to [install Pixi](https://pixi.sh/latest/installation/). After cloning the repository just type:
3432

3533
```bash
36-
uv venv --python 3.11
37-
source .venv/bin/activate
38-
uv pip sync requirements-universal.txt
39-
uv pip install -e .
34+
pixi install
4035
```
4136

4237
### Running data validation using Ray
4338

4439
You can run validation multithreaded on a single machine like this:
4540

4641
```bash
47-
./neuronbridge/validate_ray.py --dashboard --cores 60
42+
pixi run python ./neuronbridge/validate_ray.py --dashboard --cores 60
4843
```
4944

5045
To run the validation script in a distributed manner on the Janelia cluster, you must first install [ray-janelia](https://github.com/JaneliaSciComp/ray-janelia) in a sister directory to where this code base is cloned. Then run a script to bsub the Ray cluster:
@@ -53,18 +48,10 @@ To run the validation script in a distributed manner on the Janelia cluster, you
5348
./scripts/launch_validation.sh
5449
```
5550

56-
### Updating requirements
57-
58-
After updating the requirements.txt file, you can sync the requirements-universal.txt file like this:
59-
60-
```bash
61-
uv pip compile requirements.txt --universal --output-file requirements-universal.txt
62-
```
63-
6451
### Regenerate the JSON schemas:
6552

6653
```bash
67-
python neuronbridge/generate_schemas.py
54+
pixi run python neuronbridge/generate_schemas.py
6855
```
6956

7057
### Run the unit tests:

scripts/launch_validation.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
DIR=$(cd "$(dirname "$0")"; pwd)
44
BASEDIR=$(realpath $DIR/..)
55

6-
bsub -P scicompsoft -o std%J.out -e std%J.out -n 20 -R "span[ptile=4]" bash -i $BASEDIR/../ray-integration/ray_cluster.sh -c "python $BASEDIR/neuronbridge/validate_ray.py --nomatches" -n "neuronbridge-python" -m 20000000000
6+
bsub -P scicompsoft -o std%J.out -e std%J.out -n 20 -R "span[ptile=4]" bash -i $BASEDIR/../ray-integration/ray_cluster.sh -c "pixi run python $BASEDIR/neuronbridge/validate_ray.py --nomatches" -n "neuronbridge-python" -m 20000000000
77

0 commit comments

Comments
 (0)