Skip to content

Commit

Permalink
Fix wrong cf title
Browse files Browse the repository at this point in the history
  • Loading branch information
jadball committed Nov 5, 2024
1 parent df289f1 commit 933851a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ImageD11/nbGui/TDXRD/3_3DXRD_look_at_peaks.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
"\n",
"for inc, grain in enumerate(tqdm(grains)):\n",
" grain.mask_3d = cf_3d.labels == inc\n",
" grain.mask_2d = np.isin(cf_2d.spot3d_id, cf_3d.index[grain.mask_3d])"
" grain.mask_2d = np.isin(cf_2d.spot3d_id, cf_3d.spot3d_id[grain.mask_3d])"
]
},
{
Expand Down Expand Up @@ -297,7 +297,7 @@
"metadata": {},
"outputs": [],
"source": [
"fast_extent, slow_extent, omega_extent = calculate_3d_peak_extents(cf_3d.index, cf_2d.spot3d_id, cf_2d.fc, cf_2d.sc, cf_2d.omega)"
"fast_extent, slow_extent, omega_extent = calculate_3d_peak_extents(cf_3d.spot3d_id, cf_2d.spot3d_id, cf_2d.fc, cf_2d.sc, cf_2d.omega)"
]
},
{
Expand Down Expand Up @@ -327,7 +327,7 @@
"while n_2d_peaks < 30:\n",
" peak_index_3d += 1\n",
" # get its 2D peaks\n",
" peak_2d_mask = cf_2d.spot3d_id == cf_3d.index[peak_index_3d]\n",
" peak_2d_mask = cf_2d.spot3d_id == cf_3d.spot3d_id[peak_index_3d]\n",
"\n",
" # make sure we have more than 1 2d peak\n",
" n_2d_peaks = np.sum(peak_2d_mask)\n",
Expand Down

0 comments on commit 933851a

Please sign in to comment.