Beispiel #1
0
    # Check whether names are given
    if config.names is not None:

        # Loop over the directories in the temporary directory
        for path, name in remote.directories_in_path(remote.pts_temp_path,
                                                     returns=["path", "name"]):

            # Contains timestamp
            if time.is_unique_name(name):

                # Without timestamp in list
                basename = time.get_name_from_unique_name(name)
                if basename in config.names: remote.remove_directory(path)

                # Full name in list
                if name in config.names: remote.remove_directory(path)

            # Full name in list
            elif name in config.names:
                remote.remove_directory(path)

    # Clear all temporary data
    else:
        remote.clear_directory(remote.pts_temp_path)

# Local

# -----------------------------------------------------------------
else:
    fs.clear_directory(introspection.pts_temp_dir)
Beispiel #2
0
    # Create the remote
    remote = Remote(host_id=config.remote)

    # Check whether names are given
    if config.names is not None:

        # Loop over the directories in the temporary directory
        for path, name in remote.directories_in_path(remote.pts_temp_path, returns=["path", "name"]):

            # Contains timestamp
            if time.is_unique_name(name):

                # Without timestamp in list
                basename = time.get_name_from_unique_name(name)
                if basename in config.names: remote.remove_directory(path)

                # Full name in list
                if name in config.names: remote.remove_directory(path)

            # Full name in list
            elif name in config.names: remote.remove_directory(path)

    # Clear all temporary data
    else: remote.clear_directory(remote.pts_temp_path)

# Local
else: fs.clear_directory(introspection.pts_temp_dir)

# -----------------------------------------------------------------
Beispiel #3
0
        else:
            # Infomr
            log.info("Downloading the '" + name + "' file to [" + origin_path +
                     "] ...")

            # Download
            remote.download_file_to(path, origin_path, remove=True)

            # Success
            log.success("Succesfully retrieved the '" + name + "' image ...")

    # Inform the user
    log.info("Clearing the remote data structure ...")

    # Clear the entire data structure now
    remote.clear_directory(remote_data_path)

# -----------------------------------------------------------------

# Get the image paths
paths, error_paths = get_data_image_and_error_paths(modeling_path)

# -----------------------------------------------------------------

# Get the initial dataset
dataset = get_initial_dataset(modeling_path, check=False)

# -----------------------------------------------------------------

# Loop over the images
for name in paths: