Skip to content

Commit a08c08d

Browse files
committed
refactor: rename release to simind-python-connector
1 parent ae11ff4 commit a08c08d

102 files changed

Lines changed: 225 additions & 223 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515
- Helper utilities for configuring and running SIMIND Monte Carlo simulations from Python.
1616
- Comprehensive test suite using `pytest`.
1717
- Documentation hosted on ReadTheDocs.
18-
- PyPI packaging (`py-smc`) with optional `dev` and `examples` dependency groups.
18+
- PyPI packaging (`simind-python-connector`) with optional `dev` and `examples` dependency groups.

MANIFEST.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ include README.md
22
include LICENSE
33
include requirements.txt
44
include requirements-dev.txt
5-
recursive-include py_smc/data *.atn
6-
recursive-include py_smc/data *.json
7-
recursive-include py_smc/configs *.smc *.yaml
5+
recursive-include simind_python_connector/data *.atn
6+
recursive-include simind_python_connector/data *.json
7+
recursive-include simind_python_connector/configs *.smc *.yaml
88
recursive-include docs *.rst *.py
99
recursive-include tests *.py
1010
recursive-include examples *.py

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# py-smc
1+
# simind-python-connector
22

33
Python SIMIND Monte Carlo Connector.
44

5-
[![Tests](https://github.com/samdporter/py-smc/workflows/Tests/badge.svg)](https://github.com/samdporter/py-smc/actions)
6-
[![Documentation Status](https://readthedocs.org/projects/py-smc/badge/?version=latest)](https://py-smc.readthedocs.io/en/latest/?badge=latest)
5+
[![Tests](https://github.com/samdporter/simind-python-connector/workflows/Tests/badge.svg)](https://github.com/samdporter/simind-python-connector/actions)
6+
[![Documentation Status](https://readthedocs.org/projects/simind-python-connector/badge/?version=latest)](https://simind-python-connector.readthedocs.io/en/latest/?badge=latest)
77
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
88
[![Python Version](https://img.shields.io/badge/python-3.9%2B-blue.svg)](https://www.python.org/downloads/)
99

@@ -20,9 +20,9 @@ SIMIND is **not distributed** with this package. You must separately obtain and
2020
install a licensed SIMIND installation.
2121

2222
## Quick Links
23-
- [Full Documentation](https://py-smc.readthedocs.io/)
24-
- [Installation](https://py-smc.readthedocs.io/en/latest/installation.html)
25-
- [Backend Support](https://py-smc.readthedocs.io/en/latest/backends.html) - adaptor dependency matrix
23+
- [Full Documentation](https://simind-python-connector.readthedocs.io/)
24+
- [Installation](https://simind-python-connector.readthedocs.io/en/latest/installation.html)
25+
- [Backend Support](https://simind-python-connector.readthedocs.io/en/latest/backends.html) - adaptor dependency matrix
2626

2727
## What This Package Does
2828
1. Runs SIMIND from Python with a minimal, explicit API.
@@ -41,13 +41,13 @@ install a licensed SIMIND installation.
4141
### Basic Installation
4242

4343
```bash
44-
pip install py-smc
44+
pip install simind-python-connector
4545
```
4646

4747
Import path remains:
4848

4949
```python
50-
import py_smc
50+
import simind_python_connector
5151
```
5252

5353
### Adaptor Dependencies
@@ -128,8 +128,8 @@ when the binary exists at `./simind/simind`.
128128
## Quick Start
129129
```python
130130
import numpy as np
131-
from py_smc import SimindPythonConnector
132-
from py_smc.configs import get
131+
from simind_python_connector import SimindPythonConnector
132+
from simind_python_connector.configs import get
133133

134134
source = np.zeros((32, 32, 32), dtype=np.float32) # z, y, x
135135
source[12:20, 12:20, 12:20] = 1.0
@@ -162,7 +162,7 @@ print(total.shape)
162162
### Advanced Density Conversion
163163

164164
```python
165-
from py_smc.converters.attenuation import hu_to_density_schneider
165+
from simind_python_connector.converters.attenuation import hu_to_density_schneider
166166
import numpy as np
167167

168168
# Convert HU image to densities using Schneider2000 model
@@ -173,8 +173,8 @@ density_map = hu_to_density_schneider(hu_image) # 44-segment clinical model
173173
### Pure Python Connector (NumPy Outputs)
174174

175175
```python
176-
from py_smc import RuntimeOperator, SimindPythonConnector
177-
from py_smc.configs import get
176+
from simind_python_connector import RuntimeOperator, SimindPythonConnector
177+
from simind_python_connector.configs import get
178178

179179
connector = SimindPythonConnector(
180180
config_source=get("AnyScan.yaml"),

docker/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ Notes
8585
- For mixed host/runtime architectures, the runner scripts auto-detect SIMIND
8686
binary architecture (`x86_64`/`aarch64`) and set Docker platform automatically;
8787
use `--docker-platform` to override.
88-
- `input.smc` is bundled in `py_smc/configs`; SIMIND runtime checks
88+
- `input.smc` is bundled in `simind_python_connector/configs`; SIMIND runtime checks
8989
only gate external executable availability.
90-
- The toy adaptor examples use `py_smc/configs/Example.yaml`,
90+
- The toy adaptor examples use `simind_python_connector/configs/Example.yaml`,
9191
a reduced projection-space profile derived from `AnyScan.yaml`.
9292
- These images are intended to run examples and interactive exploration.

docker/compose.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ services:
33
build:
44
context: ..
55
dockerfile: docker/python/Dockerfile
6-
image: py-smc/python:dev
6+
image: simind-python-connector/python:dev
77
working_dir: /workspace
88
environment:
99
SIMIND_CONNECTOR_BACKEND: python
@@ -21,7 +21,7 @@ services:
2121
build:
2222
context: ..
2323
dockerfile: docker/stir/Dockerfile
24-
image: py-smc/stir:dev
24+
image: simind-python-connector/stir:dev
2525
working_dir: /workspace
2626
environment:
2727
SIMIND_CONNECTOR_BACKEND: stir
@@ -39,7 +39,7 @@ services:
3939
build:
4040
context: ..
4141
dockerfile: docker/sirf/Dockerfile
42-
image: py-smc/sirf:dev
42+
image: simind-python-connector/sirf:dev
4343
working_dir: /workspace
4444
environment:
4545
SIMIND_CONNECTOR_BACKEND: sirf
@@ -58,7 +58,7 @@ services:
5858
build:
5959
context: ..
6060
dockerfile: docker/pytomography/Dockerfile
61-
image: py-smc/pytomography:dev
61+
image: simind-python-connector/pytomography:dev
6262
working_dir: /workspace
6363
environment:
6464
SIMIND_CONNECTOR_BACKEND: pytomography

docker/import_guard/sitecustomize.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
Import guard used by backend-isolated Docker environments.
33
4-
Set PY_SMC_BLOCK_IMPORTS to a comma-separated list of top-level module
4+
Set SIMIND_PYTHON_CONNECTOR_BLOCK_IMPORTS to a comma-separated list of top-level module
55
names. Any import matching one of those module roots will raise ImportError.
66
"""
77

@@ -15,7 +15,7 @@
1515

1616
BLOCKED_IMPORTS = {
1717
entry.strip()
18-
for entry in os.environ.get("PY_SMC_BLOCK_IMPORTS", "").split(",")
18+
for entry in os.environ.get("SIMIND_PYTHON_CONNECTOR_BLOCK_IMPORTS", "").split(",")
1919
if entry.strip()
2020
}
2121

docker/python/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ENV SIMIND_MPI_BIN=${SIMIND_ROOT}/simind_mpi
99
ENV SIMIND_SMC_DIR=${SIMIND_ROOT}/smc_dir/
1010
ENV SIMIND_DATA_DIR=${SIMIND_ROOT}/smc_dir/
1111
ENV SMC_DIR=${SIMIND_ROOT}/smc_dir/
12-
ENV PY_SMC_BLOCK_IMPORTS=sirf,stir,stirextra,pytomography
12+
ENV SIMIND_PYTHON_CONNECTOR_BLOCK_IMPORTS=sirf,stir,stirextra,pytomography
1313
ENV PYTHONPATH=/workspace/docker/import_guard:${PYTHONPATH}
1414
ENV PATH=${SIMIND_ROOT}/bin:${SIMIND_ROOT}:${PATH}
1515

docker/pytomography/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ENV SIMIND_MPI_BIN=${SIMIND_ROOT}/simind_mpi
1010
ENV SIMIND_SMC_DIR=${SIMIND_ROOT}/smc_dir/
1111
ENV SIMIND_DATA_DIR=${SIMIND_ROOT}/smc_dir/
1212
ENV SMC_DIR=${SIMIND_ROOT}/smc_dir/
13-
ENV PY_SMC_BLOCK_IMPORTS=sirf,stir,stirextra
13+
ENV SIMIND_PYTHON_CONNECTOR_BLOCK_IMPORTS=sirf,stir,stirextra
1414
ENV PYTHONPATH=/workspace/docker/import_guard:${SIRF_INSTALL_PATH}/python
1515
ENV LD_LIBRARY_PATH=/opt/conda/lib:${SIRF_INSTALL_PATH}/lib:${SIRF_INSTALL_PATH}/lib64:${LD_LIBRARY_PATH}
1616
ENV PATH=${SIMIND_ROOT}/bin:${SIMIND_ROOT}:${SIRF_INSTALL_PATH}/bin:${PATH}

docker/sirf/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ENV SIMIND_MPI_BIN=${SIMIND_ROOT}/simind_mpi
1010
ENV SIMIND_SMC_DIR=${SIMIND_ROOT}/smc_dir/
1111
ENV SIMIND_DATA_DIR=${SIMIND_ROOT}/smc_dir/
1212
ENV SMC_DIR=${SIMIND_ROOT}/smc_dir/
13-
ENV PY_SMC_BLOCK_IMPORTS=stir,stirextra,pytomography
13+
ENV SIMIND_PYTHON_CONNECTOR_BLOCK_IMPORTS=stir,stirextra,pytomography
1414
ENV PYTHONPATH=/workspace/docker/import_guard:${SIRF_INSTALL_PATH}/python:${PYTHONPATH}
1515
ENV LD_LIBRARY_PATH=/opt/conda/lib:${SIRF_INSTALL_PATH}/lib:${SIRF_INSTALL_PATH}/lib64:${LD_LIBRARY_PATH}
1616
ENV PATH=${SIMIND_ROOT}/bin:${SIMIND_ROOT}:${SIRF_INSTALL_PATH}/bin:${PATH}

docker/stir/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ENV SIMIND_MPI_BIN=${SIMIND_ROOT}/simind_mpi
1010
ENV SIMIND_SMC_DIR=${SIMIND_ROOT}/smc_dir/
1111
ENV SIMIND_DATA_DIR=${SIMIND_ROOT}/smc_dir/
1212
ENV SMC_DIR=${SIMIND_ROOT}/smc_dir/
13-
ENV PY_SMC_BLOCK_IMPORTS=sirf,pytomography
13+
ENV SIMIND_PYTHON_CONNECTOR_BLOCK_IMPORTS=sirf,pytomography
1414
ENV PYTHONPATH=/workspace/docker/import_guard:${SIRF_INSTALL_PATH}/python:${PYTHONPATH}
1515
ENV LD_LIBRARY_PATH=/opt/conda/lib:${SIRF_INSTALL_PATH}/lib:${SIRF_INSTALL_PATH}/lib64:${LD_LIBRARY_PATH}
1616
ENV PATH=${SIMIND_ROOT}/bin:${SIMIND_ROOT}:${SIRF_INSTALL_PATH}/bin:${PATH}

0 commit comments

Comments
 (0)