Skip to content

Commit

Permalink
changed list of points to be space-separated (#93)
Browse files Browse the repository at this point in the history
* changed list of points to be space-separated

* fixing EOL issue
  • Loading branch information
erickmartins authored Dec 22, 2023
1 parent 7525f45 commit dfadca9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ezomero/_posts.py
Original file line number Diff line number Diff line change
Expand Up @@ -774,13 +774,13 @@ def _shape_to_omero_shape(shape: Union[Point, Line, Rectangle, Ellipse,
omero_shape.radiusY = rdouble(shape.y_rad)
elif isinstance(shape, Polygon):
omero_shape = PolygonI()
points_str = "".join("".join([str(x), ',', str(y), ', '])
for x, y in shape.points)[:-2]
points_str = "".join("".join([str(x), ',', str(y), ' '])
for x, y in shape.points).rstrip()
omero_shape.points = rstring(points_str)
elif isinstance(shape, Polyline):
omero_shape = PolylineI()
points_str = "".join("".join([str(x), ',', str(y), ', '])
for x, y in shape.points)[:-2]
points_str = "".join("".join([str(x), ',', str(y), ' '])
for x, y in shape.points).rstrip()
omero_shape.points = rstring(points_str)
elif isinstance(shape, Label):
omero_shape = LabelI()
Expand Down

0 comments on commit dfadca9

Please sign in to comment.