diff --git a/history.md b/history.md index 0f25455..a62e176 100644 --- a/history.md +++ b/history.md @@ -247,3 +247,6 @@ ### Version 0.5.12 (Dec 5, 2024) * New parameter: relative_point_list for MAKE_COMPONENT function. * New function: get_point_list() for customized components. + +### Version 0.5.13 (Dec 10, 2024) +* Fix layout bug for CirclePixelsRegionwithGroup. diff --git a/splayout/__init__.py b/splayout/__init__.py index 07c5a16..6a97eb2 100644 --- a/splayout/__init__.py +++ b/splayout/__init__.py @@ -1,4 +1,4 @@ -__version__ = "0.5.12" +__version__ = "0.5.13" ## Submodules from . import utils diff --git a/splayout/components/pixelsregion.py b/splayout/components/pixelsregion.py index bc18f8b..573ef55 100644 --- a/splayout/components/pixelsregion.py +++ b/splayout/components/pixelsregion.py @@ -283,7 +283,7 @@ def __initialize(self): "for (x = 0:" + str(x_size - 1) + "){ \n" \ "addcircle; \n" \ "set(\"x\"," + " (x_start_point + x * block_x_length)*1e-6); \n" \ - "set(\"y\"," + " (y_start_point - y * block_x_length)*1e-6); \n" \ + "set(\"y\"," + " (y_start_point - y * block_y_length)*1e-6); \n" \ "set(\"radius\"," + " (pixel_radius*radius_matrix(x+1, y+1))*1e-6); \n" \ "set(\"z min\"," + " z_start*1e-6); \n" \ "set(\"z max\"," + " z_end*1e-6); \n"