Skip to content

Commit 3570423

Browse files
authored
fix: trace aperture height always > 0
fix: trace aperture height always > 0
2 parents 1674e05 + 3d59742 commit 3570423

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

prose/core/source.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,8 @@ def rectangular_aperture(self, r, scale=True):
274274
a, b = 2 * r * self.a, 2 * r * self.b
275275
else:
276276
a, b = 2 * r, 2 * r * self.eccentricity
277+
a = np.max([0.01, a])
278+
b = np.max([0.01, b])
277279
return RectangularAperture(
278280
self.coords, float(np.abs(a)), float(np.abs(b)), self.orientation
279281
)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "prose"
3-
version = "3.0.1"
3+
version = "3.0.2"
44
description = "Modular image processing pipelines for Astronomy"
55
authors = ["Lionel Garcia"]
66
license = "MIT"

0 commit comments

Comments
 (0)