Skip to main content

STScI tools and algorithms used in calibration pipelines

Project description

STCAL

Documentation Status

CI

codecov

STScI Calibration algorithms and tools.

STScI Logo

STCAL requires Python 3.9 or above and a C compiler for dependencies.

Linux and MacOS platforms are tested and supported. Windows is not currently supported.

If installing on MacOS Mojave 10.14, you must install into an environment with python 3.9. Installation will fail on python 3.10 due to lack of a stable build for dependency opencv-python.

STCAL is intended to be used as a support package for calibration pipeline software, such as the JWST and Roman calibration pipelines. STCAL is a separate package because it is also intended to be software that can be reused by multiple calibration pipelines. Even though it is intended to be a support package for calibration pipelines, it can be installed and used as a stand alone package. This could make usage unwieldy as it is easier to use STCAL through calibration software. The main use case for stand alone installation is for development purposes, such as bug fixes and feature additions. When installing calibration pipelines that depend on STCAL this package automatically gets installed as a dependency.

Installation

The easiest way to install the latest stcal release into a fresh virtualenv or conda environment is

pip install stcal

Detailed Installation

The stcal package can be installed into a virtualenv or conda environment via pip. We recommend that for each installation you start by creating a fresh environment that only has Python installed and then install the stcal package and its dependencies into that bare environment. If using conda environments, first make sure you have a recent version of Anaconda or Miniconda installed. If desired, you can create multiple environments to allow for switching between different versions of the stcal package (e.g. a released version versus the current development version).

In all cases, the installation is generally a 3-step process:

  • Create a conda environment
  • Activate that environment
  • Install the desired version of the stcal package into that environment

Details are given below on how to do this for different types of installations, including tagged releases and development versions. Remember that all conda operations must be done from within a bash/zsh shell.

Installing latest releases

You can install the latest released version via pip. From a bash/zsh shell:

conda create -n <env_name> python
conda activate <env_name>
pip install stcal

You can also install a specific version, for example stcal 1.3.2:

conda create -n <env_name> python
conda activate <env_name>
pip install stcal==1.3.2

Installing the development version from Github

You can install the latest development version (not as well tested) from the Github master branch:

conda create -n <env_name> python
conda activate <env_name>
pip install git+https://github.com/spacetelescope/stcal

Installing for Developers

If you want to be able to work on and test the source code with the stcal package, the high-level procedure to do this is to first create a conda environment using the same procedures outlined above, but then install your personal copy of the code overtop of the original code in that environment. Again, this should be done in a separate conda environment from any existing environments that you may have already installed with released versions of the stcal package.

As usual, the first two steps are to create and activate an environment:

conda create -n <env_name> python
conda activate <env_name>

To install your own copy of the code into that environment, you first need to fork and clone the stcal repo:

cd <where you want to put the repo>
git clone https://github.com/spacetelescope/stcal
cd stcal

Note: python setup.py install and python setup.py develop commands do not work.

Install from your local checked-out copy as an "editable" install:

pip install -e .

If you want to run the unit or regression tests and/or build the docs, you can make sure those dependencies are installed too:

pip install -e ".[test]"
pip install -e ".[docs]"
pip install -e ".[test,docs]"

Need other useful packages in your development environment?

pip install ipython jupyter matplotlib pylint ipdb

Contributions and Feedback

We welcome contributions and feedback on the project. Please follow the contributing guidelines to submit an issue or a pull request.

We strive to provide a welcoming community to all of our users by abiding with the Code of Conduct.

If you have questions or concerns regarding the software, please open an issue at https://github.com/spacetelescope/stcal/issues.

Unit Tests

Unit tests can be run via pytest. Within the top level of your local stcal repo checkout:

pip install -e ".[test]"
pytest

Need to parallelize your test runs over all available cores?

pip install pytest-xdist
pytest -n auto

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stcal-1.5.2.tar.gz (1.1 MB view details)

Uploaded Source

Built Distributions

stcal-1.5.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

stcal-1.5.2-cp312-cp312-macosx_11_0_arm64.whl (950.5 kB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

stcal-1.5.2-cp312-cp312-macosx_10_9_x86_64.whl (971.5 kB view details)

Uploaded CPython 3.12 macOS 10.9+ x86-64

stcal-1.5.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

stcal-1.5.2-cp311-cp311-macosx_11_0_arm64.whl (948.7 kB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

stcal-1.5.2-cp311-cp311-macosx_10_9_x86_64.whl (971.8 kB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

stcal-1.5.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

stcal-1.5.2-cp310-cp310-macosx_11_0_arm64.whl (947.5 kB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

stcal-1.5.2-cp310-cp310-macosx_10_9_x86_64.whl (970.3 kB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

stcal-1.5.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

stcal-1.5.2-cp39-cp39-macosx_11_0_arm64.whl (949.2 kB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

stcal-1.5.2-cp39-cp39-macosx_10_9_x86_64.whl (972.0 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

File details

Details for the file stcal-1.5.2.tar.gz.

File metadata

  • Download URL: stcal-1.5.2.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for stcal-1.5.2.tar.gz
Algorithm Hash digest
SHA256 6799439a21e58dc38560665ca3afa297e8246d1edeb2c533dc113973884b2a64
MD5 c76a015df93674fc923b79d2ea834f78
BLAKE2b-256 44dcea371afc0e55dfe12e9cbdbbded93c4d6118e0eacfb677d25215ef35e9dd

See more details on using hashes here.

File details

Details for the file stcal-1.5.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for stcal-1.5.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 352527612ff55e28daf812d3e88e1575870c672f227607b2ce7e1d4fab8341a0
MD5 e008ae96a7d338af9b3e9780426b37fa
BLAKE2b-256 fe3b95bbfbc2ed8b82a66d2ef3d45de8b52d4ecee5d3b62609b655ce101c70bd

See more details on using hashes here.

File details

Details for the file stcal-1.5.2-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for stcal-1.5.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f19154fa5386ff696517c4c1d1034c6d9506b622f51b26b5edf703ace3c88f6f
MD5 1cacd27614bf0dc628065c99572399b5
BLAKE2b-256 93a0f28debc0069641f1bd701435a2720fc1c070a4a0bfac4a3419880b71fcbe

See more details on using hashes here.

File details

Details for the file stcal-1.5.2-cp312-cp312-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for stcal-1.5.2-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6022de2dd7dec2e2ee437d5522937b93029565beb614027ea339de0eb5ef1218
MD5 350a00f9eb7ac3a41ed4df8fbff7e9f4
BLAKE2b-256 0c581b8882dbabbf7823ed507a1cf65307db764e51d5d7fef6718a52da1440cb

See more details on using hashes here.

File details

Details for the file stcal-1.5.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for stcal-1.5.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 df88983e1ee064e407e9d2d82c3ddb442fcd891c042625a0343ba5d84687498c
MD5 7b1aa58985b7f8e4cdb3e57da18a7062
BLAKE2b-256 8274072375a4bec9a7c73bc65c320537361097f20410b0fa5fc15e6b9f097076

See more details on using hashes here.

File details

Details for the file stcal-1.5.2-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for stcal-1.5.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 04e277c0bfc4cfdebd332363a99725de4279e8f5b9542e5d5e53641ae9f46631
MD5 e1980c032fb9419774ee61e2f5c4a74b
BLAKE2b-256 397be7979ee5bd8f30db7362b9e229cffd07c3d52b88474e6440e71ca39c1b48

See more details on using hashes here.

File details

Details for the file stcal-1.5.2-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for stcal-1.5.2-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f9088e0c84bdbd391108307dc3ec5eb3c0ccb80a7c569fb3457445c9a01d076a
MD5 2dd74dbefbf722cd20447d1372fa3c9f
BLAKE2b-256 9978d6c582ccfdb986ebb8ee4fbae6de9448f254421436c7907f50fd8fac1e35

See more details on using hashes here.

File details

Details for the file stcal-1.5.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for stcal-1.5.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 81d6d796b5fbfb008eb3967fc3a620a900232b5ae31e932a1d5f0884d5d6254d
MD5 cda736c8941c4ba3b0284fb11e4b67a3
BLAKE2b-256 aa520efb128570897538fcff337b33a5716ab48c6c60e9d6a390e1a4e8bbb6a1

See more details on using hashes here.

File details

Details for the file stcal-1.5.2-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for stcal-1.5.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fe77609715c19dd50563605c50d50f37c21630760069282e0a2694eea7a15d8b
MD5 515c346a3ea97fb35aea80c66c6863ae
BLAKE2b-256 9cdb50773b2f3a235f842e8c732783d30e5b14653f75dcb38833445fe0412828

See more details on using hashes here.

File details

Details for the file stcal-1.5.2-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for stcal-1.5.2-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 99860e055d3ccaa88506f7f2a914fe77a5fb289cc0b0df7df044fe77f9629446
MD5 29c25ff4b2ae12d03d850d645ed4ff63
BLAKE2b-256 2f4b8018d7d31b68f797b43b9715f5517f9a9914fce569f674a69e4b94327dbd

See more details on using hashes here.

File details

Details for the file stcal-1.5.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for stcal-1.5.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f9fca7c60aab8d24e00d6c3b1b2d187ed4eeda3ebb0b4ed0cd735fa7577f26c7
MD5 3c86879a3eab6ec84461c14f6f76b088
BLAKE2b-256 dbfd87b306126693e048287af1fffaf7c93691133db7bafa0499a90c30e89c76

See more details on using hashes here.

File details

Details for the file stcal-1.5.2-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for stcal-1.5.2-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ee6e1aa5aaa4ec22c901b20c1da4aa994a78974a4f8a3749851a5885af2bd883
MD5 de3b67751af352d3b90f9a9a2201a307
BLAKE2b-256 30ce66713e146636a4820f8e02601e9e49c59d03381853b8ab6969cea85a6624

See more details on using hashes here.

File details

Details for the file stcal-1.5.2-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for stcal-1.5.2-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 420362625f33f2183d79e5252bfc433fc888ef2b95ae8bd07cc19f213c615a68
MD5 fcd078e6ee7f2fd0bad9020f1104f4bf
BLAKE2b-256 14208fe28ac219e5604a26c8e95779d82d2d9b9607c7716d5f8e931327d43a8b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page