Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .cruft.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"template": "https://github.com/sunpy/package-template",
"commit": "7bda107a752e07008add69c658519487eeb15bcb",
"commit": "88a0a31eadf2be84895e32ffd792768c2863f7ca",
"checkout": null,
"context": {
"cookiecutter": {
Expand Down Expand Up @@ -32,7 +32,7 @@
".github/workflows/sub_package_update.yml"
],
"_template": "https://github.com/sunpy/package-template",
"_commit": "7bda107a752e07008add69c658519487eeb15bcb"
"_commit": "88a0a31eadf2be84895e32ffd792768c2863f7ca"
}
},
"directory": null
Expand Down
2 changes: 1 addition & 1 deletion aiapy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@


def _get_bibtex():
import textwrap
import textwrap # NOQA: PLC0415

# Set the bibtex entry to the article referenced in CITATION.rst
citation_file = Path(__file__).parent / "CITATION.rst"
Expand Down
4 changes: 2 additions & 2 deletions aiapy/calibrate/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ def _rotation_cupy(image, matrix, shift, order, missing, clip): # NOQA: ARG001
be ``'constant'``.
"""
try:
import cupy
import cupyx.scipy.ndimage
import cupy # NOQA: PLC0415
import cupyx.scipy.ndimage # NOQA: PLC0415
except ImportError as e:
msg = "cupy or cupy-cuda* (pre-compiled for each cuda version) is required to use this rotation method."
raise ImportError(
Expand Down
6 changes: 3 additions & 3 deletions aiapy/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ def aia_171_map():

@pytest.fixture
def psf_94(channels):
import aiapy.psf
import aiapy.psf # NOQA: PLC0415

return aiapy.psf.psf(channels[0], use_preflightcore=True)


def idl_available() -> bool | None:
try:
import hissw
import hissw # NOQA: PLC0415

hissw.Environment().run("")
return True # NOQA: TRY300
Expand All @@ -48,7 +48,7 @@ def idl_available() -> bool | None:
@pytest.fixture(scope="session")
def idl_environment():
if idl_available():
import hissw
import hissw # NOQA: PLC0415

return hissw.Environment(
ssw_packages=["sdo/aia"],
Expand Down
3 changes: 1 addition & 2 deletions aiapy/util/tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from astropy.tests.helper import assert_quantity_allclose

import aiapy.util
from aiapy.util.util import _QUALITY_FLAG_MESSAGES


@pytest.mark.remote_data
Expand Down Expand Up @@ -35,7 +36,5 @@ def test_check_quality_flag(bits):
quality = quality | (1 << b)
messages = ["nominal"]
if bits:
from aiapy.util.util import _QUALITY_FLAG_MESSAGES

messages = [_QUALITY_FLAG_MESSAGES.get(b, "(empty)") for b in bits]
assert messages == aiapy.util.check_quality_flag(quality)
Loading