Skip to content

found the way to remove Shared folder / go to home folder widgets #332

Description

@JeanBilheux
def export(self):
    working_dir = os.path.dirname(self.working_dir)
    **self.output_folder_browser = FileFolderBrowser(working_dir=working_dir, 
                                              ipts_folder=self.ipts_folder,
                                              next_function=self.export_images_and_config,
                                              )**
    self.output_folder_browser.select_output_folder_with_new()
    self.out = widgets.Output()
    display(self.out)

def export_images_and_config(self, output_folder):
    self.export_images(output_folder=output_folder, 
                  working_dir=self.working_dir,
                  stack_of_images=self.corrected_images,
                  out=self.out,
                  list_of_input_filenames=self.list_of_images,)
    
def export_images(self, output_folder=None, working_dir=None, stack_of_images=None, out=None, list_of_input_filenames=None):
    logging.info(f"Exporting images to folder: {output_folder}")
    logging.info(f"\tworking_dir: {working_dir}")
    logging.info(f"\tstack_of_images shape: {np.shape(stack_of_images)}")
    logging.info(f"\tlist_of_input_filenames: {list_of_input_filenames}")
    
    **self.output_folder_browser.list_output_folders_ui.shortcut_buttons.close()**

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions