Skip to content

Commit

Permalink
Implemented xmap-free twod IPF rendering function tested successfully…
Browse files Browse the repository at this point in the history
… on 207_2081
  • Loading branch information
atomprobe-tc committed Dec 7, 2023
1 parent 19dd554 commit 23c28d4
Show file tree
Hide file tree
Showing 2 changed files with 324 additions and 164 deletions.
5 changes: 3 additions & 2 deletions pynxtools/dataconverter/readers/em/subparsers/hfive_apex.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,9 @@ def parse_and_normalize_group_ebsd_data(self, fp, ckey: str):
oris = Orientation.from_matrix([np.reshape(dat[i][0], (3, 3))])
self.tmp[ckey]["euler"][i, :] = oris.to_euler(degrees=False)
self.tmp[ckey]["ci"][i] = dat[i][2]
self.tmp[ckey]["phase_id"][i] = dat[i][3] + 1 # APEX seems to define
# notIndexed as -1 and the first valid phase id 0
self.tmp[ckey]["phase_id"][i] = dat[i][3] + 1 # adding +1 because
# EDAX/APEX seems to define notIndexed as -1 and the first valid phase_id is then 0
# for NXem however we assume that notIndexed is 0 and the first valid_phase_id is 1
if np.isnan(self.tmp[ckey]["euler"]).any():
raise ValueError(f"Conversion of om2eu unexpectedly resulted in NaN !")
# TODO::convert orientation matrix to Euler angles via om_eu but what are conventions !
Expand Down
Loading

0 comments on commit 23c28d4

Please sign in to comment.