Skip to content
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repos:
rev: v0.16.1
hooks:
- id: ruff
exclude: "^(docs/.*|src/careamics/lvae_training/.*|src/careamics/models/lvae/(?!noise_models\\.py).*|scripts/.*|demos/.*)"
exclude: "^(docs/.*|src/careamics/lvae_training/.*|src/careamics/models/lvae/noise_models.py|scripts/.*|demos/.*)"

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 26.5.1
Expand All @@ -30,7 +30,7 @@ repos:
hooks:
- id: mypy
files: "^src/"
exclude: "^(docs/.*|src/careamics/lvae_training/.*|src/careamics/models/lvae/(?!noise_models\\.py).*|src/careamics/config/likelihood_model.py|src/careamics/losses/lvae/.*)"
exclude: "^(docs/.*|src/careamics/lvae_training/.*|src/careamics/models/lvae/noise_models.py|src/careamics/config/likelihood_model.py|src/careamics/losses/lvae/.*)"
args: ["--config-file", "mypy.ini"]
additional_dependencies:
- numpy
Expand All @@ -44,7 +44,7 @@ repos:
rev: v1.11.0rc0
hooks:
- id: numpydoc-validation
exclude: "^(tests/.*|docs/.*|src/careamics/lvae_training/.*|src/careamics/models/lvae/(?!noise_models\\.py).*|src/careamics/losses/lvae/.*|scripts/.*)"
exclude: "^(tests/.*|docs/.*|src/careamics/lvae_training/.*|src/careamics/models/lvae/noise_models.py|src/careamics/losses/lvae/.*|scripts/.*)"
# data_module: overloads and config params (val_percentage etc.) don't match signature; see https://github.com/numpy/numpydoc/issues/559

# # jupyter linting and formatting
Expand Down
14 changes: 0 additions & 14 deletions src/careamics/config/architectures/lvae_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,20 +142,6 @@ def validate_z_dims(cls, z_dims: tuple) -> tuple:

return z_dims

def set_3D(self, is_3D: bool) -> None:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also have another look at the UNet and whether this set 3D is ever used or necessary. Maybe a small clean up issue.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

created issue

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Following #1038, this should not be removed and we should see what else needs to be updated for the LVAE architecture to be set to 3D.

Indeed, we need to have an HDN napari plugin for a grant.

"""
Set 3D model by setting the `conv_dims` parameters.

Parameters
----------
is_3D : bool
Whether the algorithm is 3D or not.
"""
if is_3D:
self.conv_dims = 3
else:
self.conv_dims = 2

def is_3D(self) -> bool:
"""
Return whether the model is 3D or not.
Expand Down
2 changes: 2 additions & 0 deletions src/careamics/models/lvae/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""LVAE model package."""

__all__ = ["LadderVAE"]

from .lvae import LadderVAE
Loading
Loading