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

Uploaded Source

Built Distributions

stcal-1.7.3-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.7.3-cp312-cp312-macosx_11_0_arm64.whl (984.7 kB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

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

Uploaded CPython 3.12 macOS 10.9+ x86-64

stcal-1.7.3-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.7.3-cp311-cp311-macosx_11_0_arm64.whl (982.2 kB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

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

Uploaded CPython 3.11 macOS 10.9+ x86-64

stcal-1.7.3-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.7.3-cp310-cp310-macosx_11_0_arm64.whl (981.2 kB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

stcal-1.7.3-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.7.3.tar.gz.

File metadata

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

File hashes

Hashes for stcal-1.7.3.tar.gz
Algorithm Hash digest
SHA256 af0aa6abfad3257d55bfd59a2534aa4427bfc5b0646aed2a5dbcc65e0b29a0ad
MD5 4b936a6d219d837026afbb8b6e8ae89d
BLAKE2b-256 8cc32dbfbb29e0f6a35ea3d397c047f91fa1bfeef2c3cd8303a00154b254bde4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.7.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 14397161e7f23adb8d6cd256d8e2a6eee91bfcc15d853d2f90a524c3e9515beb
MD5 25a75906ec62b60352aae20cba85ea95
BLAKE2b-256 0893d5714a118df9fce6c19b97fd532488577dca1f5ac5da9765efedbc575765

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.7.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5c5ca67e639242cfd4e69d773140b20d520b46e716544911a4721e42180178e2
MD5 d449bc33c3220f9e62e34be349b29714
BLAKE2b-256 4b1248b12461bcfa468fa89ceee2f79300db7b1803e7496900c9c5a9be68ef34

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.7.3-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f355e1baae8385a9c2d7e3a7668db94f3153887067c2869a80fce7defa79db2e
MD5 3634cc2c0975f2b6c54094100b634c6b
BLAKE2b-256 ccce0d8a9c52f5db95d6730a2aff6ff022a932fe4b6954d670494072a40ac7b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.7.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6dce092250846a296a4a3a9bedcc9a5fc7d65f721f4cd6c27d2a7ff94454503a
MD5 0f7ae7c5723892a34876adb90d771103
BLAKE2b-256 fde65f5ec9a12aaa06208b578904f95315feaec22a23c56b4e6bd685e88b49f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.7.3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 58fbaf4969289650bba78b0829309e210aa038e47d88cbefe230bdedfb53dc1f
MD5 a8d8ae1c0df1a4fd93659760463f1e2f
BLAKE2b-256 388ed7d8e52b91722b4de8d736674d86f4a6e730cddc0a42b4c3dbfcb76b0791

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.7.3-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6f4f7718c67a8c009fade599e0af92d54a443b3362de270f2026ee1939688d41
MD5 6d9cc8f4fd6bb9dd2b5edde62b9cb09d
BLAKE2b-256 4b1eb28034ef7b5ef1af3617c2c0117e459512e6ff66f008884559cd85c2153e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.7.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6361a64df2b7f889828888f42f05889db4b160752e4501e6dea456e1bafc7e94
MD5 7c54ed040c50b67d5f499129580cf477
BLAKE2b-256 f5ed17c2af0b20f102cf2e7e72c6a3f0fbdbba6ec74dfe7c20ee2b5fe3365b18

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.7.3-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d0eef06a79d36aeaa56364da35f9f55de8e91dd87e0882d8a463b1761d5f4210
MD5 9ad8af58424048e935e5a14a55d037cc
BLAKE2b-256 08499a589a4164bf790bb82439fa1dd53e2accebfbfdc4876ba619d3188b76bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.7.3-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 9a9b79879293f62ad44f40c2457321312d264503f5c517aeb7cf91252bc6c2c8
MD5 a93e446a56b2baf5c2030422ce3045da
BLAKE2b-256 bee981b9c1f97ddd97b3f56ee0f727edaad9c7423f63cff930dbea5508c9c48c

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