Skip to main content

STScI tools and algorithms used in calibration pipelines

Project description

STCAL

Documentation Status CI codecov

STScI Calibration algorithms and tools.

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

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.19.0.tar.gz (851.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

stcal-1.19.0-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

stcal-1.19.0-cp314-cp314-macosx_11_0_arm64.whl (997.9 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

stcal-1.19.0-cp314-cp314-macosx_10_15_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.14macOS 10.15+ x86-64

stcal-1.19.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

stcal-1.19.0-cp313-cp313-macosx_11_0_arm64.whl (986.6 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

stcal-1.19.0-cp313-cp313-macosx_10_13_x86_64.whl (993.6 kB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

stcal-1.19.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

stcal-1.19.0-cp312-cp312-macosx_11_0_arm64.whl (988.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

stcal-1.19.0-cp312-cp312-macosx_10_13_x86_64.whl (995.8 kB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

stcal-1.19.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

stcal-1.19.0-cp311-cp311-macosx_11_0_arm64.whl (984.4 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

stcal-1.19.0-cp311-cp311-macosx_10_9_x86_64.whl (990.2 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: stcal-1.19.0.tar.gz
  • Upload date:
  • Size: 851.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for stcal-1.19.0.tar.gz
Algorithm Hash digest
SHA256 016a4dd05aac6cfabed5ff0df4493e39125df8b5cfcabd76316b72e31a5c5a74
MD5 c6646ddf6964f18c8220b09fe2e51f3b
BLAKE2b-256 ba74103714bba25da51b4089b0d96d80043dc2d1c0cadd03798b1d1407b3ec65

See more details on using hashes here.

File details

Details for the file stcal-1.19.0-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for stcal-1.19.0-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3c2a083d58fc5a06a02035b1c221aa6c9d5c69328cc74a99d71e3543e63c47e4
MD5 5d759bf00d89e038904a30018c27da9f
BLAKE2b-256 4e795fc462d558cec56c75d9c46564404500f39490337f5b0f6794130b221762

See more details on using hashes here.

File details

Details for the file stcal-1.19.0-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for stcal-1.19.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 240d0fabb5d7026b29398f1021a769a6869e53d3d74aecb52f06e113bd043f44
MD5 81e87a80970b421ea8e1dffef5ced563
BLAKE2b-256 29ea8b74b256f07ea02602a2cbf2b4c17a4aa49663ff674bfa7a3c61f37f58c5

See more details on using hashes here.

File details

Details for the file stcal-1.19.0-cp314-cp314-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for stcal-1.19.0-cp314-cp314-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 2845e32f5b0c335224fb6ad2bebab09fe19e76d88267f8c90ba5c7fd1e23b45e
MD5 3071f1cbd15a9bee1fb8abd1e985b434
BLAKE2b-256 fe37f13c70bbe3e93bb4fdd53e1cb2e5b5eda95b08d135a716e58462c7d3246e

See more details on using hashes here.

File details

Details for the file stcal-1.19.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for stcal-1.19.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c629560e38d432428399be8ebefb6859f0808854f52be3acd4823f95cb9885d1
MD5 7386cbf02bc496d87f951f7a49ca234d
BLAKE2b-256 ddbff1e35115350e6901c70a088c80533c3f77ee976366f69f83b695f609c2b8

See more details on using hashes here.

File details

Details for the file stcal-1.19.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for stcal-1.19.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1f7efe19efb6aa2e3fc19956294dad0ee7613f3448141bacba6cb076545e53f2
MD5 d17678f435bb4a547587d1421a66c275
BLAKE2b-256 8abbe8bd4f2c57f9345433713bfde7c566dba60305bb5251d51de5412af3f51d

See more details on using hashes here.

File details

Details for the file stcal-1.19.0-cp313-cp313-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for stcal-1.19.0-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 7d2e393e01e37957400fb7f56babcf90b06b28476024da214e4e8a5bcb991dc0
MD5 e2f306d43b3db7a01946df65233b3133
BLAKE2b-256 0f103d4e9b6921a64d85489de1478d69ad1d16a6c8e9c48ea61f1041eebbb5f5

See more details on using hashes here.

File details

Details for the file stcal-1.19.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for stcal-1.19.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 28bda3abe274a5f02fbcb6e6af8fb1c1f08f11ac568160a9238ba056a300e3aa
MD5 a281fc2d523034e154218f09578463de
BLAKE2b-256 4b2d82f98794a651b5639a2587937652379bcf3fbb6aa5b05b05d48be39b22fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.19.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ad76f5295fda5abe9dc2bbcb57726993b88f9235d7e12bc998c69697e62e8950
MD5 872fe9a6f1552d29eceb538531bc224e
BLAKE2b-256 87d5a3e5e31eb88d80b8413eb66c8b6408e3b5d931a574c031d5dc85f74590d6

See more details on using hashes here.

File details

Details for the file stcal-1.19.0-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for stcal-1.19.0-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 66771af72009d5c21152b045174d780985636881511a5e658dc0d144be583228
MD5 9fc8ca9010e6e5dbf03b993b090a77f8
BLAKE2b-256 80e4c348062b0f6a102389a62b5fb90fbc6e5a9d83fd97b36a4caddd3cd82a29

See more details on using hashes here.

File details

Details for the file stcal-1.19.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for stcal-1.19.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d871dc17860132d28e1294b11f23427242061b5fd075232c07f6c4cfd18ee2c2
MD5 f2638a45e088ff4662c3560794e56957
BLAKE2b-256 e4926357c8d7e504acc587ea257e1719ceaf5b798e61a57ae6802b192f3387ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.19.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 54e0ce729302e30e7e9e6c1d3af2bb11c6a4ed75b3f4e319561620b98e3a55bf
MD5 4d4ddd51cdcfdc6e4c7401da165a5bdc
BLAKE2b-256 425eb93b331747199436df883944c39c8fb76367e21e23fcec99d8fd962f9175

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.19.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 713ea72b7bd0730b52f23b68323c9737d72fbd597c809fe1ecc63b409628cf93
MD5 72c93f3561fa78b70a73c102dc42172f
BLAKE2b-256 bd40f9600b6dea4d99a73e57818c3b44e3b4787d8373cce67b95bd371f3e70e2

See more details on using hashes here.

Supported by

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