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

Uploaded Source

Built Distributions

stcal-1.7.1-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.1-cp312-cp312-macosx_11_0_arm64.whl (981.0 kB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

stcal-1.7.1-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.1-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.1-cp311-cp311-macosx_11_0_arm64.whl (978.2 kB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

stcal-1.7.1-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.1-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.1-cp310-cp310-macosx_11_0_arm64.whl (977.1 kB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

stcal-1.7.1-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.1.tar.gz.

File metadata

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

File hashes

Hashes for stcal-1.7.1.tar.gz
Algorithm Hash digest
SHA256 7aa929b4375b100e143eb3e951dad674aae0c80cad3bf985df5c15a1dc7a7e00
MD5 ab83cae0aa418a4c747e7fc78fbe7cb0
BLAKE2b-256 e6b4d8c5c4c2f249c6225da8642793a2a3fed129eff0e1e75ce054863c98a51c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.7.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3733ffd43ebf29f979d5ae05df6f9587ed41aefe08387c204e4ca5d2ecd81ed3
MD5 464b3fcc185607300b7f411eb11b5e87
BLAKE2b-256 8b79d6696ef4de0610ad8f63f1947a0d81031eb7c1eaa595ff564175ac38f6ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.7.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ad6f15301171c16097ff65ed053a6806bfe48d8b198ee8c46bab59820156a316
MD5 7c2d01be6dc97c247608d165df4fd3a6
BLAKE2b-256 887502eeb0e645dbb590531d23a5aa04f3da899ab2f91992879f95613dd90957

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.7.1-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 808bd7ca6e3056162b9037e6245232d305e06e11f45bec588d6429b1d5966c3f
MD5 068568cb12dcd35e05dfe58eb58dc83e
BLAKE2b-256 6c5044f51e6590c5ad9f6615b8b06013b46b839c7b8814656e485b3871183251

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.7.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 aae91e4a553e3ac5f8c22fdfa9640b36d40d95fdfde058d2b3a458c0fbe0cb47
MD5 10f888e16fff62143ed2656fe7ba273c
BLAKE2b-256 8b4254a62b9bec2c02cb3966ead99c4a27fecdae0adc84bdd073bfab7996fd15

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.7.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 36cf79a8a8c1a2e4627ee1f51ae8645ef94fa3598939697d9bf1e3712bf2efbe
MD5 90f8f21ae91a8fd8a3bd54f6f5708f0e
BLAKE2b-256 c7d7e2fdd8b261a50ef6dcefc8d80a583023e2c88733cf9a96cf41bf0b9a987d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.7.1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6d21492a044e1fc80dfc95bcf88e18b0319067de96c5c9ed11bd68d4240781ef
MD5 532efb695d146ed07ba202362a0135fd
BLAKE2b-256 c48cb0a8080616329b42da9da2bee3d13fee69373d40f129f92f763a24abca82

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.7.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0409d594ef8aac74df297f50488655796f814957da7bf8dc66da7f8b479e3b82
MD5 fd79745b4d6af126e231482ca5fba5c9
BLAKE2b-256 61428acabb6b4e894825ae90d72f539d3de1747c37fdcf195b7376f1bef13c58

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.7.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b392ece4f894cae221b3d7df5735a33cd283ed8e91f2f03b26dece3a24413b37
MD5 61dbe731c957d13497049acbdcd0946a
BLAKE2b-256 03c2da27e84c9a1fca142e50860c556f42d2dcbf761595b7e7900abbb45ef9f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.7.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2aa3bccc5ad9f1cd345e2c5ef69974df3df680d5b97772006b7a500fdc632d33
MD5 f5243200e2ca320ea9f6c88760d7aa0a
BLAKE2b-256 243bd96d3d1eb1836a35af1cb467c46c56c4acdf3a950fb8579f13a419b59ceb

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