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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.12 macOS 11.0+ ARM64

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

Uploaded CPython 3.11 macOS 11.0+ ARM64

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

Uploaded CPython 3.10 macOS 11.0+ ARM64

stcal-1.7.2-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.2.tar.gz.

File metadata

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

File hashes

Hashes for stcal-1.7.2.tar.gz
Algorithm Hash digest
SHA256 f7d2f47411541483cf9190b7c158b4e02e68e53e51cad38d6a8b84ef611f1acc
MD5 9e88164a054ec34d805ed05779a505f6
BLAKE2b-256 13eece8030e85fd747e6031a711497988d9ebc9dba940a52567a2cda78fc4c4a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.7.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b54fd2b5ccc625d26b11605ce8862cd21a8d5ef1ae82373ee9586671026a0c1b
MD5 67a8ebd06d2ac566e9e18f361255cc11
BLAKE2b-256 2bc7fcde01d829339967545614e34cf0a9d784d45a33618f7139adc25a039641

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.7.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0cad2310e8b82b39f5b08069870c636b513825b698be780bcc9c461cec4143ed
MD5 55905da1491f000bd61e5adc2562f07c
BLAKE2b-256 34ad881038c6d5739b0032bdf74237b2ec12d517e1c11062459e3824a3cf3502

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.7.2-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6140115bc321a5f60692cf560ac57e0eb558c0d84729c44aa19e6344bf810eb8
MD5 1a0aff6b6cdfa505e307776c957f696b
BLAKE2b-256 829c94f6e4d9bfae4abede20cbbe21b1221a661acd517f2c6ce856c9f3dc0131

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.7.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 14234ffed702d39848b78b6e4ab9d14a0a76366c518d3d8921f4e79c9420a54c
MD5 ae6438bcaddef173fe96c2a497322a1c
BLAKE2b-256 cd60bbd10dac60f87310bc27dc03cb5f2842cc8240dbff496fe1734cee835297

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.7.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9d627e50e38ed5345fd7b67a659930bdbca42f11fc6da2d494b4129f6c26fc3d
MD5 34c90ecd419304a8d231f60051b587f3
BLAKE2b-256 a6e2cbd2d7527aee60f121e2d43751a247516b74e2da7008c421229f1306e18a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.7.2-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 fe6a82bb5dd6d07e29cd2b57d9b0a5473c0272a067a9a54a95f2b17c723bb139
MD5 b34a7e7451869427ed13dbdd17d48ee1
BLAKE2b-256 440fdf7d33e83980f67db890afbdd2df6dd9b5a621e5a8659130ef03e35704d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.7.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b0dcf08240d88991d750c8a991507e2e626c234dd5c2345c8c69a87583cfa3c4
MD5 8840b476e05b29efbafce8352b03a94b
BLAKE2b-256 4981e759ec8da0f7e522ac104866415476e5fa095a2da901698d83e0e8342764

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.7.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ce394d17500ffd593ec5b676218fd06915d31afb492d653e09bcf3b349e3d363
MD5 dd76b494294621b730b4fa0d53da3ef7
BLAKE2b-256 e37cd717ad5417b0cdcc45c803ebc04a8d31169a0307335274846ec9414bc889

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.7.2-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 712362a54cebe40fc82dec0b19c3758ddcd53d135bb66563ce54c00d9e5016b7
MD5 c058545d92d84c7db1776566d0f7d299
BLAKE2b-256 d47bab3a85930d38f32cd9fa70121475b866605fafdad8990d67bb6253a2f6f0

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