hartmannActor
The hartmann actor is responsible for taking and analysing Hartmann door exposures to determine the optimal focus for the BOSS spectrographs at APO and LCO (sp1 and sp2, respectively). It also commands the spectrograph collimator motors to adjust the focus.
Procedure
The hartmann actor performs the following steps:
- Turns on the appropriate arc lamps and waits for them to warm up.
- Takes two BOSS exposures, each one with a different Hartmann door closed (left and right). For a perfectly focused system, the exposures would be identical. As spectrograph focus degrades, the position of the spectral lines in one of the Hartmann images shifts vertically with respect to the other. The shift is proportional to the amount of defocus, which can be corrected by either adjusting the collimator position or the position of the blue or red cameras via the camera "rings". In practice only ring needs to be adjusted, with the other camera being the reference one and its focus optimised by the collimator. The blue ring/camera is the one that is adjusted.
- The images are analysed to determine the vertical shift. This is done by applying vertical shifts to one of the images and computing the product of both images. The product will be maximised when the vertical shift is correct. A calibration is applied to convert the vertical shift to a collimator movement.
- If the collimator can correct the focus for both cameras, within a tolerance, the collimator is moved that amount. Otherwise, the necessary ring movement is computed and the user is instructed to move the blue ring by that amount and rerun the
hartmann collimatecommand.
Usage
See hartmann --help for usage instructions. In general the hartmann collimate command runs the entire sequence. --no-move can be used to run the sequence without moving the collimator. Other flags such as --exposure-time or --ignore-residuals can be used to change the command behaviour.
Code style and development
hartmannActor uses uv for package and dependency management, and ruff for code style enforcement. ty is the recommended type checker. See pyproject.toml for configuration details.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sdss_hartmannactor-3.1.0.tar.gz.
File metadata
- Download URL: sdss_hartmannactor-3.1.0.tar.gz
- Upload date:
- Size: 18.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
daabfe57ec20a6f76ce42f5101256eafd76d4a75fb6d26402d9a3418442a7690
|
|
| MD5 |
5ce5776d2cb6096f3c6c40bc8b9a34d7
|
|
| BLAKE2b-256 |
b0a900110ca0ee2bb2af7efd39929394352c4cc30515df02b610c8f82ec9235a
|
Provenance
The following attestation bundles were made for sdss_hartmannactor-3.1.0.tar.gz:
Publisher:
release.yml on sdss/hartmannActor
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sdss_hartmannactor-3.1.0.tar.gz -
Subject digest:
daabfe57ec20a6f76ce42f5101256eafd76d4a75fb6d26402d9a3418442a7690 - Sigstore transparency entry: 2335234016
- Sigstore integration time:
-
Permalink:
sdss/hartmannActor@efb0b581db91499fa5159a67f1f5f8980eaf54b7 -
Branch / Tag:
refs/tags/3.1.0 - Owner: https://github.com/sdss
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@efb0b581db91499fa5159a67f1f5f8980eaf54b7 -
Trigger Event:
push
-
Statement type:
File details
Details for the file sdss_hartmannactor-3.1.0-py3-none-any.whl.
File metadata
- Download URL: sdss_hartmannactor-3.1.0-py3-none-any.whl
- Upload date:
- Size: 22.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c574774009e18c9ce0b820c2a6fce450a19046412e11fff2f22ec47902937e45
|
|
| MD5 |
dcce23988d957de3df4355b7275a1a7c
|
|
| BLAKE2b-256 |
13fbbb4c6e73511b8001024a382a1b5eeaa61d287461114eb2f510bc886c14c4
|
Provenance
The following attestation bundles were made for sdss_hartmannactor-3.1.0-py3-none-any.whl:
Publisher:
release.yml on sdss/hartmannActor
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sdss_hartmannactor-3.1.0-py3-none-any.whl -
Subject digest:
c574774009e18c9ce0b820c2a6fce450a19046412e11fff2f22ec47902937e45 - Sigstore transparency entry: 2335234062
- Sigstore integration time:
-
Permalink:
sdss/hartmannActor@efb0b581db91499fa5159a67f1f5f8980eaf54b7 -
Branch / Tag:
refs/tags/3.1.0 - Owner: https://github.com/sdss
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@efb0b581db91499fa5159a67f1f5f8980eaf54b7 -
Trigger Event:
push
-
Statement type: