Skip to content

Commit

Permalink
Merge pull request #167 from lsst/tickets/DM-28480
Browse files Browse the repository at this point in the history
DM-28480: Support new flake8
  • Loading branch information
timj committed Jan 27, 2021
2 parents 4c5b185 + d351ea9 commit c004bbf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: lint

on:
- push
- pull_request
push:
branches:
- master
pull_request:

jobs:
lint:
Expand All @@ -13,7 +15,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.7
python-version: 3.8

- name: Install
run: pip install -r <(curl https://raw.githubusercontent.com/lsst/linting/master/requirements.txt)
Expand Down
16 changes: 8 additions & 8 deletions python/lsst/meas/base/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,23 +478,23 @@ def __init__(self, config, name, schema, metadata):
self.cdMatrix11Key = schema.addField(
f"{name}_CDMatrix_1_1",
type="D",
doc=f"(1, 1) element of the CDMatrix for the linear approximation "
"of the WCS at the src location. Gives units in radians.")
doc="(1, 1) element of the CDMatrix for the linear approximation "
"of the WCS at the src location. Gives units in radians.")
self.cdMatrix12Key = schema.addField(
f"{name}_CDMatrix_1_2",
type="D",
doc=f"(1, 2) element of the CDMatrix for the linear approximation "
"of the WCS at the src location. Gives units in radians.")
doc="(1, 2) element of the CDMatrix for the linear approximation "
"of the WCS at the src location. Gives units in radians.")
self.cdMatrix21Key = schema.addField(
f"{name}_CDMatrix_2_1",
type="D",
doc=f"(2, 1) element of the CDMatrix for the linear approximation "
"of the WCS at the src location. Gives units in radians.")
doc="(2, 1) element of the CDMatrix for the linear approximation "
"of the WCS at the src location. Gives units in radians.")
self.cdMatrix22Key = schema.addField(
f"{name}_CDMatrix_2_2",
type="D",
doc=f"(2, 2) element of the CDMatrix for the linear approximation "
"of the WCS at the src location. Gives units in radians.")
doc="(2, 2) element of the CDMatrix for the linear approximation "
"of the WCS at the src location. Gives units in radians.")

def measure(self, measRecord, exposure, center):
wcs = exposure.getWcs()
Expand Down

0 comments on commit c004bbf

Please sign in to comment.