Skip to content

Commit

Permalink
Explicity specify all parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
jadball committed Jan 23, 2025
1 parent 07885c5 commit 8715bea
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ImageD11/nbGui/S3DXRD/6_stack_layers.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"# dataset file to import\n",
"dset_file = 'si_cube_test/processed/Si_cube/Si_cube_S3DXRD_nt_moves_dty/Si_cube_S3DXRD_nt_moves_dty_dataset.h5'\n",
"\n",
"dset_prefix = \"top\"\n",
"dset_prefix = \"top_\"\n",
"\n",
"# are you looking to stack phase-combined layers?\n",
"stack_combined = True\n",
Expand Down
17 changes: 14 additions & 3 deletions test/papermill_test_notebooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@ def test_FeAu_JADB_tomo():
'dataroot': '/data/id11/inhouse2/test_data_3DXRD/S3DXRD/FeAu/RAW_DATA/',
'analysisroot': tomo_dir,
'sample': 'FeAu_0p5_tR_nscope',
'dataset': 'top_200um'
'dataset': 'top_200um',
'dset_prefix': "top_"
},
{'PYTHONPATH': sys.path[0], # tomo_1_index.ipynb
'dset_file': dset_file,
Expand All @@ -228,6 +229,7 @@ def test_FeAu_JADB_tomo():
'fracs': [0.9, 0.7],
'max_grains': 1000,
'peak_assign_tol': 0.05,
'dset_prefix': "top_",
},
{'PYTHONPATH': sys.path[0], # tomo_1_index_minor_phase.ipynb
'dset_file': dset_file,
Expand All @@ -246,6 +248,7 @@ def test_FeAu_JADB_tomo():
'fracs': [0.9],
'max_grains': 1000,
'peak_assign_tol': 0.05,
'dset_prefix': "top_",
},
{'PYTHONPATH': sys.path[0], # tomo_2_map.ipynb
'dset_file': dset_file,
Expand All @@ -260,7 +263,8 @@ def test_FeAu_JADB_tomo():
'correct_sinos_with_ring_current': True,
'first_tmap_cutoff_level': 0.4,
'niter': 500,
'second_tmap_cutoff_level': 0.05
'second_tmap_cutoff_level': 0.05,
'dset_prefix': "top_",
},
{'PYTHONPATH': sys.path[0], # tomo_2_map_minor_phase.ipynb
'dset_file': dset_file,
Expand All @@ -278,7 +282,8 @@ def test_FeAu_JADB_tomo():
'first_tmap_cutoff_level': 0.4,
'niter': 500,
'second_tmap_cutoff_level': 0.5,
'grain_too_many_px': 10
'grain_too_many_px': 10,
'dset_prefix': "top_",
},
{'PYTHONPATH': sys.path[0], # tomo_3_refinement.ipynb
'dset_file': dset_file,
Expand All @@ -291,6 +296,7 @@ def test_FeAu_JADB_tomo():
'ds_tol': 0.004,
'ifrac': 7e-3,
'use_cluster': False,
'dset_prefix': "top_",
},
{'PYTHONPATH': sys.path[0], # tomo_3_refinement_minor_phase.ipynb
'dset_file': dset_file,
Expand All @@ -305,29 +311,34 @@ def test_FeAu_JADB_tomo():
'ds_tol': 0.006,
'ifrac': 1e-3,
'use_cluster': False,
'dset_prefix': "top_",
},
{'PYTHONPATH': sys.path[0], # 4_visualise.ipynb - major phase
'dset_file': dset_file,
'phase_str': 'Fe',
'is_minor_phase': False,
'min_unique': 250,
'dset_prefix': "top_",
},
{'PYTHONPATH': sys.path[0], # 4_visualise.ipynb - minor phase
'dset_file': dset_file,
'phase_str': 'Au',
'is_minor_phase': True,
'min_unique': 0,
'dset_prefix': "top_",
},
{'PYTHONPATH': sys.path[0], # 5_combine_phases.ipynb
'dset_file': dset_file,
'phase_strs': ['Fe', 'Au'],
'combine_refined': True,
'dset_prefix': "top_",
},
{'PYTHONPATH': sys.path[0], # 6_stack_layers.ipynb
'dset_file': dset_file,
'stack_combined': True,
'stack_refined': True,
'zstep': 50.0,
'dset_prefix': "top_",
},
]
if len(scan_nb_names) != len(scan_nb_params):
Expand Down

0 comments on commit 8715bea

Please sign in to comment.