Skip to content

Commit e2b5c46

Browse files
committed
chore: rename the private method
1 parent 3c65924 commit e2b5c46

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/diffpy/srfit/fitbase/profilegenerator.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,14 +163,14 @@ def set_profile(self, profile):
163163
will store the calculated signal.
164164
"""
165165
if self.profile is not None:
166-
self.profile.removeObserver(self._on_profile_changed)
166+
self.profile.removeObserver(self._on_profile_update)
167167

168168
self.profile = profile
169-
self.profile.addObserver(self._on_profile_changed)
170-
self._on_profile_changed(other=(self,))
169+
self.profile.addObserver(self._on_profile_update)
170+
self._on_profile_update(other=(self,))
171171
return
172172

173-
def _on_profile_changed(self, other=()):
173+
def _on_profile_update(self, other=()):
174174
if self.profile is not None:
175175
self.meta.update(self.profile.meta)
176176
self.processMetaData()

0 commit comments

Comments
 (0)