PC convention / Indexer vendor changes on detector.get_indexer #626
-
Hi, det = kp.detectors.EBSDDetector(
shape=sig_shape,
binning=binning,
sample_tilt=s.detector.sample_tilt,
tilt=s.detector.tilt,
pc=pc,
convention="tsl",
)
indexer = det.get_indexer(
phase_list=self.phases,
rhoMaskFrac=self.rho_mask,
nBands=self.number_bands
)
print("Indexer Vendor", indexer.vendor)
xmap = s.hough_indexing(phase_list=self.phases, indexer=indexer, verbose=0)
I understand that it is easier to use a single convention/vendor behind the scenes, but is it possible for the printed projection center in hough_indexing to be according to the detector convention? Some of our GUI-users found this printed PC confusing as it shows a different y-coordinate, and I just wanted to hear if there is a workaround for this (modifying the indexer maybe?). |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Thank you for asking. I agree that it is undesirable to surprise users. I have considered maintaining a user's prefered convention whenever they access PC values from an While this extra work doesn't sound like it's too much, I'm not sure it's worth it. An option is for us to inform even better that PC values are converted to Bruker's convention whenever a detector is made. When in doubt, users can convert back via methods like |
Beta Was this translation helpful? Give feedback.
Thank you for asking. I agree that it is undesirable to surprise users.
I have considered maintaining a user's prefered convention whenever they access PC values from an
EBSDDetector
. This would have to be consistent in all aspects, or it would result in more confusion... By all aspects I mean the class representation method (__repr__()
), when accessing attributes (pc
,pc_average
,pc_flattened
,pcx
,pcy
,pcz
), when plotting values (plot()
,plot_pc()
), and in methods like the one you mention (EBSD.hough_indexing()
). In this case, the user should basically not be able to tell that Bruker's convention is used internally. We also need to add more state, i.e. keep the given convention in an at…