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

Uploaded Source

Built Distributions

stcal-1.6.0-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.0-cp312-cp312-macosx_11_0_arm64.whl (952.0 kB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

stcal-1.6.0-cp312-cp312-macosx_10_9_x86_64.whl (972.9 kB view details)

Uploaded CPython 3.12 macOS 10.9+ x86-64

stcal-1.6.0-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.0-cp311-cp311-macosx_11_0_arm64.whl (950.1 kB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

stcal-1.6.0-cp311-cp311-macosx_10_9_x86_64.whl (973.2 kB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

stcal-1.6.0-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.0-cp310-cp310-macosx_11_0_arm64.whl (949.0 kB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

stcal-1.6.0-cp310-cp310-macosx_10_9_x86_64.whl (971.7 kB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

stcal-1.6.0-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.0-cp39-cp39-macosx_11_0_arm64.whl (950.6 kB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

stcal-1.6.0-cp39-cp39-macosx_10_9_x86_64.whl (973.4 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: stcal-1.6.0.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.0.tar.gz
Algorithm Hash digest
SHA256 36b94364d1b66d5616d28f361c1d63c8f415b73ddd0cbeb51a9caa54d89a538b
MD5 1609a3ae7efb10d1ce55312188e88199
BLAKE2b-256 866cf299abc840cb66fa01920ee4c3762bbe35f82cbc0b1014c628f278347c64

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.6.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 28d4572ee2b32b16707d8ebad9e9c8c4933878bb76fc18b3b5fb3ba3fa10d211
MD5 3764d4483f7ff83db0b251fd2d807abe
BLAKE2b-256 36baacb8b8094a2dc029d2688ce34131f16ff92001aeb7c44a336d9dbbebc97b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.6.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 668147f025152463f997822954c07cd19ab10bbfbc9fa546de7f6bea32f5415f
MD5 f7d714fedd68d249e7aa6dc1164a5f43
BLAKE2b-256 6b66e8369634c3e4649c8dca97711fda67cedfdd95e520e2dcaefd1cd1c650f2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.6.0-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1ecf5d9eefa3b5763673be1e0614d0466c97898cad957a7d72c99e8804093b1d
MD5 f8afa9ece62a5e07d4911b082326898c
BLAKE2b-256 cf2fb69f2a63036c946a21d77f1d53e3562ed2e522ca571c64e2eb0218a6fcb4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.6.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5bf43fe542946cdc685d300f4ebad17f6c15e82d211b4cab8d29c10be452bfd8
MD5 d7cf8a8462dcab41ab6f6a9d570bd119
BLAKE2b-256 3a2f6efa3358dcf5292c92edecf9414b750f178ba0b03c6922e415e1e797bb39

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.6.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2aa5ef2be85cf754a2f797bd78697db30d3815a019ac34c35633a1c882abfece
MD5 eb3f8779dd9c590455a38483562aa145
BLAKE2b-256 67099eb159a72a939df7b4ea2378fc8dd33c23d7698445470f465e3f112ac9ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.6.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 96ff23afa0fcfff2a12eaf194f7876a2159cbf3e73d62cd624fa0db13d0a78d1
MD5 f09ec9ac5bb44a0a584f3677f9ccb3e4
BLAKE2b-256 08aa1fb8af99c8387a872a6cf3d9428afb00a115d0de0a20779c2e89f635448c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.6.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 77a52254844e0c0674b0a16b4daf344e0931ccaf8526b9baaa0bdc385fd54947
MD5 2b07df05b400d19920a4c70adce44532
BLAKE2b-256 7340d3791b132b380cc0d19452f95a1e15c6b815163815945887b529790e0ba2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.6.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ed95f7b4055cd5d4c27c7b271f23312195b035e8998a89171d6fbbeac4ea1262
MD5 9d9c4c1674054cdd1a48ef3f06a8c5de
BLAKE2b-256 1440b88f9b7de3610420a049288b5c670d8a97fd50898e2b17643f97e6a7dadf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.6.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 39600b82225feb8bc342ca9737bb5dd82050b78a56bc4fee0c6b7e74e9c10fda
MD5 f716aa402266065b4e4fb7988091aa44
BLAKE2b-256 f1a471a6af4dc4c4ec751acd047ddd8f704125e674bb5e08a33af17d3171b348

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.6.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 809462d909e6855b006bef640dc2b0a8651b4ae40aa4a0d4fbf190a4a2ac65da
MD5 34a478fc89a2658397437a0bbb3fdc7c
BLAKE2b-256 94412a65051b73e34be5506d129511e4f61955617d1325c55828bd39ebdfefdc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.6.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3ce3193f094082653ccbd587d5a8e834c17d98858daa1d71ff51ad4f178d417b
MD5 80c0d007256277ef6f1c51e4e0dd11a1
BLAKE2b-256 3c19248a25c1dbb1ff6fa3b5828f2919b5b4adcaf451d7244b7b14a610960f82

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.6.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 72ab72a15765a3d1c61b9d0752f9ef488bc2d63895362ee19337e4ceedeba9ed
MD5 a028a9797a480336beab7f481af572ce
BLAKE2b-256 837313cbc14907af0acfda7f2559d6ab4ac216e656bf7cbb1d057693046a1aa4

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