Skip to main content

STScI tools and algorithms used in calibration pipelines

Project description

STCAL

Documentation Status CI codecov

STScI Calibration algorithms and tools.

[!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.

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.16.0.tar.gz (838.4 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

stcal-1.16.0-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

stcal-1.16.0-cp314-cp314-macosx_11_0_arm64.whl (994.5 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

stcal-1.16.0-cp314-cp314-macosx_10_15_x86_64.whl (1000.0 kB view details)

Uploaded CPython 3.14macOS 10.15+ x86-64

stcal-1.16.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

stcal-1.16.0-cp313-cp313-macosx_11_0_arm64.whl (983.2 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

stcal-1.16.0-cp313-cp313-macosx_10_13_x86_64.whl (990.2 kB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

stcal-1.16.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

stcal-1.16.0-cp312-cp312-macosx_11_0_arm64.whl (984.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

stcal-1.16.0-cp312-cp312-macosx_10_13_x86_64.whl (992.3 kB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

stcal-1.16.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

stcal-1.16.0-cp311-cp311-macosx_11_0_arm64.whl (983.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

stcal-1.16.0-cp311-cp311-macosx_10_9_x86_64.whl (989.6 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: stcal-1.16.0.tar.gz
  • Upload date:
  • Size: 838.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for stcal-1.16.0.tar.gz
Algorithm Hash digest
SHA256 5b64a8ea6d12456126cf89f682b58a91a3ebe4604d2fcc7ddaada3a4672285f8
MD5 f8631a39afd148391a24bad16dff91e9
BLAKE2b-256 1dbbd816ebbc784d2de9512c9134510f65d23cb753b0e098a749ebb5b608f1e1

See more details on using hashes here.

File details

Details for the file stcal-1.16.0-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for stcal-1.16.0-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1aa219634a4700d7f8734106415b3b97a8aa6d96d3601cbcf8365be8d9502eca
MD5 759b6a99f2481e8d1a1572935226a22c
BLAKE2b-256 ccbc78a0c5e2958866e7d4525a2e9c3749a7a92776162566bb037370d2e02f4e

See more details on using hashes here.

File details

Details for the file stcal-1.16.0-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for stcal-1.16.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ee6f3d942effaf080e698ef079d7b2c738f41fe1a35c5221b20c94d4ab716273
MD5 98e6895b2527a92cddf989fbcf7f181f
BLAKE2b-256 3652a8851a981a4d3df2f50f63d387a075a82ddbfd340db4bef35ccba4cdd57e

See more details on using hashes here.

File details

Details for the file stcal-1.16.0-cp314-cp314-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for stcal-1.16.0-cp314-cp314-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 ef16121ac83dbd931d1e62a8cdfe76d1890d82a5ef3fe055fe6cecff0f0d7c4a
MD5 007728fab90f978ec1be36621fc622e9
BLAKE2b-256 b8709bf9c28488d6685889d59c4af3b3819e35b09f5cccf03648ac24bf95b5a5

See more details on using hashes here.

File details

Details for the file stcal-1.16.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for stcal-1.16.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f8dbca9407cf9637c694261a7163c5a4e618d183195e04d79e5253f631130167
MD5 456fd29ab1dc6e4632488a9d153438a7
BLAKE2b-256 0a78af232c1a41fa02d19f7d483e105c7d5df92bb7631aa4741c63881e474856

See more details on using hashes here.

File details

Details for the file stcal-1.16.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for stcal-1.16.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a659987ba1dbd101419cd27fcdf9ef1f512afae548b4dccbcaab068e60139e0d
MD5 d5b45d697cb73af201f48c5f2cdad850
BLAKE2b-256 6bfe9825607eacb011f08b1f1c7c52c6ca08a0fa1e8a4f407779ae248c15600b

See more details on using hashes here.

File details

Details for the file stcal-1.16.0-cp313-cp313-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for stcal-1.16.0-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 e11c18208272f1ab66e2c324bff8866bbaa207bf0386b247dc590a8ea90e89fa
MD5 75e5709e12ed32d7384d14c2f8720895
BLAKE2b-256 36e46fb18a2b1fa0241138872192b8fdb09963d329bf3109ff05f2d4789dec54

See more details on using hashes here.

File details

Details for the file stcal-1.16.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for stcal-1.16.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 df01b2e6558f7fa775edcd9ec10809d02524522f40f1e273e2bcb8ab3d2fa166
MD5 13cb5a1e30cc825bf234c47bb0948b48
BLAKE2b-256 cbd75ef17f1b10a5439b2eb81d8f45da6e6f3f565b3f0944c27637f0ea435db2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.16.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 59a34eab84b59c187717f70cdf2ba91039d75acd46bce8814d62b750832d61ad
MD5 bec0ff8a7b834a06a5645c7ec117656d
BLAKE2b-256 e8587590ee19647ff8f81566238d16cb8a331ed9ef52379e820867999cbe9881

See more details on using hashes here.

File details

Details for the file stcal-1.16.0-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for stcal-1.16.0-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 532e922f2843fe4834a42b6e2964551d38fef2332cd23167dec00f27362581fe
MD5 6dbd3ce9f48e6e9884386d686dfe0f8a
BLAKE2b-256 4e84001fd2d1e962bb0ecb1ca7331d6002b57003e96da4a160dce871b0cd3351

See more details on using hashes here.

File details

Details for the file stcal-1.16.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for stcal-1.16.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e81b0591d442f2e7da2f38d3ea7b5a8592c220eeee754f4cdc3a9085ddd654b0
MD5 cbb3caf3856147f33dc29d79a1d402a7
BLAKE2b-256 cdc30ade23ab669a44a82337a7673506ac2374c7570bee9b1a2a1813a693769f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.16.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4363c466655f59e15a6a2f199c617101406e37c1cd6a7348651120d64b696671
MD5 6c22d276b659df256cec51ffe373a7ee
BLAKE2b-256 d9ec650c25a8785f70b2f7ca440a6432a0c919ae7e7e77749f6efb1d6eac5f36

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.16.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 27b577e82e3a4ca107ffa7ccea04fa5169117f4a64395b16c51a182dced7f7d4
MD5 ea91db84b5bab89f5c4f665f8e16872a
BLAKE2b-256 6739791a1529af455cd28608eca0bc0a16a211cd3f8fa2b5c6e07ae927da077e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page