Skip to content

Commit

Permalink
style(pre-commit.ci): auto fixes [...]
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Dec 2, 2024
1 parent 37ae61f commit 41a6d58
Show file tree
Hide file tree
Showing 20 changed files with 75 additions and 75 deletions.
26 changes: 13 additions & 13 deletions src/careamics/config/__init__.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
"""Configuration module."""

__all__ = [
"FCNAlgorithmConfig",
"VAEAlgorithmConfig",
"DataConfig",
"Configuration",
"CheckpointModel",
"Configuration",
"CustomModel",
"DataConfig",
"FCNAlgorithmConfig",
"GaussianMixtureNMConfig",
"InferenceConfig",
"load_configuration",
"save_configuration",
"LVAELossConfig",
"MultiChannelNMConfig",
"TrainingConfig",
"create_n2v_configuration",
"create_n2n_configuration",
"VAEAlgorithmConfig",
"clear_custom_models",
"create_care_configuration",
"create_n2n_configuration",
"create_n2v_configuration",
"load_configuration",
"register_model",
"CustomModel",
"clear_custom_models",
"GaussianMixtureNMConfig",
"MultiChannelNMConfig",
"LVAELossConfig",
"save_configuration",
]
from .architectures import CustomModel, clear_custom_models, register_model
from .callback_model import CheckpointModel
Expand Down
2 changes: 1 addition & 1 deletion src/careamics/config/architectures/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
__all__ = [
"ArchitectureModel",
"CustomModel",
"UNetModel",
"LVAEModel",
"UNetModel",
"clear_custom_models",
"get_custom_model",
"register_model",
Expand Down
22 changes: 11 additions & 11 deletions src/careamics/config/references/__init__.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
"""Module containing references to the algorithm used in CAREamics."""

__all__ = [
"N2V2Ref",
"N2VRef",
"StructN2VRef",
"N2VDescription",
"N2V2Description",
"StructN2VDescription",
"StructN2V2Description",
"CARE",
"CUSTOM",
"N2N",
"N2V",
"N2V2",
"STRUCT_N2V",
"STRUCT_N2V2",
"CUSTOM",
"N2N",
"CARE",
"CAREDescription",
"N2NDescription",
"CARERef",
"N2NDescription",
"N2NRef",
"N2V2Description",
"N2V2Ref",
"N2VDescription",
"N2VRef",
"StructN2V2Description",
"StructN2VDescription",
"StructN2VRef",
]

from .algorithm_descriptions import (
Expand Down
14 changes: 7 additions & 7 deletions src/careamics/config/support/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
"""

__all__ = [
"SupportedArchitecture",
"SupportedActivation",
"SupportedOptimizer",
"SupportedScheduler",
"SupportedLoss",
"SupportedAlgorithm",
"SupportedPixelManipulation",
"SupportedTransform",
"SupportedArchitecture",
"SupportedData",
"SupportedStructAxis",
"SupportedLogger",
"SupportedLoss",
"SupportedOptimizer",
"SupportedPixelManipulation",
"SupportedScheduler",
"SupportedStructAxis",
"SupportedTransform",
]


Expand Down
6 changes: 3 additions & 3 deletions src/careamics/config/transformations/__init__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"""CAREamics transformation Pydantic models."""

__all__ = [
"TRANSFORMS_UNION",
"N2VManipulateModel",
"XYFlipModel",
"NormalizeModel",
"XYRandomRotate90Model",
"TransformModel",
"TRANSFORMS_UNION",
"XYFlipModel",
"XYRandomRotate90Model",
]


Expand Down
4 changes: 2 additions & 2 deletions src/careamics/dataset/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"InMemoryDataset",
"InMemoryPredDataset",
"InMemoryTiledPredDataset",
"PathIterableDataset",
"IterableTiledPredDataset",
"IterablePredDataset",
"IterableTiledPredDataset",
"PathIterableDataset",
]

from .in_memory_dataset import InMemoryDataset
Expand Down
6 changes: 3 additions & 3 deletions src/careamics/dataset/dataset_utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
"""Files and arrays utils used in the datasets."""

__all__ = [
"reshape_array",
"WelfordStatistics",
"compute_normalization_stats",
"get_files_size",
"iterate_over_files",
"list_files",
"reshape_array",
"validate_source_target_files",
"iterate_over_files",
"WelfordStatistics",
]


Expand Down
4 changes: 2 additions & 2 deletions src/careamics/dataset/tiling/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"""Tiling functions."""

__all__ = [
"stitch_prediction",
"extract_tiles",
"collate_tiles",
"extract_tiles",
"stitch_prediction",
]

from .collate_tiles import collate_tiles
Expand Down
10 changes: 5 additions & 5 deletions src/careamics/file_io/__init__.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
"""Functions relating reading and writing image files."""

__all__ = [
"read",
"write",
"get_read_func",
"get_write_func",
"ReadFunc",
"WriteFunc",
"SupportedWriteType",
"WriteFunc",
"get_read_func",
"get_write_func",
"read",
"write",
]

from . import read, write
Expand Down
2 changes: 1 addition & 1 deletion src/careamics/file_io/read/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
"""Functions relating to reading image files of different formats."""

__all__ = [
"ReadFunc",
"get_read_func",
"read_tiff",
"read_zarr",
"ReadFunc",
]

from .get_func import ReadFunc, get_read_func
Expand Down
4 changes: 2 additions & 2 deletions src/careamics/file_io/write/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
"""Functions relating to writing image files of different formats."""

__all__ = [
"SupportedWriteType",
"WriteFunc",
"get_write_func",
"write_tiff",
"WriteFunc",
"SupportedWriteType",
]

from .get_func import (
Expand Down
10 changes: 5 additions & 5 deletions src/careamics/lightning/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

__all__ = [
"FCNModule",
"HyperParametersCallback",
"PredictDataModule",
"ProgressBarCallback",
"TrainDataModule",
"VAEModule",
"create_careamics_module",
"TrainDataModule",
"create_train_datamodule",
"PredictDataModule",
"create_predict_datamodule",
"HyperParametersCallback",
"ProgressBarCallback",
"create_train_datamodule",
]

from .callbacks import HyperParametersCallback, ProgressBarCallback
Expand Down
2 changes: 1 addition & 1 deletion src/careamics/lightning/callbacks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

__all__ = [
"HyperParametersCallback",
"ProgressBarCallback",
"PredictionWriterCallback",
"ProgressBarCallback",
]

from .hyperparameters_callback import HyperParametersCallback
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"""A package for the `PredictionWriterCallback` class and utilities."""

__all__ = [
"CacheTiles",
"PredictionWriterCallback",
"create_write_strategy",
"WriteStrategy",
"WriteImage",
"CacheTiles",
"WriteStrategy",
"WriteTilesZarr",
"create_write_strategy",
"select_write_extension",
"select_write_func",
]
Expand Down
6 changes: 3 additions & 3 deletions src/careamics/losses/__init__.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
"""Losses module."""

__all__ = [
"denoisplit_loss",
"denoisplit_musplit_loss",
"loss_factory",
"mae_loss",
"mse_loss",
"n2v_loss",
"denoisplit_loss",
"musplit_loss",
"denoisplit_musplit_loss",
"n2v_loss",
]

from .fcn.losses import mae_loss, mse_loss, n2v_loss
Expand Down
2 changes: 1 addition & 1 deletion src/careamics/model_io/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Model I/O utilities."""

__all__ = ["load_pretrained", "export_to_bmz"]
__all__ = ["export_to_bmz", "load_pretrained"]


from .bmz_io import export_to_bmz
Expand Down
2 changes: 1 addition & 1 deletion src/careamics/model_io/bioimage/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
"""Bioimage Model Zoo format functions."""

__all__ = [
"create_env_text",
"create_model_description",
"extract_model_path",
"get_unzip_path",
"create_env_text",
]

from .bioimage_utils import create_env_text, get_unzip_path
Expand Down
2 changes: 1 addition & 1 deletion src/careamics/prediction_utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"""Package to house various prediction utilies."""

__all__ = [
"convert_outputs",
"stitch_prediction",
"stitch_prediction_single",
"convert_outputs",
]

from .prediction_outputs import convert_outputs
Expand Down
10 changes: 5 additions & 5 deletions src/careamics/transforms/__init__.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
"""Transforms that are used to augment the data."""

__all__ = [
"get_all_transforms",
"Compose",
"Denormalize",
"ImageRestorationTTA",
"N2VManipulate",
"Normalize",
"XYFlip",
"XYRandomRotate90",
"ImageRestorationTTA",
"Denormalize",
"Normalize",
"Compose",
"get_all_transforms",
]


Expand Down
10 changes: 5 additions & 5 deletions src/careamics/utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
"""Utils module."""

__all__ = [
"cwd",
"get_ram_size",
"check_path_exists",
"BaseEnum",
"get_logger",
"get_careamics_home",
"autocorrelation",
"check_path_exists",
"cwd",
"get_careamics_home",
"get_logger",
"get_ram_size",
]


Expand Down

0 comments on commit 41a6d58

Please sign in to comment.