From f095515148e2f48231951015c15de1b92baab1eb Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 19 Feb 2024 19:45:57 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/imars3d/__init__.py | 1 + src/imars3d/backend/__init__.py | 1 + src/imars3d/backend/__main__.py | 1 + src/imars3d/backend/dataio/__init__.py | 1 + tests/unit/backend/corrections/test_beam_hardening.py | 1 + tests/unit/backend/workflow/test_engine.py | 4 ++++ 6 files changed, 9 insertions(+) diff --git a/src/imars3d/__init__.py b/src/imars3d/__init__.py index 258b31cc..bd2bb990 100644 --- a/src/imars3d/__init__.py +++ b/src/imars3d/__init__.py @@ -1,4 +1,5 @@ """iMars3D: a Python package for neutron imaging and tomography reconstruction.""" + import logging from .backend import corrections, diagnostics, dataio, morph, preparation, reconstruction # noqa: F401 diff --git a/src/imars3d/backend/__init__.py b/src/imars3d/backend/__init__.py index 32eb910d..73aa9f60 100644 --- a/src/imars3d/backend/__init__.py +++ b/src/imars3d/backend/__init__.py @@ -1,4 +1,5 @@ """iMars3D's backend packages: the core of the application.""" + from .autoredux import auto_reduction_ready # noqa: F401 from .autoredux import load_template_config # noqa: F401 from .autoredux import extract_info_from_path # noqa: F401 diff --git a/src/imars3d/backend/__main__.py b/src/imars3d/backend/__main__.py index 6ebb9af1..81cad682 100644 --- a/src/imars3d/backend/__main__.py +++ b/src/imars3d/backend/__main__.py @@ -9,6 +9,7 @@ The built-in help will give the options when supplied a ``--help`` flag. """ + from imars3d.backend.workflow.engine import WorkflowEngineAuto import logging from pathlib import Path diff --git a/src/imars3d/backend/dataio/__init__.py b/src/imars3d/backend/dataio/__init__.py index 5ea318f1..fface726 100644 --- a/src/imars3d/backend/dataio/__init__.py +++ b/src/imars3d/backend/dataio/__init__.py @@ -1,2 +1,3 @@ """data handling module for iMars3D.""" + from . import data # noqa: F401 diff --git a/tests/unit/backend/corrections/test_beam_hardening.py b/tests/unit/backend/corrections/test_beam_hardening.py index b3e3b2f0..4a50c8dc 100644 --- a/tests/unit/backend/corrections/test_beam_hardening.py +++ b/tests/unit/backend/corrections/test_beam_hardening.py @@ -1,4 +1,5 @@ """Unit test for beam hardening correction""" + #!/usr/bin/env python import numpy as np import pytest diff --git a/tests/unit/backend/workflow/test_engine.py b/tests/unit/backend/workflow/test_engine.py index 3cc19eb8..ba496a08 100644 --- a/tests/unit/backend/workflow/test_engine.py +++ b/tests/unit/backend/workflow/test_engine.py @@ -14,6 +14,7 @@ class load_data(ParameterizedFunction): r"""mock loading a set of radiographs into a numpy array""" + ct_files = Parameter(default=None) ct_dir = StringParam(default=None) @@ -25,6 +26,7 @@ def __call__(self, **params): class save_data(ParameterizedFunction): r"""mock saving a set or radiographs to some directory""" + ct = Parameter(default=None) workingdir = Parameter() @@ -41,6 +43,7 @@ def __call__(self, **params): class reconstruction(ParameterizedFunction): r"""mock the reconstruction of the radiographs""" + ct = Parameter(default=None) rot_center = Parameter(default=None) @@ -52,6 +55,7 @@ def __call__(self, **params): class reconstruction_with_default(ParameterizedFunction): r"""mock the reconstruction of the radiographs""" + ct = Parameter(default=None) rot_center = Parameter(default=0.0)