Skip to content

Commit

Permalink
Remove unused fpks parameter from pbp refinement
Browse files Browse the repository at this point in the history
  • Loading branch information
jadball committed Jan 16, 2025
1 parent 2f92f60 commit 638b8e6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
5 changes: 2 additions & 3 deletions ImageD11/nbGui/S3DXRD/pbp_3_refinement.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -202,14 +202,13 @@
"\n",
"y0 = 0.0\n",
"ybeam = 0.0\n",
"fpks = 0.95\n",
"hkl_tol_origins = 0.05\n",
"hkl_tol_refine = 0.1\n",
"hkl_tol_refine_merged = 0.05\n",
"ds_tol = 0.006\n",
"ifrac = 6e-3\n",
"\n",
"refine = PBPRefine(dset=ds, y0=y0, ybeam=ybeam, fpks=fpks, hkl_tol_origins=hkl_tol_origins, hkl_tol_refine=hkl_tol_refine, hkl_tol_refine_merged=hkl_tol_refine_merged, ds_tol=ds_tol, ifrac=ifrac, phase_name=phase_str)"
"refine = PBPRefine(dset=ds, y0=y0, ybeam=ybeam, hkl_tol_origins=hkl_tol_origins, hkl_tol_refine=hkl_tol_refine, hkl_tol_refine_merged=hkl_tol_refine_merged, ds_tol=ds_tol, ifrac=ifrac, phase_name=phase_str)"
]
},
{
Expand Down Expand Up @@ -395,7 +394,7 @@
" pmap = PBPMap(ds.pbpfile)\n",
" pmap.choose_best(min_unique)\n",
" \n",
" refine = PBPRefine(dset=ds, y0=y0, ybeam=ybeam, fpks=fpks, hkl_tol_origins=hkl_tol_origins, hkl_tol_refine=hkl_tol_refine, hkl_tol_refine_merged=hkl_tol_refine_merged, ds_tol=ds_tol, ifrac=ifrac, phase_name=phase_str)\n",
" refine = PBPRefine(dset=ds, y0=y0, ybeam=ybeam, hkl_tol_origins=hkl_tol_origins, hkl_tol_refine=hkl_tol_refine, hkl_tol_refine_merged=hkl_tol_refine_merged, ds_tol=ds_tol, ifrac=ifrac, phase_name=phase_str)\n",
" \n",
" refine.setmap(pmap)\n",
" refine.setpeaks(cf_2d)\n",
Expand Down
5 changes: 2 additions & 3 deletions ImageD11/nbGui/S3DXRD/tomo_3_refinement.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -231,14 +231,13 @@
"\n",
"y0 = grainsinos[0].recon_y0\n",
"ybeam = 0.0\n",
"fpks = 0.9\n",
"hkl_tol_origins = 0.05\n",
"hkl_tol_refine = 0.1\n",
"hkl_tol_refine_merged = 0.05\n",
"ds_tol = 0.004\n",
"ifrac = 7e-3\n",
"\n",
"refine = PBPRefine(dset=ds, y0=y0, ybeam=ybeam, fpks=fpks, hkl_tol_origins=hkl_tol_origins, hkl_tol_refine=hkl_tol_refine, hkl_tol_refine_merged=hkl_tol_refine_merged, ds_tol=ds_tol, ifrac=ifrac, phase_name=phase_str)"
"refine = PBPRefine(dset=ds, y0=y0, ybeam=ybeam, hkl_tol_origins=hkl_tol_origins, hkl_tol_refine=hkl_tol_refine, hkl_tol_refine_merged=hkl_tol_refine_merged, ds_tol=ds_tol, ifrac=ifrac, phase_name=phase_str)"
]
},
{
Expand Down Expand Up @@ -442,7 +441,7 @@
" pmap = tensor_map.to_pbpmap(z_layer=0, default_npks=20, default_nuniq=20)\n",
" pmap.choose_best(1)\n",
"\n",
" refine = PBPRefine(dset=ds, y0=y0, ybeam=ybeam, fpks=fpks, hkl_tol_origins=hkl_tol_origins, hkl_tol_refine=hkl_tol_refine, hkl_tol_refine_merged=hkl_tol_refine_merged, ds_tol=ds_tol, ifrac=ifrac, phase_name=phase_str)\n",
" refine = PBPRefine(dset=ds, y0=y0, ybeam=ybeam, hkl_tol_origins=hkl_tol_origins, hkl_tol_refine=hkl_tol_refine, hkl_tol_refine_merged=hkl_tol_refine_merged, ds_tol=ds_tol, ifrac=ifrac, phase_name=phase_str)\n",
" \n",
" refine.setmap(pmap)\n",
" refine.setpeaks(cf_2d)\n",
Expand Down
5 changes: 2 additions & 3 deletions ImageD11/nbGui/S3DXRD/tomo_3_refinement_minor_phase.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,6 @@
"\n",
"y0 = grainsinos[0].recon_y0\n",
"ybeam = 0\n",
"fpks = 0.9\n",
"hkl_tol_origins = 0.05\n",
"hkl_tol_refine = 0.1\n",
"hkl_tol_refine_merged = 0.05\n",
Expand All @@ -328,7 +327,7 @@
"forref = [0, 2, 3, 4, 5, 6, 7, 8, 10, 12, 13]\n",
"phase_str = minor_phase_str\n",
"\n",
"refine = PBPRefine(dset=ds, y0=y0, ybeam=ybeam, fpks=fpks, hkl_tol_origins=hkl_tol_origins, hkl_tol_refine=hkl_tol_refine, hkl_tol_refine_merged=hkl_tol_refine_merged, ds_tol=ds_tol, ifrac=ifrac, phase_name=phase_str, forref=forref)"
"refine = PBPRefine(dset=ds, y0=y0, ybeam=ybeam, hkl_tol_origins=hkl_tol_origins, hkl_tol_refine=hkl_tol_refine, hkl_tol_refine_merged=hkl_tol_refine_merged, ds_tol=ds_tol, ifrac=ifrac, phase_name=phase_str, forref=forref)"
]
},
{
Expand Down Expand Up @@ -562,7 +561,7 @@
" pmap = tensor_map.to_pbpmap(z_layer=0, default_npks=20, default_nuniq=20)\n",
" pmap.choose_best(1)\n",
"\n",
" refine = PBPRefine(dset=ds, y0=y0, ybeam=ybeam, fpks=fpks, hkl_tol_origins=hkl_tol_origins, hkl_tol_refine=hkl_tol_refine, hkl_tol_refine_merged=hkl_tol_refine_merged, ds_tol=ds_tol, ifrac=ifrac, phase_name=minor_phase_str, forref=forref)\n",
" refine = PBPRefine(dset=ds, y0=y0, ybeam=ybeam, hkl_tol_origins=hkl_tol_origins, hkl_tol_refine=hkl_tol_refine, hkl_tol_refine_merged=hkl_tol_refine_merged, ds_tol=ds_tol, ifrac=ifrac, phase_name=minor_phase_str, forref=forref)\n",
" \n",
" refine.own_filename = os.path.splitext(refine.own_filename)[0] + f'_{phase_str}.h5'\n",
" refine.icolf_filename = os.path.splitext(refine.icolf_filename)[0] + f'_{phase_str}.h5'\n",
Expand Down

0 comments on commit 638b8e6

Please sign in to comment.