From b0e1fad8bfce28486cd76aa414dc36f83e880f7d Mon Sep 17 00:00:00 2001 From: Shane Maloney Date: Tue, 10 Sep 2024 09:11:45 +0100 Subject: [PATCH] isort config fixes --- .isort.cfg | 8 ++++---- chimerapy/chimera.py | 4 +--- examples/paper-figures.py | 11 +++++------ 3 files changed, 10 insertions(+), 13 deletions(-) diff --git a/.isort.cfg b/.isort.cfg index 7e714f6..3b0b9dc 100644 --- a/.isort.cfg +++ b/.isort.cfg @@ -2,15 +2,15 @@ balanced_wrapping = true skip = docs/conf.py - smart/__init__.py + chimerapy/__init__.py default_section = THIRDPARTY include_trailing_comma = true known_astropy = astropy, asdf -known_sunpy = sunpy -known_first_party = smart +known_chimerapy = chimerapy +known_first_party = chimerapy length_sort = false length_sort_sections = stdlib line_length = 110 multi_line_output = 3 no_lines_before = LOCALFOLDER -sections = STDLIB, THIRDPARTY, ASTROPY, SUNPY, FIRSTPARTY, LOCALFOLDER +sections = STDLIB, THIRDPARTY, ASTROPY, CHIMERAPY, FIRSTPARTY, LOCALFOLDER diff --git a/chimerapy/chimera.py b/chimerapy/chimera.py index ef6bdea..d954a48 100644 --- a/chimerapy/chimera.py +++ b/chimerapy/chimera.py @@ -1,6 +1,5 @@ """ """ -import glob import sys import glob @@ -8,6 +7,7 @@ import mahotas import matplotlib.pyplot as plt import numpy as np +import sunpy.map from scipy.interpolate import RectBivariateSpline from skimage.util import img_as_ubyte @@ -16,8 +16,6 @@ from astropy.io import fits from astropy.modeling.models import Gaussian2D -import sunpy.map - def chimera_legacy(): file_path = "./" diff --git a/examples/paper-figures.py b/examples/paper-figures.py index 998b634..57e7348 100644 --- a/examples/paper-figures.py +++ b/examples/paper-figures.py @@ -16,12 +16,6 @@ from matplotlib import pyplot as plt from matplotlib.colors import LogNorm from matplotlib.patches import Rectangle - -import astropy.units as u -from astropy.coordinates import SkyCoord -from astropy.units import UnitsError -from astropy.visualization import make_lupton_rgb - from sunpy.map import ( Map, all_coordinates_from_map, @@ -30,6 +24,11 @@ sample_at_coords, ) +import astropy.units as u +from astropy.coordinates import SkyCoord +from astropy.units import UnitsError +from astropy.visualization import make_lupton_rgb + # %% # # Figure 2