Skip to content

Commit

Permalink
testing pypi works (#529)
Browse files Browse the repository at this point in the history
* testing pypi works

* typo

* commit

* changes

* avoid circular imports

* another test

* another test

* now we can move on

* changes
  • Loading branch information
ismael-mendoza authored Jan 28, 2025
1 parent f350fcb commit cb245ae
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v1.0.5

- Fix potential issue with circular imports in `metrics`.

# v1.0.3

- Documentation fixes
Expand Down
6 changes: 5 additions & 1 deletion btk/metrics/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
"""Library of metrics for evaluating the performance of deblenders."""

from . import base, detection, reconstruction, segmentation, utils
from . import base
from . import utils
from . import detection
from . import reconstruction
from . import segmentation
4 changes: 2 additions & 2 deletions btk/metrics/detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

import numpy as np

from btk.metrics.base import Metric
from btk.metrics.utils import effmat
from .base import Metric
from .utils import effmat


class DetectionMetric(Metric):
Expand Down
4 changes: 2 additions & 2 deletions btk/metrics/reconstruction.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

import numpy as np

from btk.metrics.base import Metric
from btk.metrics.utils import mse, psnr, struct_sim
from .base import Metric
from .utils import mse, psnr, struct_sim


class ReconstructionMetric(Metric, ABC):
Expand Down
4 changes: 2 additions & 2 deletions btk/metrics/segmentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

import numpy as np

from btk.metrics.base import Metric
from btk.metrics.utils import iou
from .base import Metric
from .utils import iou


class SegmentationMetric(Metric, ABC):
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ keywords = ["cosmology", "galaxies", "blending", "lsst", "simulation"]
license = { file = "LICENSE" }
name = "blending_toolkit"
readme = "README.md"
version = "1.0.3"
requires-python = ">= 3.9"
version = "1.0.5"
requires-python = ">=3.9,<3.13"
dependencies = [
"galsim>=2.4.9",
"sep_pjw>=1.3.7",
Expand Down

0 comments on commit cb245ae

Please sign in to comment.