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

Uploaded Source

Built Distributions

stcal-1.8.1-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.1-cp312-cp312-macosx_11_0_arm64.whl (995.6 kB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

stcal-1.8.1-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.1-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.1-cp311-cp311-macosx_11_0_arm64.whl (992.9 kB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

stcal-1.8.1-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.1-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.1-cp310-cp310-macosx_11_0_arm64.whl (991.9 kB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

stcal-1.8.1-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.1.tar.gz.

File metadata

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

File hashes

Hashes for stcal-1.8.1.tar.gz
Algorithm Hash digest
SHA256 974731a8c3ef39e6ce3056a3c9c2ae7bdb5e7f2c293bc555a56823fdf12d256b
MD5 2d70fcb7a128aa6784a3accb38f9f2a4
BLAKE2b-256 dea30ee302425574ebd6df52fa4d0b0d717f9a8076d8d0ce5ce453e245adb979

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.8.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c7dfd75e14a68fef37c041bcb163fa22d5d26db7923da5b2436a9d5b604955bb
MD5 2c342292e1b45073d1c8ca55391a93c1
BLAKE2b-256 bc0af4b96e6c3453fd14d32736f9191955b282a99334f22c0aceb5e3ca68e79f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.8.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5094a04f987f557baf9ab32f8cf728769ddc6424e14e4d7d9a4f59ba4f7100f4
MD5 5d90a9d6de5d1fed36cc88cdac277945
BLAKE2b-256 7d7ed6407c3f5bd3a2b30d1ac1463a821f23f7295f934fc8efff7b3df156ef21

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.8.1-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 aa55569274343cffed24de27c92ca8b89d9ac3b4df29ad4433c033d5eb7cfcaf
MD5 ab4c33748a6fc73167516feed2b8d833
BLAKE2b-256 a848bbcef7c832b218cb7ecc974d15a72d29c1eb93d006488226413cff1828b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.8.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0a68454eee001c8a40507b09065b0c588b9eeb073dcdf83990530dc287886128
MD5 994604f10ab1fec762149bf904a1d554
BLAKE2b-256 347c9a60904dce00e3a904650dd984750e762727d2b2633f9c752e09cdcd79d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.8.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 151228df2b4733b209d0fab6b66f48854b2af3a91565b89d30780c03f2b1b61d
MD5 ae185adaf808e18970e44aeb700bd687
BLAKE2b-256 aa530440c49a7c58ee69b977d3c38513e706faba5a879d688900bc5cd7fa0908

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.8.1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 a7de8d2aa8f325cd22ee9ecc01facd5e93243843d2a345d5ff8ced9486f34ab6
MD5 a37c7648d03fc5a5c367ccc8190a2ab6
BLAKE2b-256 c3bdc90931aa66c63bee5f66316c0d99723306331778f2541121a301caa421e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.8.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 003faf388923585105884efc2aec56b63818fbbf5bbd9c434fc21aae3239dad4
MD5 07ae9c831123196896cdfef3ce29c838
BLAKE2b-256 bde2f7a493f108f6cecde6a1a8f0f2e5fe68d6b7c038e61b3e2904870f3f52fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.8.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c22712a52bfbf3dd01450c2d238146e9fda53731c2b09d3f45f6c30d6b1143b0
MD5 2753fc982e67af1300defc670b912358
BLAKE2b-256 3c31a3ae9e82724f83b9409ab7c21bb78aca3da18a480c776a95d8998490f97e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.8.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 4101915fd8e29516b74bee1076e66632f1e365656abe5ccc9ea78779f8c9841d
MD5 ae4fb4c41e0e413170ed30574fa023ef
BLAKE2b-256 6e277a1ac198e1b28ecefa8541f52a45eb760b551e0e4257d8ea968ddf9bd145

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