Skip to content

Commit 536c29e

Browse files
committed
style: changes for black formatting update
1 parent 8a417b9 commit 536c29e

11 files changed

+14
-4
lines changed

caput/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
tod
1818
weighted_median
1919
"""
20+
2021
from . import _version
2122

2223
__version__ = _version.get_versions()["version"]

caput/cache.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tools for caching expensive calculations."""
2+
23
import weakref
34

45
import numpy as np

caput/config.py

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
Richard 40.0 Sooty
5050
5151
"""
52+
5253
from __future__ import annotations
5354

5455
from typing import TYPE_CHECKING

caput/fileformats.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Interface for file formats supported by caput: HDF5 and Zarr."""
2+
23
import logging
34
import os
45
import shutil

caput/interferometry.py

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
- :py:meth:`fringestop_phase`
1212
"""
1313

14-
1514
import numpy as np
1615

1716

caput/mpiarray.py

+1
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@
236236
intermediate pickling process, which can lead to malformed arrays.
237237
238238
"""
239+
239240
import logging
240241
import os
241242
import time

caput/tests/test_mpiarray.py

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
55
$ mpirun -np 4 python test_mpiarray.py
66
"""
7+
78
from typing import Union
89
from packaging import version
910
import pytest

caput/tests/test_pipeline.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test running the caput.pipeline."""
2+
23
from caput.tests import conftest
34

45

caput/tests/test_selection.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Serial version of the selection tests."""
2+
23
import pytest
34
from pytest_lazyfixture import lazy_fixture
45
import numpy as np

caput/time.py

+1
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@
117117
118118
.. _`IERS constants`: http://hpiers.obspm.fr/eop-pc/models/constants.html
119119
"""
120+
120121
import warnings
121122
from datetime import datetime
122123

caput/tod.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -390,9 +390,11 @@ def dataset_filter(d):
390390
# Just copy it.
391391
out.create_index_map(
392392
axis,
393-
memh5.ensure_unicode(index_map)
394-
if convert_dataset_strings
395-
else index_map,
393+
(
394+
memh5.ensure_unicode(index_map)
395+
if convert_dataset_strings
396+
else index_map
397+
),
396398
)
397399
memh5.copyattrs(first_data.index_attrs[axis], out.index_attrs[axis])
398400

0 commit comments

Comments
 (0)