From 54650e8875850451b9537c8497ad4310dc83d3bb Mon Sep 17 00:00:00 2001 From: Paul McCarthy <pauldmccarthy@gmail.com> Date: Tue, 11 Feb 2025 15:24:00 +0000 Subject: [PATCH] RF: No need for import inside function as numpy is already being imported at the top-level --- fsl/data/image.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fsl/data/image.py b/fsl/data/image.py index 54d74cfa..15e59727 100644 --- a/fsl/data/image.py +++ b/fsl/data/image.py @@ -46,6 +46,7 @@ from pathlib import Path from typing import Union import numpy as np +import numpy.linalg as npla import nibabel as nib import nibabel.fileslice as fileslice @@ -456,8 +457,6 @@ class Nifti(notifier.Notifier, meta.Meta): :meth:`isNeurological` method. """ - import numpy.linalg as npla - affines = {} shape = list(shape[ :3]) pixdim = list(pixdim[:3]) -- GitLab