Skip to content

Commit

Permalink
fix: control access
Browse files Browse the repository at this point in the history
  • Loading branch information
maffettone committed Apr 13, 2024
1 parent a809611 commit 9ff5770
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions bmm_agents/monarch_pdf_subject.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,22 @@ def __init__(

@property
def name(self):
return "{self.analyzed_element}-KMeansPDFMonarchBMMSubject"
return f"{self.analyzed_element_and_edge[0]}-KMeansPDFMonarchBMMSubject"

@property
def pdf_control(self):
return self._pdf_control
# @property
# def pdf_control(self):
# return self._pdf_control

@pdf_control.setter
def pdf_control(self, value):
if value in {True, "true", "True", "TRUE", 1}:
self.pdf_control = True
else:
self.pdf_control = False
# @pdf_control.setter
# def pdf_control(self, value):
# if value in {True, "true", "True", "TRUE", 1}:
# self.pdf_control = True
# else:
# self.pdf_control = False

def server_registrations(self) -> None:
register_variable("pdf_origin", self, "pdf_origin")
self._register_property("pdf_control")
register_variable("PDF Control", self, "_pdf_control")
return super().server_registrations()

def subject_measurement_plan(self, relative_point: ArrayLike) -> Tuple[str, List, Dict]:
Expand Down

0 comments on commit 9ff5770

Please sign in to comment.