Skip to content

Commit

Permalink
[CenteredPoint] - Using position name instead of id for index
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-oscarsson committed Sep 20, 2024
1 parent 62d8e78 commit 89107bb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mxcubecore/HardwareObjects/SampleView.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ def mpos(self):

def set_id(self, id_num):
Shape.set_id(self, id_num)
self.cp_list[0].index = self.id
self.cp_list[0].index = self.name

def as_dict(self):
d = Shape.as_dict(self)
Expand Down Expand Up @@ -516,7 +516,6 @@ def __init__(self, mpos_list, screen_coord):

def set_id(self, id_num):
Shape.set_id(self, id_num)
self.cp_list[0].index = self.id

def get_centred_positions(self):
return [self.start_cpos, self.end_cpos]
Expand Down Expand Up @@ -586,7 +585,6 @@ def get_num_lines(self):

def set_id(self, id_num):
Shape.set_id(self, id_num)
self.cp_list[0].index = self.id

def set_result(self, result_data):
self.result = result_data
Expand Down

0 comments on commit 89107bb

Please sign in to comment.