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] 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.19.1.tar.gz (855.6 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.19.1-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.19.1-cp314-cp314-macosx_11_0_arm64.whl (1.0 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

stcal-1.19.1-cp314-cp314-macosx_10_15_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.14macOS 10.15+ x86-64

stcal-1.19.1-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.19.1-cp313-cp313-macosx_11_0_arm64.whl (994.9 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

stcal-1.19.1-cp313-cp313-macosx_10_13_x86_64.whl (999.5 kB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

stcal-1.19.1-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.19.1-cp312-cp312-macosx_11_0_arm64.whl (997.0 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

stcal-1.19.1-cp312-cp312-macosx_10_13_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

stcal-1.19.1-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.19.1-cp311-cp311-macosx_11_0_arm64.whl (992.7 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

stcal-1.19.1-cp311-cp311-macosx_10_9_x86_64.whl (995.9 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

File details

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

File metadata

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

File hashes

Hashes for stcal-1.19.1.tar.gz
Algorithm Hash digest
SHA256 cc3a7fb105309c595a93bc33de4d49270f6bd3001d33fb1f7e0f1d48d8d3a3ba
MD5 1749bd2531b596096ae7b4b67b160214
BLAKE2b-256 74cc8c87032b11d35c3232677046e7da049db4791c2d7fd0a585f0692a172449

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.19.1-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e8c8803295bd5b0ca75ba8679cf02dc803bfa28bd1121619ceae90d6a98dc280
MD5 0338b0cace114e99b3987da2ad04cfec
BLAKE2b-256 7866772f23c56880fe823bd57808fb00df114ac0f01129c6f2db7040e83cfc2b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.19.1-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bf1fe5c32da1c8f1d65f68fd163f8e33c594e3b20186c40b3dba7ba80c7d0725
MD5 93b59ea30f11a938f03c10b63a96c221
BLAKE2b-256 3fd7e5dff5f4ddc0dbd7004c134184389ac4b9f38818f1961f0320b95fe06ade

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.19.1-cp314-cp314-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 147d72c2e46bfc8e20d876d15a9d13ad2757e30ff695c7399d547ba6871c5a13
MD5 057ead8fdc2012a50e25286de335424a
BLAKE2b-256 3f9600b6f501518b038ac30e855200c2e11788071fd327794f7475148d7d0267

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.19.1-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b91d91adebc445461feaa4c3348fbb0bbb3ae245f8439f05a567babffee3e9a4
MD5 ddc04bc4addd5c7c221c40312ad0308d
BLAKE2b-256 545ab3e9da15802918db17f02cfa40272a9f3bd0d7bff06c7c6062dcf7a6214e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.19.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2b1a30929759f6fa911c351a9572cf7fd9a6dd728f1745e96464575129d4d484
MD5 b33852fad554bafb7ff91d7d6871e062
BLAKE2b-256 2209a7aa5b359345061283283a165adbf82ebb38b71033f1e75e81fe431dfcad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.19.1-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 5c3ab8307e9910caf6f220736820076fee181fefae17dd4d06cf182fd8e95252
MD5 45a894535317be1aca15cda135d2936d
BLAKE2b-256 3852e36acded0425c01f61c3571c02d7af66b5f31681474fbc9447fab8d9380d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.19.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b96a9b631363f40143e3f204411da947634b6b275606c4c6212b67f6b1094729
MD5 5efc86f3a33ab4eb97e4f1ccc71a5794
BLAKE2b-256 1b7354f466ead2547807890f46125dced7f1893892e98194fed3d1eed023c6ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.19.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6232c875cbb2f1a7b25546cbedf5b671219166152ef3a33679f82671e700f36a
MD5 7cd1d20f882f2c3d649bcd8e12472e20
BLAKE2b-256 7170b6463680326d62abd08f873dc33b2d446c28c9cff33ca1090135f83859c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.19.1-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 9e72e9a5d86eadfde68b22cfa1f614cbf346b8d4f4b5fd9425df3470f00c0fb5
MD5 99d7e68508a2dcf677254454da2fa131
BLAKE2b-256 010752fd35b1b4621d38dda04ceb96068146560f4d0f982195a9c31b004c79a7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.19.1-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d4713d3128a58f3af3816218710d76ac69ca90d062187123a1d65b856284777e
MD5 6c7e373334b23721aa0063143d55bf10
BLAKE2b-256 0530d394be1d78562c8b11706182f4c8461973364020e8a29619d659f2096d82

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.19.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2d64b9d5816fe4927ae72160bd5421cd075fbc31721f78e6aff200aa3345c66c
MD5 41a666d3cfe1bf90706e3b2136b56795
BLAKE2b-256 97a3d98ea9a0cbb7d2ac9fc0d77a6aa60abd49f1c4fe52b40e8ac34d35bbc169

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stcal-1.19.1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f86a9200b6c819f8497d5e3436a044511824ae45a3633f5040f80ec00713c4eb
MD5 2bd56485095aea8d5c2765ba3b3c3cd2
BLAKE2b-256 d701023236b747f4620749e08a2ad63d217e051a76e82f6f1a5f9b5991ad22a5

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