9fc8623eebd62d31039e90927744e376f5ee611c,mne/gui/_fiducials_gui.py,FiducialsPanel,_on_pick,#FiducialsPanel#Any#,359
Before Change
msg.append(line)
logger.debug("\n".join(msg))
if self.set == "Nasion":
self.nasion = pt
elif self.set == "LPA":
self.lpa = pt
elif self.set == "RPA":
self.rpa = pt
else:
raise ValueError("set = %r" % self.set)
@on_trait_change("set")
def _on_set_change(self, obj, name, old, new):
if new == "Nasion":
self.current_pos_mm = self.nasion * 1000
After Change
set_ = self.set.lower()
assert set_ in _VIEW_DICT, set_
setattr(self, set_, pt)
@on_trait_change("set")
def _on_set_change(self, obj, name, old, new):
new = new.lower()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: mne-tools/mne-python
Commit Name: 9fc8623eebd62d31039e90927744e376f5ee611c
Time: 2021-01-28
Author: larson.eric.d@gmail.com
File Name: mne/gui/_fiducials_gui.py
Class Name: FiducialsPanel
Method Name: _on_pick
Project Name: uber/pyro
Commit Name: 296b28c1a5b1fb18732d1ed0f466b3761e50ebef
Time: 2019-11-14
Author: fehiepsi@gmail.com
File Name: pyro/contrib/gp/parameterized.py
Class Name: Parameterized
Method Name: set_prior
Project Name: matthewwithanm/django-imagekit
Commit Name: a9895f335a5323b4bee7d6cbcffffbe826645c03
Time: 2011-09-08
Author: matthew@exanimo.com
File Name: imagekit/models.py
Class Name: ImageModelBase
Method Name: __init__