Skip to content

Commit

Permalink
Merge pull request #478 from lsst/tickets/DM-42837
Browse files Browse the repository at this point in the history
Fix radial distortion documentation.
  • Loading branch information
jmeyers314 committed Feb 20, 2024
2 parents ae481fb + 0b74acd commit f1174df
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ repos:
- id: trailing-whitespace
- id: check-toml
- repo: https://github.com/psf/black
rev: 23.11.0
rev: 24.1.1
hooks:
- id: black
# It is recommended to specify the latest version of Python
Expand All @@ -16,12 +16,12 @@ repos:
# https://pre-commit.com/#top_level-default_language_version
language_version: python3.11
- repo: https://github.com/pycqa/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
name: isort (python)
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.1.6
rev: v0.1.15
hooks:
- id: ruff
6 changes: 2 additions & 4 deletions python/lsst/obs/base/_read_curated_calibs.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,9 @@ class CuratedCalibration(Protocol):
"""

@classmethod
def readText(cls, path: str) -> CuratedCalibration:
...
def readText(cls, path: str) -> CuratedCalibration: ...

def getMetadata(self) -> Mapping:
...
def getMetadata(self) -> Mapping: ...


def read_one_calib(
Expand Down
4 changes: 2 additions & 2 deletions python/lsst/obs/base/yamlCamera.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,8 @@ def makeTransformDict(nativeSys, transformDict, plateScale):

transform = afwGeom.makeTransform(affine)
elif transformType == "radial":
# radial coefficients of the form [0, 1 (no units), C2 (rad),
# usually 0, C3 (rad^2), ...]
# radial coefficients of the form
# [0, 1 (no units), C2 (mm^-1), usually 0, C4 (mm^-3), ...]
# Radial distortion is modeled as a radial polynomial that converts
# from focal plane radius (in mm) to field angle (in radians).
# The provided coefficients are divided by the plate
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[flake8]
max-line-length = 110
max-doc-length = 79
ignore = E133, E226, E228, N802, N803, N806, N812, N815, N816, W503, E203
ignore = E133, E226, E228, E704, N802, N803, N806, N812, N815, N816, W503, E203
exclude = __init__.py, tests/camera/camera.py

[tool:pytest]
Expand Down

0 comments on commit f1174df

Please sign in to comment.