Skip to content

Commit efcca18

Browse files
committed
Rename functions, mostly dropping the "run_" prefix
1 parent 229cafa commit efcca18

1 file changed

Lines changed: 12 additions & 13 deletions

File tree

src/imcflibs/imagej/bdv.py

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def backup_xml_files(source_directory, subfolder_name):
4343
shutil.copy2(xml_file, backup_subfolder)
4444

4545

46-
def run_define_dataset_autoloader(
46+
def define_dataset_auto(
4747
project_filename,
4848
file_path,
4949
bf_series_type,
@@ -173,7 +173,7 @@ def run_define_dataset_autoloader(
173173
return
174174

175175

176-
def run_define_dataset_manualoader(
176+
def define_dataset_manual(
177177
project_filename,
178178
source_directory,
179179
image_file_pattern,
@@ -241,7 +241,7 @@ def run_define_dataset_manualoader(
241241
IJ.run("Define dataset ...", str(options))
242242

243243

244-
def run_resave_as_h5(
244+
def resave_as_h5(
245245
source_xml_file,
246246
output_h5_file_path,
247247
timepoints="All Timepoints",
@@ -253,8 +253,7 @@ def run_resave_as_h5(
253253
"""Resave the xml dataset in a new format (either all or single timepoints).
254254
255255
Useful if it hasn't been done during dataset definition (see
256-
`run_define_dataset_autoloader()`). Allows e.g. parallelization of HDF-5
257-
re-saving.
256+
`define_dataset_auto()`). Allows e.g. parallelization of HDF-5 re-saving.
258257
259258
Parameters
260259
----------
@@ -333,7 +332,7 @@ def run_resave_as_h5(
333332
return
334333

335334

336-
def run_flip_axes(source_xml_file, x=False, y=True, z=False):
335+
def flip_axes(source_xml_file, x=False, y=True, z=False):
337336
"""Call BigStitcher's "Flip Axes" command.
338337
339338
Wrapper for `BigStitcher > Batch Processing > Tools > Flip Axes`. This is
@@ -367,7 +366,7 @@ def run_flip_axes(source_xml_file, x=False, y=True, z=False):
367366
backup_xml_files(file_info["path"], "flip_axes")
368367

369368

370-
def run_phase_correlation_pairwise_shifts_calculation(
369+
def phase_correlation_pairwise_shifts_calculation(
371370
project_path,
372371
input_dict={},
373372
treat_timepoints="group",
@@ -489,7 +488,7 @@ def run_phase_correlation_pairwise_shifts_calculation(
489488
return
490489

491490

492-
def run_filter_pairwise_shifts(
491+
def filter_pairwise_shifts(
493492
project_path,
494493
min_r=0.7,
495494
max_r=1,
@@ -552,7 +551,7 @@ def run_filter_pairwise_shifts(
552551
return
553552

554553

555-
def run_optimize_apply_shifts(
554+
def optimize_and_apply_shifts(
556555
project_path,
557556
input_dict={},
558557
treat_timepoints="group",
@@ -670,7 +669,7 @@ def run_optimize_apply_shifts(
670669
return
671670

672671

673-
def run_detect_interest_points(
672+
def detect_interest_points(
674673
project_path,
675674
process_timepoint="All Timepoints",
676675
process_channel="All channels",
@@ -758,7 +757,7 @@ def run_detect_interest_points(
758757
return
759758

760759

761-
def run_interest_points_registration(
760+
def interest_points_registration(
762761
project_path,
763762
process_timepoint="All Timepoints",
764763
process_channel="All channels",
@@ -839,7 +838,7 @@ def run_interest_points_registration(
839838
return
840839

841840

842-
def run_duplicate_transformations(
841+
def duplicate_transformations(
843842
project_path,
844843
transformation_type="channel",
845844
channel_source=None,
@@ -943,7 +942,7 @@ def run_duplicate_transformations(
943942
return
944943

945944

946-
def run_fusion(
945+
def fuse_dataset(
947946
project_path,
948947
input_dict={},
949948
result_path=None,

0 commit comments

Comments
 (0)