Metadata-Version: 2.1
Name: pybsm
Version: 0.15.0
Summary: pyBSM is a Python-based tool for sensor modeling. It provides common components useful for simulating the image formation process through different imaging systems.
License: Apache-2.0
Author: Kitware, Inc.
Author-email: nrtk@kitware.com
Requires-Python: >=3.10
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Unix
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Dist: matplotlib (>=3.5.2)
Requires-Dist: numba (>=0.62.1,<0.63.0) ; python_version < "3.13"
Requires-Dist: numba (>=0.63.0) ; python_version >= "3.13"
Requires-Dist: numpy (>=1.22,<2.0) ; python_version < "3.12"
Requires-Dist: numpy (>=1.26,<2.0) ; python_version >= "3.12" and python_version < "3.13"
Requires-Dist: numpy (>=2.1) ; python_version >= "3.13"
Requires-Dist: scipy (>=1.10.0) ; python_version < "3.13"
Requires-Dist: scipy (>=1.14.1) ; python_version >= "3.13"
Requires-Dist: setuptools (>=78.1.1)
Project-URL: Documentation, https://pybsm.readthedocs.io/
Description-Content-Type: text/markdown

# pyBSM

pyBSM is a Python-based tool for sensor modeling. It provides common components
useful for simulating the image formation process through different imaging
systems.

This repo builds off of the work done by LeMaster and Eismann in creating the
original pyBSM package for modeling image systems [1] as well as LeMaster, et
al. in their work in validating the pyBSM package [2].

NOTE: A set of functions which infer OTFs from user data has been removed from
the current distribution of pyBSM. They are archived under the v0.7.0 tag if
they are needed.

## References

<a id="1">[1]</a> LeMaster, Daniel A., and Michael T. Eismann. ‘pyBSM: A Python
Package for Modeling Imaging Systems’. Society of Photo-Optical Instrumentation
Engineers (SPIE) Conference Series, edited by Eric J. Kelmelis, vol. 10204,
2017, p. 1020405, https://doi.org10.1117/12.2262561. Society of Photo-Optical
Instrumentation Engineers (SPIE) Conference Series.

<a id="2">[2]</a> LeMaster, Daniel, et al. Validating pyBSM: A Python Package
for Modeling Imaging Systems. 05 2018, p. 19, https://doi.org10.1117/12.2305228.

<!-- :auto installation: -->

## Installation

`pybsm` installation has been tested on Unix and Linux systems.

To install the current version via `pip`:

```bash
pip install pybsm[<extra1>,<extra2>,...]
```

To install the current version via `conda-forge`:

```bash
conda install -c conda-forge pybsm
```

Certain plugins may require additional runtime dependencies. Details on these
requirements can be found
[here](https://pybsm.readthedocs.io/en/latest/installation.html).

For more detailed installation instructions, visit the
[installation documentation](https://pybsm.readthedocs.io/en/latest/installation.html).

<!-- :auto installation: -->

<!-- :auto getting-started: -->

## Getting Started

Explore usage examples of the `pybsm` package in various contexts using the
Jupyter notebooks provided in the `./docs/examples/` directory.

<!-- :auto getting-started: -->

<!-- :auto documentation: -->

## Documentation

Documentation for both release snapshots and the latest main branch is available
on [ReadTheDocs](https://pybsm.readthedocs.io/en/latest/).

To build the Sphinx-based documentation locally for the latest reference:

```bash
# Install dependencies
poetry install --sync --with main,linting,tests,docs
# Navigate to the documentation root
cd docs
# Build the documentation
poetry run make html
# Open the generated documentation in your browser
firefox _build/html/index.html
```

<!-- :auto documentation: -->

<!-- :auto contributing: -->

## Contributing

Contributions are encouraged!

The following points help ensure contributions follow development practices.

- Follow the
  [JATIC Design Principles](https://cdao.pages.jatic.net/public/program/design-principles/).
- Adopt the Git Flow branching strategy.
- Detailed release information is available in
  [docs/release_process.rst](./docs/release_process.rst).
- Additional contribution guidelines and issue reporting steps can be found in
  [CONTRIBUTING.md](./CONTRIBUTING.md).

<!-- :auto contributing: -->

<!-- :auto developer-tools: -->

### Developer Tools

Ensure the source tree is acquired locally before proceeding.

#### Poetry Install

You can install using [Poetry](https://python-poetry.org/):

> [!IMPORTANT] pyBSM currently requires `poetry<2.0`

> [!WARNING] Users unfamiliar with Poetry should use caution. See
> [installation documentation](https://pybsm.readthedocs.io/en/latest/installation.html#from-source)
> for more information.

```bash
poetry install --with main,linting,tests,docs --extras "<extra1> <extra2> ..."
```

#### Pre-commit Hooks

Pre-commit hooks ensure that code complies with required linting and formatting
guidelines. These hooks run automatically before commits but can also be
executed manually. To bypass checks during a commit, use the `--no-verify` flag.

To install and use pre-commit hooks:

```bash
# Install required dependencies
poetry install --sync --with main,linting,tests,docs
# Initialize pre-commit hooks for the repository
poetry run pre-commit install
# Run pre-commit checks on all files
poetry run pre-commit run --all-files
```

<!-- :auto developer-tools: -->

<!-- :auto license: -->

## License

[Apache 2.0](./LICENSE)

<!-- :auto license: -->

<!-- :auto contacts: -->

## Contacts

**Principal Investigator**: Brian Hu (Kitware) @brian.hu

**Project Manager / Product Owner**: Keith Fieldhouse (Kitware)
@keith.fieldhouse

**Scrum Master / Maintainer**: Brandon RichardWebster (Kitware)
@b.richardwebster

**Deputy Scrum Master / Deputy Maintainer**: Emily Veenhuis (Kitware)
@emily.veenhuis

**Program Representative**: Austin Whitesell (MITRE) @awhitesell

<!-- :auto contacts: -->

<!-- :auto acknowledgment: -->

## Acknowledgment

This material is based upon work supported by the Chief Digital and Artificial
Intelligence Office under Contract No. 519TC-23-9-2032. The views and
conclusions contained herein are those of the author(s) and should not be
interpreted as necessarily representing the official policies or endorsements,
either expressed or implied, of the U.S. Government.

<!-- :auto acknowledgment: -->

