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.7.0.tar.gz (1.1 MB view details)

Uploaded Source

Built Distributions

stcal-1.7.0-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.7.0-cp312-cp312-macosx_11_0_arm64.whl (945.8 kB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

stcal-1.7.0-cp312-cp312-macosx_10_9_x86_64.whl (975.5 kB view details)

Uploaded CPython 3.12 macOS 10.9+ x86-64

stcal-1.7.0-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.7.0-cp311-cp311-macosx_11_0_arm64.whl (943.3 kB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

stcal-1.7.0-cp311-cp311-macosx_10_9_x86_64.whl (975.5 kB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

stcal-1.7.0-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.7.0-cp310-cp310-macosx_11_0_arm64.whl (942.3 kB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

stcal-1.7.0-cp310-cp310-macosx_10_9_x86_64.whl (974.0 kB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

File details

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

File metadata

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

File hashes

Hashes for stcal-1.7.0.tar.gz
Algorithm Hash digest
SHA256 8d2c5d4373fd7c51a060d2e4763275ec2e2d8f637667f27a3846d80692bc3712
MD5 065194b687d4ddc5e44f24e98a04b7c6
BLAKE2b-256 6aafa2ab2a45816b51966b63e84600d06ba6fd473b952e0e44ba6bdb146224e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.7.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 aeb3da2687f5955dfe245311ec6d48001cceb3618fa622a9a84f8e14d18de85b
MD5 1461f5ed8ba0b7c18e6f0395835957e9
BLAKE2b-256 a82fd69169e66696806e662739332fb19c06f062f80e81d21e4093b258dbfeb1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.7.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 53a8e78025bcf93de9c04373a87dd1360f6cae29797b03389597ef70258f7a7b
MD5 39aa106b142ccc85a5e35e4eb515a827
BLAKE2b-256 dbacdf6ac927c42c7e3ff828949777aecdb88766f9bf09667057fcc57ca60927

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.7.0-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 63689e1acff76440e078b6a96da90923d767684870a64d87b4c2dae2bb4e329e
MD5 aaf609a84f463ee0c50050918358acc3
BLAKE2b-256 d4803e56e0a04af378729d10a67e33ffbf40afbb10e857e09bc8f083fe065509

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.7.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4920abd5b7f8e5766d3620ad8804b45597c30501656ff84986fcd73633a1340f
MD5 d04d42322b6a53538fb4cb1973a81cb7
BLAKE2b-256 2244f5e801280a4824236f475440f4a1e7b903d5ff66c51ffbeae7f985572990

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.7.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0c821f2dc3456479f817d7dbc2913e80a75d51af87aa5d2a687c5314671b9194
MD5 a0c5abf7ab96e05e0148f1be77eae81d
BLAKE2b-256 a08bd6c3f6c8976ff987e604ab46908d17d14ae29315bd20b9979ea579a7e52d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.7.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6f30a3b74161952c9d65102d67310ded92db47f09c09bb872933d639c30f52a5
MD5 fe508dbfe4934a9e7c48e9cc2cd13657
BLAKE2b-256 d9cd523ad5315147ad2967692ebc3e99c97c7271354a98db91d49aa0316cacec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.7.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cb4d797730c9e11f12185c451b1875b916c80f39a8eddb39de98fef2592c2f59
MD5 93a076c7a482c7f2cc9a25328329a9eb
BLAKE2b-256 72e226e66576269f15cb1fe6f23b8359f7bafb6e962a4171a80cff520c93919d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.7.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 07f6e10f9d67cbeb4e0b4919fc3777a678eb95934ac198bf5564446227f5e84f
MD5 b4c3cfff914667f42d0ed79b9c0640b0
BLAKE2b-256 f78a34b68f8738835414475bb4e4d7ff346ed558ef9de7c40a089f0c83ef57fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.7.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 98183e734471deb6182f926d842338ea1e067aec9d5e577a4a98eb8d03970e69
MD5 a412ab4848f551b643e19413a00a83a8
BLAKE2b-256 7bc2770cebfe4f09016efb394ff929ddf000f248f425dcf385d420545391bc04

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