Skip to content

Commit 2d20deb

Browse files
committed
Ran pre-commits to solve formatting issues
1 parent 9efec14 commit 2d20deb

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

ccdproc/image_collection.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ def filter(self, **kwd):
419419
treated as regular expression patterns and matching is done by
420420
regular expression search. The search is always
421421
**case insensitive**.
422-
422+
423423
**kwd :
424424
``**kwd`` is dict of keywords and values the files must have.
425425
The value '*' represents any value.
@@ -432,10 +432,12 @@ def filter(self, **kwd):
432432
A new collection with the files matched by the arguments
433433
to filter.
434434
"""
435-
435+
436436
files = self.files_filtered(include_path=True, **kwd)
437-
438-
return ImageFileCollection(filenames=files, keywords=self.keywords, ext = self._ext)
437+
438+
return ImageFileCollection(
439+
filenames=files, keywords=self.keywords, ext=self._ext
440+
)
439441

440442
def _get_files(self):
441443
"""Helper method which checks whether ``files`` should be set
@@ -465,7 +467,7 @@ def _get_files(self):
465467
for file in files
466468
if not fnmatch.fnmatch(file, self.glob_exclude)
467469
]
468-
470+
469471
return files
470472

471473
def _dict_from_fits_header(

ccdproc/tests/test_image_collection.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,18 +1153,16 @@ def test_filter_on_regex_escape_characters(self, triage_setup):
11531153
assert len(new_ic.files) == 1
11541154
assert kw in new_ic.summary["regex_fl"]
11551155

1156-
def test_filter_on_check_ext(self,tmp_path):
1156+
def test_filter_on_check_ext(self, tmp_path):
11571157
"""
1158-
Testing the 814 error
1158+
Testing the 814 error
11591159
"""
11601160
hdul = fits.HDUList(
11611161
[fits.PrimaryHDU(np.ones((10, 10))), fits.ImageHDU(np.ones((10, 10)))]
11621162
)
1163-
hdul.writeto(tmp_path/"mef.fits")
1164-
ifc = ImageFileCollection(tmp_path,ext=1)
1163+
hdul.writeto(tmp_path / "mef.fits")
1164+
ifc = ImageFileCollection(tmp_path, ext=1)
11651165
assert len(ifc.summary) > 0
11661166
ifc2 = ifc.filter()
1167-
assert len(ifc2.summary) > 0
1167+
assert len(ifc2.summary) > 0
11681168
assert ifc2.ext == 1
1169-
1170-

0 commit comments

Comments
 (0)