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] 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.

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.18.0.tar.gz (850.8 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.18.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.18.0-cp314-cp314-macosx_11_0_arm64.whl (997.1 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.14macOS 10.15+ x86-64

stcal-1.18.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.18.0-cp313-cp313-macosx_11_0_arm64.whl (985.7 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

stcal-1.18.0-cp313-cp313-macosx_10_13_x86_64.whl (992.7 kB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

stcal-1.18.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.18.0-cp312-cp312-macosx_11_0_arm64.whl (987.4 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

stcal-1.18.0-cp312-cp312-macosx_10_13_x86_64.whl (994.9 kB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

stcal-1.18.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.18.0-cp311-cp311-macosx_11_0_arm64.whl (986.5 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

stcal-1.18.0-cp311-cp311-macosx_10_9_x86_64.whl (992.1 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

File details

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

File metadata

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

File hashes

Hashes for stcal-1.18.0.tar.gz
Algorithm Hash digest
SHA256 7a2eb8c152d4606c0f28fd937230669474e4d71484d2ea5a95c48b4e4b28b59c
MD5 b41a48356a0aea2e53a8ad8601577fbd
BLAKE2b-256 498739803fd6b0b164e6cc1a46cfb7cc7a93aa67dc2afd49dca24bbb61e7cfa8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.18.0-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ff196856772b3d1e3f48ac4b8cbd10fed5c569c7ff6e0e59f220f721be92d937
MD5 2998f544670ddad43fb12fb95d187277
BLAKE2b-256 ed273f9d8da4870770d04b9a54e38c58459f8dd762315ef7587207b094e96d8f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.18.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dbcf09db88aa8bd03cfceeed502e78090706bd2fdf13b26b12fd132f25091b19
MD5 e4991bfa83e15fed0b3674e8077a3326
BLAKE2b-256 d8319825fec6cbb9302697741014d30c4238b1460b06460b8037ae6bcdaca9fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.18.0-cp314-cp314-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 ea6833dc0bb1a6ec9dfb4bce7947573970687084480c9a6a99a914810462d893
MD5 54f68a2805461359f72f49b76e84f297
BLAKE2b-256 0eeb754adeacb5559816c0635c999d123dba7182822ff227f5280e38fd2d037f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.18.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e7cbcdb0a4a02d576facb02b249d8009cb7020f893cb632f80be515e3b5e8014
MD5 a56d1f5a7bd54c582b99dfea8fe2c064
BLAKE2b-256 61bd8810bbecc96bc8b72463deee1159491f956a119ee9e3726d4d5d7de94b27

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.18.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 92af6cde7be10cfd4842fcd00cf9262aa0e7c5afd8aca4d7648341d3df1f06c5
MD5 2ddf8ea8ea4189786ccc547a78d36920
BLAKE2b-256 d8606b0fa463db55fe922736b00c2d599fb8b3850cb510063b054f5a13e1362e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.18.0-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 c1b8b24ec3d551ad5eb134e8a13466300ecb4ab88887eb3222ba06247a314f49
MD5 b68c7ec0ebd2cd184ddb1e5a48394ce6
BLAKE2b-256 81b2bd76f5de88f443f964d26dd70e64d515beeaecd8a92695c2f721778f955f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.18.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5680910f3fa929b549b70481c040f9b1e0bdfcb9c4eb7d329be1ae54aae40017
MD5 09b19fe59748a19ed6ba77ee86a3ecd2
BLAKE2b-256 604547a1d850262da0edb8d7b8eac3facf06fe80899d33c272007463be842d1e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.18.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e34060a92e55eccfb83785720ca83de4da71da15b9c4ca64ade0fd049ca6c9ba
MD5 2a28f2a1c763ae3e52932af17e4df473
BLAKE2b-256 269e48118eae37cfc8e51f0ad199a4f0a7e8a5f24812fc9b0a9529983dcb2688

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.18.0-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 7f02631551542b290426e56e81d23c0f606f288a21112892c7d6566ed29691a1
MD5 50593ce52009806864dd3f9782cd6d38
BLAKE2b-256 57990f8d612210caad546104ba3eed952b4288f4299bc68a7dd0c59fc818b9a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.18.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b059a83fbd6f5107876cb90c7117d9f78ad2dc9c65816a6d4742fd37d8026c0e
MD5 ae20ea1a9a19173471f0fabbd21b2812
BLAKE2b-256 91b71ddce9c82141230df45c93416231d6cf0b788e44e6c978fbe5131868c8b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.18.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 05337792afd5c3fcb9a93fec42368de1ba37b9f12c2991841dd22ecdc3d4bc0d
MD5 ad7f55a3ef242e88de4fe87ce71d4457
BLAKE2b-256 d774fb1065665bf936de306d703947d48dfd8e66466e8197b1156b0f6dcd0a2a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.18.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 65772f180fe3ed190862d2b8d2050c09269b8228e4b42bac9aa435dd7a439590
MD5 0d2f8b6168ef877b079ee80cd296f84c
BLAKE2b-256 f658ccd324a2087a4a702b260e96a72315db9dcad56dc91c4cb2c1db08e1322f

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