Skip to content

Commit

Permalink
fix: sanity check for pdf control
Browse files Browse the repository at this point in the history
  • Loading branch information
maffettone committed Apr 13, 2024
1 parent 51107a9 commit fab983a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bmm_agents/monarch_pdf_subject.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ def __init__(
def name(self):
return f"{self.name_prefix}-KMeansPDFMonarchBMMSubject"

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

# @pdf_control.setter
# def pdf_control(self, value):
Expand All @@ -42,6 +42,7 @@ def name(self):
def server_registrations(self) -> None:
register_variable("pdf_origin", self, "pdf_origin")
register_variable("PDF Control", self, "_pdf_control")
register_variable("bool_pdf_control", self, "bool_pdf_control")
return super().server_registrations()

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

0 comments on commit fab983a

Please sign in to comment.