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

[!IMPORTANT] STCAL requires Python 3.10 or above and a C compiler for dependencies.

[!IMPORTANT] Linux and MacOS platforms are tested and supported. Windows is not currently supported.**

[!WARNING] Installation on MacOS Mojave 10.14 will fail 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.8.2.tar.gz (1.2 MB view details)

Uploaded Source

Built Distributions

stcal-1.8.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

stcal-1.8.2-cp312-cp312-macosx_11_0_arm64.whl (998.7 kB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

stcal-1.8.2-cp312-cp312-macosx_10_9_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.12 macOS 10.9+ x86-64

stcal-1.8.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

stcal-1.8.2-cp311-cp311-macosx_11_0_arm64.whl (996.1 kB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

stcal-1.8.2-cp311-cp311-macosx_10_9_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

stcal-1.8.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

stcal-1.8.2-cp310-cp310-macosx_11_0_arm64.whl (995.1 kB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

stcal-1.8.2-cp310-cp310-macosx_10_9_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: stcal-1.8.2.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for stcal-1.8.2.tar.gz
Algorithm Hash digest
SHA256 08cc1e28c35a3d0d52506528dd5c6e57cf5e6b9fee0e88b1f407c48daed8cfbc
MD5 786175f387cf7af506dd65a0e9bb21a7
BLAKE2b-256 f432757392f36f61a31607547711b8e9be16f42d406fb66cf11c3c2972d4bb63

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.8.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 655402cc200d5c0092e343c5eed55d3fa245943c89152511980953a9dd9c0e9a
MD5 578e18a1b0db1e292835cd360349e7bb
BLAKE2b-256 1edbb2dab248c704968a6ef2f40fd0390e283ff67e6633efcde5f5fa1fb74f92

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.8.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 24e645b3a1d150caa931bd4e503477c8afbc37070861abb83ce1e750f611ed9e
MD5 c615356a0ce029d4213df6a2810e2190
BLAKE2b-256 2b9766b73ad5e09913f26f9b4e6068d06783649e122bc48ef60ab4dc259f548f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.8.2-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 fa9ef70f56f7a37bec805f0131f582fa1bd3f8cea3180d07707431fc7c5f2d5d
MD5 dd3464a2adcee29c980e05487924ca04
BLAKE2b-256 b2045c21cb25f0c7f6b7a61403b21493283fd14baf43cb0ee4e9da0c430d990a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.8.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b95b7dcf78cf4ef0504a45b4897522aee6610e68b09a53dbb7c651955676a9b2
MD5 c981f8ec5ab57f20f975eac1b38b10a2
BLAKE2b-256 801926b8a23665c520ebb1672e698d6de728a4990821a44d231fe3f437e906f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.8.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 52153ef04484405eeb21582ac7d15cbb4c8ec5141b2c1fb8260dc4089a99d4a1
MD5 b580d11cbbc3ab235799943889c67876
BLAKE2b-256 1282a7dbfb7647bdb038d2aad4522afdc6b26d377ff4d826b1e5928893f129f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.8.2-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 aa4de69d35507d786d1663b790f15fa60bd1d47b81bbd2412aa6c24ca0ae600a
MD5 36e91712b9d2e6f4945faa9f2a71529a
BLAKE2b-256 0bc6a9fda5b2b9870ef67e3b11066f734ae077b4e208f60c5fc2de445c4c7d94

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.8.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c787494492ef93c9bc6ce654202aa57198fcb1c723f273746c7e6059b08dd20b
MD5 5ec3681b9b0d8c5df26035d21b76c64a
BLAKE2b-256 e970d726c615e3c83a5b2975280e83e9b7af1780bdf71db0bbd2545bd343188a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.8.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 86642f52ed65350f472c476bdb8c5a1f5284c2d966b65fc6a5cda980a9ef2f7e
MD5 c8b476380235e24a4dd40ca3d262ad32
BLAKE2b-256 27e07f9cfc61cb691c7803efcb2af902142a48bd4d8e65788d5c3c5948f28e31

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.8.2-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 91ad8265457ebb7b16680d63427a537c056595a1de929fc2b2c9b73025967453
MD5 f72fe7bb48717ffd5840ba9dd7cfc73e
BLAKE2b-256 87e8005af7c9ac760ac1984830af5c325e385604b6c3ef3026f92d9c674d8375

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