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

Uploaded Source

Built Distributions

stcal-1.6.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.6.1-cp312-cp312-macosx_11_0_arm64.whl (943.7 kB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

stcal-1.6.1-cp312-cp312-macosx_10_9_x86_64.whl (973.1 kB view details)

Uploaded CPython 3.12 macOS 10.9+ x86-64

stcal-1.6.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.6.1-cp311-cp311-macosx_11_0_arm64.whl (940.8 kB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

stcal-1.6.1-cp311-cp311-macosx_10_9_x86_64.whl (973.4 kB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

stcal-1.6.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.6.1-cp310-cp310-macosx_11_0_arm64.whl (939.9 kB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

stcal-1.6.1-cp310-cp310-macosx_10_9_x86_64.whl (971.9 kB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

stcal-1.6.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.6.1-cp39-cp39-macosx_11_0_arm64.whl (941.6 kB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

stcal-1.6.1-cp39-cp39-macosx_10_9_x86_64.whl (973.6 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: stcal-1.6.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.8

File hashes

Hashes for stcal-1.6.1.tar.gz
Algorithm Hash digest
SHA256 0245dea0f50ad536c1f481b54798ef7bc1944a11fae12aca751afc16affc9be7
MD5 4573034b7d67a6196a812ad7a2baf5d0
BLAKE2b-256 315166d944a2adfd231af83a12f7c82404e5f431efe68b97bd37b4be985ee81c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.6.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7ffba22b2205b620c9308c279a103998692c1e414e5da3b9ce36ff2915346821
MD5 36582fb8f9614f31e02fcbe9e2e9dac5
BLAKE2b-256 33b377f378a93e9cc009c779122c6a832bf54230474d16f5231f7a556822a09c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.6.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5335d318bc7a3a5c5a94dd6522beea8f60ad391b4a945cd64c4b6e3f8e1a6b2b
MD5 e0124f9f5765a108fab9380ad135875e
BLAKE2b-256 cd79351a212a5b229a2f5300ab8ec331f2d47994876c5961d1985f9cebb54d61

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.6.1-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f4a455ebe325997f3a4827c0ceb9d3a6512682655f1037ea0b011f22ee8b3198
MD5 1a3e30f1251aff2e5fe7aba729d02054
BLAKE2b-256 418ab0d66b09a16cb465b3fc9490895681c80d2e619e640650086de0d447ebc6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.6.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1df8ea2d1684d2355ba7bdb83df01102c968dd1823c913377a8cacc57f814787
MD5 ba191475ca721dc093eeb175a72dbdd3
BLAKE2b-256 0161d6d30b36a014982e9bca4cd5ae8b77408abec41da82f2a658aa64ea7fc3c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.6.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9ade1ce4cb7aa660380c52b60e12c9049f446f7910d36871e01264d948800fcf
MD5 542ca9f5819fef7cab6eedf491c001bd
BLAKE2b-256 db0d1cf9e798ea11c6e57930a8f21990f674c2148457fbd48f713ecbed8867db

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.6.1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 c526eb52ccb1b855ab7c656a645a4df7b6a81b66e0749397aedaffbaa86af46d
MD5 c110c63512e22dc945622217dd6b368a
BLAKE2b-256 9808ce8490b09543e77421c2f09516d1a8685b48610842365084c86881a92d40

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.6.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8c447454fe688d0d682aeb894b23f6f43e72ad3eae7ac4ac9b236540e47fdba3
MD5 83ed7b8f764ef3007f0b825766e14e07
BLAKE2b-256 fa23a40f20333ddcd312307de514e5d50306e7557104a3a61e590db12dc0a54f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.6.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c3a56126d07b1b650ee43bbf131ad70c704f584668890f0aaec9bb23efaa6db2
MD5 74e408f66f7693b0ada3d1466d6794ea
BLAKE2b-256 7ddf801063b53c21b7852585fd7d96ba425b813a3e0d4f386745e76b5715666f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.6.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8b5027a6655020b0435d619b6b1079d1c42eed9ff57f1a4147a4795aa1aef1e7
MD5 fc9026913f6661ce8e8e466fccb74b5b
BLAKE2b-256 9d03743cb5bce89f6aafae907ab9ab4c36aebb2c0a0f1a8c1d203d72b0a9d0ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.6.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a24cbb5645eee32e2e7e5e2b28d3bf737a03d60e645fe62b5c1020adffbcf029
MD5 c8e5ce18ebab148c82a1a602b9c098e6
BLAKE2b-256 9451c87eedee6ea1c8c1b773e0e67120c645306b282b74afb754d3905bee49d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.6.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 556632a6bc768406537e15c9510e66fca7e88c67ee441d414f3e7de45147b345
MD5 7cbc5aa31b390e2034d569c93932ca60
BLAKE2b-256 41a89bb8f827d10af3004dcd7e317e00cf89c54b7007b01ccc20d4da33a074b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.6.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d6bb8d65e147b863eb52d60d346c565678c504d2a1a03619a89c26d518fb2e08
MD5 f4a40af92bac045465e81dec811cb735
BLAKE2b-256 e06bdde61b55a20cd37188db951615c5ab630c43c9ecbb5eb2153c128d77733f

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