STScI tools and algorithms used in calibration pipelines
Project description
STCAL
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.**
[!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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file stcal-1.10.0.tar.gz
.
File metadata
- Download URL: stcal-1.10.0.tar.gz
- Upload date:
- Size: 1.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f48782b8f12477da4518f0b9e491bf9b76343bb30da00afa8f89c66079b1bc0 |
|
MD5 | 33c3faa3894ba75dc37cf393d5cf0626 |
|
BLAKE2b-256 | ebf20793d87155440363b3e1aa6113ccfc870b30beb3638aad5e8b0f627c97b5 |
File details
Details for the file stcal-1.10.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: stcal-1.10.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 2.8 MB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d8e21a1a66642470e8cdf886c9da85e2570c9efb0035ebba1f4ce23010dd85b |
|
MD5 | 8e01681e03104d250609e0ea78cf5f0a |
|
BLAKE2b-256 | 37ae98b07805a20b97aca72004446516e11e67d7522dab4394b8ebb03cce3512 |
File details
Details for the file stcal-1.10.0-cp312-cp312-macosx_11_0_arm64.whl
.
File metadata
- Download URL: stcal-1.10.0-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.0 MB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 300c6587d899eccbf92aaf9ae46f246310155e67671c87cad48467b87c23781f |
|
MD5 | 3499e8216e576917ddcf48ecc62a250d |
|
BLAKE2b-256 | 035bb9b05d42a2fcf9609cd36a7cd5d1f4abef81875716e6027b6c7e95c2851e |
File details
Details for the file stcal-1.10.0-cp312-cp312-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: stcal-1.10.0-cp312-cp312-macosx_10_9_x86_64.whl
- Upload date:
- Size: 1.0 MB
- Tags: CPython 3.12, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9997298e75c6d647389615f1397b5d95ac8a4d7ad1bb03d4fcc73f1a443996d7 |
|
MD5 | b422f2cd8a15153dce3cbe51adfd2cf6 |
|
BLAKE2b-256 | d52144d5df301f180021edf41a3aee1364756b371927a4a08851b9e7c4a420fc |
File details
Details for the file stcal-1.10.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: stcal-1.10.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 2.8 MB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51269bbaa6bb43b9d489bea37579f7e98dbc83064832aab5efb763c8affd20a5 |
|
MD5 | 8ec8b21794fa642528c8a8b22e2b00ba |
|
BLAKE2b-256 | 8ff63e3e81f2d5e8f3738c2ab7291e6f755d0f652ab20ac0da49fcee97199e96 |
File details
Details for the file stcal-1.10.0-cp311-cp311-macosx_11_0_arm64.whl
.
File metadata
- Download URL: stcal-1.10.0-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.0 MB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f6eff5b9ca36957acd3e31eeaa265f65154fa13516bfe2757e62de46b7fd23f |
|
MD5 | 8f3074f7d1cbe8b7bb378dd8b96249b1 |
|
BLAKE2b-256 | a86c1025106ec4510bdb149aa23c6e1eb4d1949d186e37bef9734db6b5914fd4 |
File details
Details for the file stcal-1.10.0-cp311-cp311-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: stcal-1.10.0-cp311-cp311-macosx_10_9_x86_64.whl
- Upload date:
- Size: 1.0 MB
- Tags: CPython 3.11, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 823f01aff20bfaa83b4ec0380e3d81a3d982fca1a66dadea6337d897110eae86 |
|
MD5 | 88396ae2f9069bbbc883e2445dcf96d7 |
|
BLAKE2b-256 | 6920b85eb7e7b20268d1cd7464946c1d81da9e653fb3527923c1bb935c46c44f |
File details
Details for the file stcal-1.10.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: stcal-1.10.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 2.7 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b349a1a8ec13e1304170a1b84fe98256ee3b27a8fdca6943eb10679decfa349b |
|
MD5 | d1006e37b942e748ed6ec9940a3b8c76 |
|
BLAKE2b-256 | 183dfbd38916e0bae5f406d7db5427db2f777dc138abaff5e49b3bb1854e644e |
File details
Details for the file stcal-1.10.0-cp310-cp310-macosx_11_0_arm64.whl
.
File metadata
- Download URL: stcal-1.10.0-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.0 MB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c756467c8fef7ce4f8283bf45ff9c73c0dea97673b37ca103b3ca37493803d79 |
|
MD5 | 6fb833cd431996c0d14b0362d818ed8d |
|
BLAKE2b-256 | 6f2c035863ac4724368e83f62d39bb96f252b0420280951e0ee3a50ddd483b83 |
File details
Details for the file stcal-1.10.0-cp310-cp310-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: stcal-1.10.0-cp310-cp310-macosx_10_9_x86_64.whl
- Upload date:
- Size: 1.0 MB
- Tags: CPython 3.10, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 237a7ee6119e69b44cf30551413a411765e09a264ade532ffe142c679ad2f35c |
|
MD5 | 9c47c96ba46ecbcd74de1b471e81ddb3 |
|
BLAKE2b-256 | efeecb320a50c8530b2e629cf99c1b5bb0b3bc6a3c381d459cab7575d6905d46 |