Skip to content

Commit fe172b9

Browse files
authored
Merge pull request #189 from AstroAI-Lab/main
update paper branch
2 parents bdfba19 + 70b9243 commit fe172b9

6 files changed

Lines changed: 22 additions & 12 deletions

File tree

README.md

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<p align="center">
2-
<img src="./logo_rubix.png" alt="Rubix Logo" width="30%">
2+
<img src="https://github.com/AstroAI-Lab/rubix/blob/main/logo_rubix.png" alt="Rubix Logo" width="30%">
33
</p>
44

55
# Welcome to RUBIX
@@ -25,16 +25,27 @@ Key features include:
2525
- **Flexible and Extensible:** Designed to easily integrate with existing pipelines and astrophysical analysis tools.
2626

2727
## Installation
28+
Rubix is on [PyPi](https://pypi.org/project/astro-rubix/). You can install it via
2829

29-
The Python package `rubix` is published on GitHub and can be installed alongside its runtime dependencies (including JAX) by choosing the relevant extras. For a CPU-only environment, install with:
30+
```
31+
pip install astro-rubix
32+
```
33+
34+
If you need GPU acceleration, you can install it via
35+
36+
```
37+
pip install astro-rubix[cuda]
38+
```
39+
40+
Alternatively, the Python package `rubix` is published on GitHub and can be installed alongside its runtime dependencies (including JAX) by choosing the relevant extras. For a CPU-only environment, install with:
3041

3142
```
3243
git clone https://github.com/AstroAI-Lab/rubix.git
3344
cd rubix
34-
pip install .[cpu]
45+
pip install .
3546
```
3647

37-
If you need GPU acceleration, replace `[cpu]` with `[cuda]` (or install `jax[cuda]` following the [JAX instructions](https://github.com/google/jax#installation) before installing Rubix). The plain `pip install .` command installs the minimal package without JAX and will raise `ImportError` if you try to import `rubix` before adding `jax` manually.
48+
If you need GPU acceleration, please add the optional dependence with `[cuda]` (or install `jax[cuda]` following the [JAX instructions](https://github.com/google/jax#installation) before installing Rubix).
3849

3950
## Development installation
4051

@@ -44,7 +55,7 @@ the following editable installation from this repository:
4455
```
4556
git clone https://github.com/AstroAI-Lab/rubix.git
4657
cd rubix
47-
python -m pip install --editable .[cpu,tests,dev]
58+
python -m pip install --editable .[tests,dev]
4859
```
4960

5061
Having done so, the test suite can be run using `pytest`:
@@ -81,7 +92,7 @@ Please see [here](docs/CONTRIBUTING.md) for contribution guidelines.
8192

8293
Thank you for helping improve `rubix`!
8394

84-
## Citation & Acknowledgement
95+
## Citation
8596

8697
Please cite **both** of the following papers ([Cakir et al. 2024](https://arxiv.org/abs/2412.08265), [Schaible et al. 2025](https://arxiv.org/abs/2511.17110)) if you use Rubix in your research:
8798

docs/CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ You can then clone the repo and install it in editable mode with the extra devel
3030
```bash
3131
git clone https://github.com/AstroAI-Lab/rubix
3232
cd rubix
33-
pip install -e .[cpu,dev]
33+
pip install -e .[dev]
3434
```
3535

36-
Note: if you are planning to use RUBIX on the GPU you need to replace the `cpu` dependency with the corresponding `cuda` dependency. If you additionally plan to build the docs locally you'll also need to include the `docs` dependency group.
36+
Note: if you are planning to use RUBIX on the GPU you need to add the corresponding optional `cuda` dependency. If you additionally plan to build the docs locally you'll also need to include the `docs` dependency group.
3737

3838
### Setting up pre-commit hooks
3939

pyproject.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ build-backend = "setuptools.build_meta"
99
# a variety of build tools. Notably, the version specified here is the
1010
# single source of truth for rubix's version
1111
[project]
12-
name = "rubix"
12+
name = "astro-rubix"
1313
description = "A toolkit for simulating and analyzing integral field spectroscopic data cubes of astronomical sources."
1414
readme = "README.md"
1515

@@ -59,6 +59,7 @@ keywords =[
5959
urls = { Homepage = "https://astro-rubix.web.app", Repository = "https://github.com/AstroAI-Lab/rubix", Issues = "https://github.com/AstroAI-Lab/rubix/issues" }
6060

6161
dependencies = [
62+
"jax[cpu]>0.5.1",
6263
"requests",
6364
"h5py",
6465
"astropy",
@@ -102,9 +103,7 @@ docs = [
102103
"sphinx_mdinclude",
103104
"sphinx_rtd_theme",
104105
]
105-
cpu = [
106-
"jax[cpu]>0.5.1",
107-
]
106+
108107
cuda = [
109108
"jax[cuda]>0.5.1",
110109
]
-46.1 MB
Binary file not shown.
-8.53 MB
Binary file not shown.
-29.9 MB
Binary file not shown.

0 commit comments

Comments
 (0)