Skip to content

Commit

Permalink
Patch
Browse files Browse the repository at this point in the history
Patch to fix the IPF colour issues for now
  • Loading branch information
rhysgt committed Jan 30, 2025
1 parent 4cf32ef commit cb858f4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion defdap/quat.py
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ def calc_ipf_colours(
num_quats = len(quats)

alpha_fund, beta_fund = Quat.calc_fund_dirs(
quats, direction, sym_group, dtype=dtype
quats, direction, sym_group, triangle = 'ipf_map', dtype=dtype
)

# revert to cartesians
Expand Down Expand Up @@ -1046,6 +1046,8 @@ def calc_fund_dirs(
beta_range = (np.pi / 2, 2/3 * np.pi, 1)
elif triangle == 'down':
beta_range = (1/3 * np.pi, np.pi / 2, 1)
elif triangle == 'ipf_map':
beta_range = (0 * np.pi, 1/6* np.pi,1)
else:
ValueError("`triangle` must be 'up' or 'down'")
else:
Expand Down

0 comments on commit cb858f4

Please sign in to comment.