Skip to content

Commit 379898b

Browse files
committed
Remove unnecessary r-strings
1 parent f7cc35e commit 379898b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/lsst/pipe/tasks/skyCorrection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ def run(self, calExps, calBkgs, skyFrames, camera, backgroundToPhotometricRatioH
386386
bgModel1Index = len(skyCorrs[0]._backgrounds) # used to remove bgModel1 if undoBgModel1 is True
387387
for detector, skyCorr in zip(detectors, skyCorrs):
388388
with warnings.catch_warnings():
389-
warnings.filterwarnings("ignore", r"invalid value encountered")
389+
warnings.filterwarnings("ignore", "invalid value encountered")
390390
calBkgElement = bgModel1.toCcdBackground(detector, detector.getBBox())
391391
skyCorr.append(calBkgElement[0])
392392

@@ -431,7 +431,7 @@ def run(self, calExps, calBkgs, skyFrames, camera, backgroundToPhotometricRatioH
431431
# Update skyCorrs with new bgModel2 background elements
432432
for detector, skyCorr in zip(detectors, skyCorrs):
433433
with warnings.catch_warnings():
434-
warnings.filterwarnings("ignore", r"invalid value encountered")
434+
warnings.filterwarnings("ignore", "invalid value encountered")
435435
calBkgElement = bgModel2.toCcdBackground(detector, detector.getBBox())
436436
skyCorr.append(calBkgElement[0])
437437

0 commit comments

Comments
 (0)