Installation¶
This guide covers different installation methods for phased-array-systems.
Requirements¶
- Python: 3.10 or later
- Operating System: Windows, macOS, or Linux
- Dependencies: Automatically installed with the package
Quick Install¶
Install from PyPI using pip:
Installation Options¶
Standard Installation¶
For basic usage with core dependencies:
This installs:
phased-array-modeling>=1.2.0- Array pattern computationsnumpy>=1.24.0- Numerical computationsscipy>=1.10.0- Scientific computingpydantic>=2.0- Data validationmatplotlib>=3.7.0- Plottingpandas>=2.0.0- Data manipulationpyyaml>=6.0- Configuration loading
With Plotting Extras¶
For interactive Plotly visualizations:
Additional packages:
plotly>=5.0- Interactive plotskaleido>=0.2- Static image export
Development Installation¶
For contributing or running tests:
Additional packages:
pytest>=7.0- Testing frameworkpytest-cov>=4.0- Coverage reportingruff>=0.1.0- Linting and formattingmypy>=1.0- Type checkingpandas-stubs>=2.0- Pandas type stubs
Documentation Build¶
For building documentation locally:
Additional packages:
mkdocs>=1.5- Documentation generatormkdocs-material>=9.4- Material thememkdocstrings[python]>=0.24- API docs from docstringsmkdocs-jupyter>=0.24- Jupyter notebook support
Full Installation¶
Install everything:
Installing from Source¶
Clone and Install¶
# Clone the repository
git clone https://github.com/jman4162/phased-array-systems.git
cd phased-array-systems
# Create a virtual environment (recommended)
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install in editable mode with all extras
pip install -e ".[dev,plotting,docs]"
Using a Virtual Environment¶
We recommend using a virtual environment to avoid conflicts:
Verifying Installation¶
After installation, verify everything works:
Or run a quick test:
from phased_array_systems.architecture import ArrayConfig
# Create a simple array configuration
array = ArrayConfig(nx=8, ny=8, dx_lambda=0.5, dy_lambda=0.5)
print(f"Array has {array.n_elements} elements")
Expected output:
CLI Verification¶
The package includes a command-line interface:
Troubleshooting¶
phased-array-modeling Not Found¶
If you see an error about phased-array-modeling:
Import Errors¶
Ensure you're using the correct Python environment:
Permission Errors¶
On some systems, you may need to use --user:
Or use a virtual environment (recommended).
Version Conflicts¶
If you have conflicting packages, try a fresh environment:
Upgrading¶
To upgrade to the latest version:
Uninstalling¶
To remove the package: