@@ -1291,8 +1291,6 @@ def suggest_path(
12911291 raise ValueError (
12921292 "No machine configuration set when suggesting destination path"
12931293 )
1294- if not machine_config .rsync_basepath :
1295- raise ValueError ("No rsync basepath set" )
12961294
12971295 # Construct the full path to where the dataset is to be saved
12981296 check_path = machine_config .rsync_basepath / base_path
@@ -1416,8 +1414,6 @@ def start_dc(
14161414 machine_config = get_machine_config (instrument_name = instrument_name )[
14171415 instrument_name
14181416 ]
1419- if not machine_config .rsync_basepath :
1420- raise ValueError ("No rsync basepath set" )
14211417 log .info (
14221418 f"Starting data collection on microscope { get_microscope (machine_config = machine_config )} "
14231419 f"with basepath { sanitise (str (machine_config .rsync_basepath ))} and directory { sanitise (dc_params .image_directory )} "
@@ -1505,8 +1501,6 @@ async def process_gain(
15051501 executables = machine_config .external_executables
15061502 env = machine_config .external_environment
15071503 safe_path_name = secure_filename (gain_reference_params .gain_ref .name )
1508- if not machine_config .rsync_basepath :
1509- raise ValueError ("No rsync basepath set" )
15101504 filepath = (
15111505 machine_config .rsync_basepath
15121506 / (machine_config .rsync_module or "data" )
@@ -1595,8 +1589,6 @@ async def write_eer_fractionation_file(
15951589 )
15961590 ) / secure_filename (fractionation_params .fractionation_file_name )
15971591 else :
1598- if not machine_config .rsync_basepath :
1599- raise ValueError ("rsync basepath not set" )
16001592 file_path = (
16011593 machine_config .rsync_basepath
16021594 / (machine_config .rsync_module or "data" )
@@ -1642,8 +1634,6 @@ async def make_gif(
16421634 machine_config = get_machine_config (instrument_name = instrument_name )[
16431635 instrument_name
16441636 ]
1645- if not machine_config .rsync_basepath :
1646- raise ValueError ("rsync basepath not set" )
16471637 output_dir = (
16481638 machine_config .rsync_basepath
16491639 / (machine_config .rsync_module or "data" )
0 commit comments