Skip to content

Commit

Permalink
fix: property register syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
maffettone committed Apr 12, 2024
1 parent 513d15e commit e719541
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions pdf_agents/gsas.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
12 changes: 6 additions & 6 deletions pdf_agents/peakfit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit e719541

Please sign in to comment.