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

STCAL requires Python 3.9 or above and a C compiler for dependencies.

Linux and MacOS platforms are tested and supported. Windows is not currently supported.

If installing on MacOS Mojave 10.14, you must install into an environment with python 3.9. Installation will fail on python 3.10 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.5.1.tar.gz (1.1 MB view details)

Uploaded Source

Built Distributions

stcal-1.5.1-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.5.1-cp312-cp312-macosx_11_0_arm64.whl (950.6 kB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

stcal-1.5.1-cp312-cp312-macosx_10_9_x86_64.whl (971.6 kB view details)

Uploaded CPython 3.12 macOS 10.9+ x86-64

stcal-1.5.1-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.5.1-cp311-cp311-macosx_11_0_arm64.whl (948.7 kB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

stcal-1.5.1-cp311-cp311-macosx_10_9_x86_64.whl (971.8 kB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

stcal-1.5.1-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.5.1-cp310-cp310-macosx_11_0_arm64.whl (947.6 kB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

stcal-1.5.1-cp310-cp310-macosx_10_9_x86_64.whl (970.3 kB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

stcal-1.5.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

stcal-1.5.1-cp39-cp39-macosx_11_0_arm64.whl (949.3 kB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

stcal-1.5.1-cp39-cp39-macosx_10_9_x86_64.whl (972.0 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

File details

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

File metadata

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

File hashes

Hashes for stcal-1.5.1.tar.gz
Algorithm Hash digest
SHA256 80cdbbec751cb73ac14ec7b14f857ed4626b4d09ae2783c918949b1f51b8f709
MD5 0e2e515699171bf9afecf1b55cb0ad15
BLAKE2b-256 f677be50c051ea0dbdfd029b9162df3fa3a1f0666f8b6074bcee34e61d368b93

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.5.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d6ec38af021825b35fe8182880bdd8343cae7a12331c76c24ad519fff8bd2bba
MD5 ebb12682a9d7f5073bc8a1de547f08b2
BLAKE2b-256 baf83b3b69bf9755d4bf36e50f12bb99a654af6422957f1f4d4c132d2452f395

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.5.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6f8d445ca26d977ee82639041978ec3754cae12796c02a0e911fc1c6d7be8484
MD5 d8ee01e95531eaf9311435eb371cd542
BLAKE2b-256 12681b5dc3192ee3e3528cba166938db9afe796c4310c60c898630b8a872e871

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.5.1-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 fba7022502eb4f944b45086b2af1914f48f2121b91155c10043a9c4e93fabd43
MD5 654cdb01e11633869c1e7c6520bc933f
BLAKE2b-256 9e9315d610b414901925e1441157cdf99399ae9438ec60f4f73ca95d6d505eb4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.5.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7b9521ed7bb6b099142129205476f72f9f66b6e3b635a536ada69293b96df4a8
MD5 d161417ba17a5651e6322407c30c5759
BLAKE2b-256 ffc8e760643e61a6f37a0d3dd2d8998cbab87181a4224c47063417728a46e824

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.5.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4b21bf1d66f3f2d23e0a370ee3d90405205db4f791cf5f198815d66411f6ff43
MD5 cfa2a4cf28ca2ecc9837219fb540d223
BLAKE2b-256 868d48186434483a378a303a638bc5ccb61736b0ab16cc15b9c4c1eb98ed4a32

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.5.1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f47f2978e3eb28b3131f7c14456950ef383fe9acca8ebf0d5e5fff61bdf13647
MD5 40816240b3b6b137e56a477abfbfa818
BLAKE2b-256 a8565915b1fd427a79eebea4acb426983f4e9abe0597e9e5920abc50895cb316

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.5.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 168ecb58ae0b5fd7c2953d9a5ac2987ec47131e99e0a4c434fc533d34eaea99d
MD5 5abd858dcfaa6eb44b9ee8cc459948ef
BLAKE2b-256 3e0a7bfb600874492fba731bf420ea8f86704962ef3df5c3b4d1949a27fba5da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.5.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 06ca1d9657292639f0666809e1346b4bbcf1a8ad1b040b7f1445ce84b12731c4
MD5 d8ff7f2deba0e070fca61b952f9d86d2
BLAKE2b-256 b10fd512595c269b0ab88ca75eb1935df07f1f3a21f5f3bdcdb3467ca6c59549

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.5.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 27e29e5a2355ea26083ad79a2f085aeb023b70d2b5a52a7ce203f158fcb08477
MD5 a688553ce83132c21fb543e3e4b0ef2d
BLAKE2b-256 2e89803f00d5956d1b18461b34c2e9db7413810d651543de8937886f9aa4f658

See more details on using hashes here.

File details

Details for the file stcal-1.5.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for stcal-1.5.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f41fc89a5ec8ad214fef7627432f065ba85f1394acf5d59b4776f9d21dce56ef
MD5 ba9ed2b3208d093db20e82919a928860
BLAKE2b-256 f445dc7de8c5e911d32c0efcc319a4728103857db313135fd22686dc9ed2e5e2

See more details on using hashes here.

File details

Details for the file stcal-1.5.1-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for stcal-1.5.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c5e2ae7fcf07ac6f86240a78b4c60b7693c942f6e39ece5cdaa4be332b444ee0
MD5 e975001a3b0c40d5780e400b4e98f226
BLAKE2b-256 2e350529a1f23ea534f562fc0f51ab27a90125519005346ec7eaeeb7a4b01918

See more details on using hashes here.

File details

Details for the file stcal-1.5.1-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for stcal-1.5.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 87f98b3938fbd45bb7ae99aa6f3d9341477061b6d4cc4cc598aa4f97880e5cd6
MD5 cde78a059af08392edf346ed7588795f
BLAKE2b-256 964c267ae6efd8766d8411898e2210fc154fb51f0b5c8a32dde16ec162ed1ada

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