From e71954174842c4be21fac24ec75d9214ef2220a8 Mon Sep 17 00:00:00 2001 From: maffettone Date: Fri, 12 Apr 2024 15:22:12 -0700 Subject: [PATCH] fix: property register syntax --- pdf_agents/gsas.py | 10 +++++----- pdf_agents/peakfit.py | 12 ++++++------ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/pdf_agents/gsas.py b/pdf_agents/gsas.py index 8190128..d218abe 100644 --- a/pdf_agents/gsas.py +++ b/pdf_agents/gsas.py @@ -104,11 +104,11 @@ def name(self): def server_registrations(self) -> None: super().server_registrations() - self._register_property("CIF paths", self.cif_paths) - self._register_property("refinement_params", self.refinement_params) - self._register_property("Instrument Parameter Path", self.inst_param_path) - self._register_property("Recent UID", self.recent_uid) - self._register_property("Recent X", self.recent_x) + self._register_property("CIF paths", "cif_paths") + self._register_property("refinement_params", "refinement_params") + self._register_property("Instrument Parameter Path", "inst_param_path") + self._register_property("Recent UID", "recent_uid") + self._register_property("Recent X", "recent_x") def unpack_run(self, run): self._recent_uid = run.metadata["start"]["uid"] diff --git a/pdf_agents/peakfit.py b/pdf_agents/peakfit.py index a24f77e..77b1aec 100644 --- a/pdf_agents/peakfit.py +++ b/pdf_agents/peakfit.py @@ -116,12 +116,12 @@ def name(self): def server_registrations(self) -> None: super().server_registrations() - self._register_property("Peak Fit ROIs", self, "xrois") - self._register_property("Fit Function", self, "fit_func") - self._register_property("Position Percent Limit", self, "pos_percent_lim") - self._register_property("Max Cycles", self, "maxcycles") - self._register_property("Recent UID", self.recent_uid) - self._register_property("Recent X", self.recent_x) + self._register_property("Peak Fit ROIs", "xrois") + self._register_property("Fit Function", "fit_func") + self._register_property("Position Percent Limit", "pos_percent_lim") + self._register_property("Max Cycles", "maxcycles") + self._register_property("Recent UID", "recent_uid") + self._register_property("Recent X", "recent_x") def unpack_run(self, run): self._recent_uid = run.metadata["start"]["uid"]