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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

Uploaded CPython 3.12 macOS 11.0+ ARM64

stcal-1.5.0-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.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.5.0-cp311-cp311-macosx_11_0_arm64.whl (948.8 kB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

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

Uploaded CPython 3.10 macOS 11.0+ ARM64

stcal-1.5.0-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.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.5.0-cp39-cp39-macosx_11_0_arm64.whl (949.3 kB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

stcal-1.5.0-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.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for stcal-1.5.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e965ba5e47b685adddd3277455b0ee9e4eef14a6c46d7a2dc1b97638928d3c9f
MD5 98f3b9e2db9694598390b596b4583dfc
BLAKE2b-256 20e69a645822acb6f1efa4952cfa01060fc64a8a0e9557c85155e93532caf1a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.5.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 68bd8f0abb5861d3cab7b95226ebb682a8084cb3d3efe9a346e6b9a67d9b4b88
MD5 8e3952b8db60eb1df913f50c77d082c3
BLAKE2b-256 cca4a6bb1080ea99ebbf91ad882772e7d0421c823e3538ef3a510bf85da3c28f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.5.0-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 a8a42467e027afdb90e73b479c12044a7b91139455239b1c8b573ff03778d052
MD5 c9c7c66f597d0b84e87263de2238a02c
BLAKE2b-256 d38e1f416a58e26e53844f5c6c5e19e18025d4c2e9f8ae25c7f24f36ca0a5b29

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.5.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5f110ada66d74de8d72a98e80750b8208299525ebbfa348c72b3f78e4411bb10
MD5 af792a074d17280b4d79dddc8d1c65cb
BLAKE2b-256 ab3bd6398c0845784e91117150016b36d8c410333fb247bf779bac45c9a55a76

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.5.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8de4d23a4276d543a6e9673353dd8fb9d1e98d590bc12854192e0bb4211d5b19
MD5 2ec31abecb6bdb459f86fdb79d652354
BLAKE2b-256 9a8ac5619a6bdef9c7f39e87e10bf6548c41b6e0033255047b099081e5a7449d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.5.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 c58fad33edf2de558bcb287a1eaae8b10d80345eafeaf976d22ad0dc45762864
MD5 0085e67476462a1c7cbaa446f242ae1e
BLAKE2b-256 2c9e1c61f0c14943637d7649218904b379ccf1866586dace2873b00f7eb9d623

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.5.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ba4e33432e7579c834ac84a0a7e9d381d04055b71ca367aaa1993d39a8393e75
MD5 af96d930e0ab34a50e1c818217bdaef4
BLAKE2b-256 85ca0b1ef2d121bb6752db6b3b7ab76f7995dfa1088b676ba7ff111a03e9fd4e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.5.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cd65ca1fe67340ff81b8ea7c179b54a75eb31d51637b676945828cb66553b367
MD5 b635f90c2b48a67b2aafc040c5962625
BLAKE2b-256 259b61752f39a3ff0ec5df4e83e5ca86e56439ca5920d56d96a8e54f0acc524a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.5.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 050b905ff75e019e5ee3228a213bc01bbe397929225838d3e6e30857501849d4
MD5 2fc5e142d97a492cc08d516971ef8841
BLAKE2b-256 e69ac3c6fb2600f8b84e4d61a77ece34cef8c409e0e6957e4cc00a58fdf5ab31

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.5.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6b54f7f32d1e793de6a2a7405948746cbd997d032ed21887fea0db2b860787bb
MD5 e57c6d596b2e5dfcdc55da96dad81684
BLAKE2b-256 07eea2a3a8915b9132770cf1c79e1acb13fd5ddf4107f46a7febdb4dbe29a1b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.5.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8625e6ae28f1b4bc55379f34aba26a3bcb66337a329d870a7c1d4745d8eda56f
MD5 115f851537f76c0196300bcbf61b8e4e
BLAKE2b-256 36dd3f293eb5285128fc0ce929a32a3423de218f6d96eab596012400edc5bdbb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.5.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f804d022cdfcf5409666669b2293f433a11ea11b322c4197613f9a273fe404b8
MD5 99c3a8fc66433fc5d67053533da79ccf
BLAKE2b-256 7621c8755ccf4625753a195222d50c1e9c3da2d112b191edfed6e4ce3f206180

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